I wrote a new module for converting markdown files to HTML for use with Dancer2. No perl code is necessary to use! Just make some entries in your config.yml file and you are done. I think it'll be very useful. For example, you can now just throw your copy into a repo with markdown files and clone it to your local hard drive and you are done ever having to mess with HTML.
It has two basic modes of operation right now: convert a single markdown file to a single HTML document or convert all markdown files in a directory to an HTML document. It can can also automatically generate a table of contents for the file that links to the headers in the content.
I've used it to generate a pretty nifty looking tutorial that's super easy to navigate with a table of contents that's actually useful. It's all on one page so no annoying clicking around.
See it on CPAN and the GitHub repo.
I plan on making it have tight integration with GitHub in the near future. I also plan on creating yet another local POD viewer with it as well.
I'd appreciate feedback and ideas for further improvements. Thanks!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dancer2 Module for Generating HTML from markdown
by 1nickt (Canon) on Nov 05, 2018 at 13:46 UTC | |
by nysus (Parson) on Nov 05, 2018 at 21:28 UTC | |
by nysus (Parson) on Nov 05, 2018 at 21:38 UTC | |
by stevieb (Canon) on Nov 06, 2018 at 18:09 UTC | |
by 1nickt (Canon) on Nov 07, 2018 at 16:23 UTC | |
by nysus (Parson) on Nov 06, 2018 at 18:39 UTC | |
by nysus (Parson) on Nov 05, 2018 at 15:35 UTC |