Text::Markdown::Hoedown - hoedown for Perl5
use Text::Markdown::Hoedown; print markdown(<<'...'); # foo bar * hoge * fuga ...
Text::Markdown::Hoedown is binding library for hoedown.
hoedown is a forking project from sundown.
my $out = markdown($src :Str, %options) :Str
Rendering markdown.
Options are following:
Nesting levels for TOC generation.
(Default: 99)
This is bit flag. You can use the flags by '|' operator. Values are following:
Parse PHP-Markdown style tables.
Parse fenced code blocks.
Parse footnotes.
Automatically turn safe URLs into links.
Parse ~~stikethrough~~ spans.
Parse _underline_ instead of emphasis.
Parse ==highlight== spans.
Render "quotes" as <q>quotes</q>.
Parse super^script.
Parse TeX $$math$$ syntax, Kramdown style.
Disable emphasis_between_words.
Require a space after '#' in headers.
Instead of guessing by context, parse $inline math$ and $$always block math$$ (requires HOEDOWN_EXT_MATH).
Don't parse indented code blocks.
Strip all HTML tags.
Escape all HTML.
Render each linebreak as <br>.
Render XHTML.
I don't know what this do.
markdown_toc($src:Str, %opts) :Str
Generate TOC HTML from $str.
$str
Maximum nesting level for TOC.
Same as above.
All HOEDOWN_* constants are exported by default.
HOEDOWN_*
hoedown/ directory is managed by git subtree.
hoedown/
You can pull the modifications from upstream by following command:
git subtree pull --prefix=hoedown git@github.com:hoedown/hoedown.git master
Copyright (C) tokuhirom.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
tokuhirom <tokuhirom@gmail.com>
To install Text::Markdown::Hoedown, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Markdown::Hoedown
CPAN shell
perl -MCPAN -e shell install Text::Markdown::Hoedown
For more information on module installation, please visit the detailed CPAN module installation guide.