DR::SunDown(3pm)

πŸ“¦
version 0.02 Β· 3 versions
, in ubuntu jammy

✨ 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