I am trying to implement WMD onto my website and was wondering how would I go about running showdown.js server side to convert markdown to HTML? (in order to store both in the DB)
I am using PHP...any tips would be helpful (never ran any sort of js from php before)
Thanks, Andrew
You could use PHP Markdown, which is a port of the Markdown program written by John Gruber.
Here is a example of how to use PHP Markdown with your code.
include_once "markdown.php";
$my_html = Markdown($my_text);