Hello,
I’m trying to get a very very basic blog working. I’m wanting to use PHP Markdown (http://michelf.ca/projects/php-markdown/) to turn my markdown text files into html.
The website for the PHP Markdown gives the code below but I don’t know how/where to use it.
[php]
include_once “markdown.php”;
$my_html = Markdown($my_text);
[/php]
I’m just looking to get it to parse any file that ends in .text to html and then output a .html with the same corresponding filename.
Ex. If I have test.text I want markdown.php to parse it and then spit out a html file called test.html
Can you please help?