logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

DR::SunDown - perl bindings for sundown

Author

        Dmitry E. Oboukhov <unera@debian.org>

Description

       The library is a perl binding for C-library sundown <https://github.com/vmg/sundown.git>.

Exports

markdown2html(TEXT)
       Converts markdown text to html.

License

       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.

perl v5.40.0                                       2024-10-20                                   DR::SunDown(3pm)

Name

       DR::SunDown - perl bindings for sundown

Synopsis

           use DR::SunDown;
           my $markdown = `cat README.markdown`;
           my $html = markdown2html $markdown;

   utf8
       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;

See Also