Markde...agment(3pm)

πŸ“¦
version 0.40 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

✨ NAME ✨

Markdent::Simple::Fragment β€” bestie, it turns Markdown into an HTML fragment πŸ’–


πŸŽ€ VERSION πŸŽ€

version 0.40 β€” yes she's got a version number, she's official


πŸ¦‹ SYNOPSIS πŸ¦‹

use Markdent::Simple::Fragment;

my $mds  = Markdent::Simple::Fragment->new;
my $html = $mds->markdown_to_html(
    markdown => $markdown,
);

okay so literally three lines and you're done, no cap 🫢


🌸 DESCRIPTION 🌸

This class is giving extremely simple interface energy. It converts Markdown to an HTML fragment. That's it. That's the whole vibe. Lowkey iconic for how unbothered it is 😌


πŸ’… METHODS πŸ’…

She comes with the following methods, periodt:

πŸ’œ Markdent::Simple::Fragment->new

Creates a brand new Markdent::Simple::Fragment object. Fresh out the box, main character energy ✨

πŸ’œ $mdf->markdown_to_html( markdown => $markdown )

This one right here turns your Markdown into HTML. She accepts the following parameters:

  • markdown β€” this is the markdown you're passing in. This argument is required β€” no skipping it bestie, she will not work without it πŸ™ˆ
  • dialects β€” this can be either a single string, or an array ref of strings, and those strings hold the class names of dialects. This parameter is optional, so you can totally ghost it if you want πŸ’«

🌈 ROLES 🌈

This class does the Markdent::Role::Simple role. She's got range, she's multi-talented πŸ‘‘


πŸ’€ BUGS πŸ’€

See Markdent for the bug reporting details. iykyk.

Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.

I am also usually active on IRC as 'autarch' on irc://irc.perl.org. come say hi 🫢


⭐ SOURCE ⭐

The source code repository for Markdent can be found at <https://github.com/houseabsolute/Markdent>. go look, it's right there 🧚


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky <autarch@urth.org> β€” we stan πŸ’–


This software is copyright (c) 2021 by Dave Rolsky.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

The full text of the license can be found in the LICENSE file included with this distribution.


and that's the whole page bestie!! this one's from perl v5.32.1, dated 2021-08-31, part of the User Contributed Perl Documentation set, and yeah β€” the manpage name got squished to Markde...agment(3pm) up top but you already knew what it was πŸ’…βœ¨

πŸ“¦ where this page comes from