SYNOPSIS use Text::Upskirt qw/markdown smartypants/; my $markdown = << 'EOMD'; Installation ============ The simplest way to install this is with cpanm! Thanks to 'Natacha Porté' for Upskirt. EOMD my $html = markdown($markdown); my $fancyhtml = smartypants($html); At this point $html contains the basic html rendered from the markdown, which will look like

Installation

The simplest way to install this is with cpanm! Thanks to 'Natacha Porté' and any other contributors for Upskirt

and $fancyhtml has had smart quotes and things added to look like this

Installation

The simplest way to install this is with cpanm! Thanks to ‘Natacha Porté’ and any other contributors for Upskirt

Functions markdown $html = markdown($input, $extensions, $html_options) "markdown" takes it's input as a string and returns the rendered HTML output. Both $extensions and $html_options are optional and default to nothing. Extensions "MKDEXT_AUTOLINK" Automatically create links from urls and email addresses. "MKDEXT_FENCED_CODE" Allow for fenced code blocks using ~ and `. This lets you do code blocks without indention which can make copy-paste easier after the fact. SYNOPSIS -------- ~~~~~~~ use Text::Upskirt qw/markdown smartypants/; my $markdown = << 'EOMD'; Installation ============ The simplest way to install this is with cpanm! Thanks to 'Natacha Porté' for Upskirt. EOMD my $html = markdown($markdown); my $fancyhtml = smartypants($html); ~~~~~~~ NOTES: If you plan on using "smartypants" you may encounter issues if you attempt to use the ``fancy'' quote style exhibited there. "MKDEXT_LAX_HTML_BLOCKS" Allow HTML tags inside paragraphs without being surrounded by newlines. "MKDEXT_NO_INTRA_EMPHASIS" Avoid turning text like "my_awesome_function" into "awesomefunction". You will need to escape phrases as "I like it when you say, "_I love you_."" "MKDEXT_SPACE_HEADERS" Force a space between header hashes and the header itself "MKDEXT_STRIKETHROUGH" Let you make strikethroughs by surrounding text with ~~. "MKDEXT_TABLES" Let you create tables similar to the PHP Markdown Extra First Header | Second Header ------------- | ------------- Content Cell | Content Cell Content Cell | Content Cell Html Options "HTML_SKIP_HTML" Don't output any of the boilerplate HTML tags at the start of the document "HTML_SKIP_STYLE" Don't add any "