Text::Markdown::Discount - Online Linux Manual PageSection : 3pm
Updated : 2020-11-08
Source : perl v5.32.0
Note : User Contributed Perl Documentation
NAMEText::Markdown::Discount − fast function for converting markdown to HTML (requires C compiler)
SYNOPSIS use Text::Markdown::Discount;
my $html = markdown($text)
DESCRIPTIONText::Markdown::Discount is a perl interface to the Discount library, a C implementation of John Gruber's markdown. It is the fastest of the Perl modules available for converting markdown: see the list in ‟SEE ALSO”. It passes Gruber's Markdown testsuite. Given that the performance of Discount, Text::Markdown::Discount processes markdown formatted text quickly and passes the Markdown test suite at The interface of the markdown() function in this module is not compatible with the markdown() function in Text::Markdown.
EXPORTmarkdown is exported by default.
FUNCTIONText::Markdown::Discount::with_html5_tags() This function enables html5 block-level elements support. Text::Markdown::Discount::markdown() will handle these html5 tags as block elements: aside, footer, header, hgroup, nav, section, article. NOTE: There is no way to disable/re−enable this feature in one process right now. use Text::Markdown::Discount;
Text::Markdown::Discount::with_html5_tags();
my $html = markdown('<article>content</article>');
#
# In $html, <article> tag won't be wrapped with <p> tag
SEE ALSOThere are other modules on CPAN for converting Markdown: • Text::Markdown is a pure-perl markdown converter. • Markdent is a toolkit for parsing markdown, which can also be used to convert markdown to HTML. • Text::Markup is a converter than can handle a number of input formats, including markdown. • Text::MultiMarkdown converts MultiMarkdown (a superset of the original markdown format) to HTML. Additional markdown resources: • Discount <http://www.pell.portland.or.us/~orc/Code/markdown/> − David Loren Parsons's library for converting markdown, written in C. • Markdown definition <http://daringfireball.net/projects/markdown/> − John Gruber's original definition of the markdown format. • Markdown testsuite <http://daringfireball.net/projects/downloads/MarkdownTest_1.0.zip> − John Gruber's testsuite for markdown. • Markdown modules <http://neilb.org/reviews/markdown.html> − a review of all Perl modules for handling markdown, written by Neil Bowers.
AUTHORMasayoshi Sekimura, <sekimura@cpan.org>
COPYRIGHT AND LICENSECopyright (C) 2013 by Masayoshi Sekimura This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. This product includes software developed by David Loren Parsons <http://www.pell.portland.or.us/~orc> 0
Johanes Gumabo
Data Size : 10,186 byte
man-Text::Markdown::Discount.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 201,279
Visitor ID : :
Visitor IP : 3.16.212.203 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Text::Markdown::Discount.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Text::Markdown::Discount.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Text::Markdown::Discount.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Text::Markdown::Discount.3pm|43|'br══─}─══ |'br══─}─══
)