DR::SunDown(3pm)
β¨ NAME β¨
okay so bestie, let me put you on π
this page is DR::SunDown (it's a 3pm manpage btw, so like, Perl module territory), and it's literally perl bindings for sundown. that's it, that's the vibe. π¦
πΈ SYNOPSIS πΈ
here's the whole glow-up in three lines, no cap:
use DR::SunDown;
my $markdown = `cat README.markdown`;
my $html = markdown2html $markdown;
like... you pull your markdown in, you get your html out. it's giving effortless. π
π§ utf8
the converter returns utf8-strings if it receives utf8-strings. periodt. so whatever energy you send in is the energy you get back π
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 how $string and $data be matching flags in the middle one? that's the mirror-selfie energy fr fr πͺβ¨
π DESCRIPTION π
the library is a perl binding for the C-library sundown, which lives over at https://github.com/vmg/sundown.git π
like it's literally just a lil perl wrapper holding hands with a C library. iconic behavior. π«Ά
β EXPORTS β
π markdown2html(TEXT)
Converts markdown text to html. that's the whole job bestie, and it does it flawlessly π β¨
π AUTHOR π
Dmitry E. Oboukhov <unera@debian.org>
shoutout to the main character who wrote this π
π 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.
tl;dr it's free, go wild, just keep the same license energy π
k so that's the whole page, you ate that π go forth and convert your markdown, bestie, i believe in you π¦π
this was DR::SunDown(3pm), perl v5.34.0, dated 2022-02-06 β mwah, slay, bye πβ¨
π¦ where this page comes from
- ubuntu jammy: libdr-sundown-perl 0.02-1build9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms