DR::SunDown - perl bindings for sundown
use DR::SunDown; my $markdown = `cat README.markdown`; my $html = markdown2html $markdown;
The converter returns utf8-strings if it receives utf8-strings.
use Encode 'encode', 'decode'; # $string is encoded utf8 my $string = markdown2html encode utf8 => $data; # $string and $data have the same utf8 flag my $string = markdown2html $data; utf8::decode( $data ) if utf8::is_utf8( $data ); # $string is decoded utf8 my $string = markdown2html $data;
The library is a perl binding for C-library sundown.
Converts markdown text to html.
Dmitry E. Oboukhov <unera@debian.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install DR::SunDown, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DR::SunDown
CPAN shell
perl -MCPAN -e shell install DR::SunDown
For more information on module installation, please visit the detailed CPAN module installation guide.