Closed mcuix closed 5 years ago
Just to be sure, do you want it to export a html file or just show html code ?
if you just wanna paste a markdown file into a html you can use echo $Parsedown->text(file_get_contents('myFile.md'));
I have a MD file that needs to be converted to html. Can parsedown be used for this purpose?
Ok. Got it to work.
<?php
include 'Parsedown.php';
$Parsedown = new Parsedown();
echo $Parsedown->text(file_get_contents('test.md'));
?>
What would the correct syntax be for parsing an entire markdown file to html output? For example test.md --> test.html