Markde...kParser(3pm)

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

πŸ’– Markdent::Parser::BlockParser β€” the manual page, but make it a group chat πŸ’–

okay bestie so the actual page header is Markde...kParser(3pm) (yes it's truncated, no I don't know why, the terminal is just being dramatic πŸ’€) and it lives in the User Contributed Perl Documentation section. Anyway. Buckle up. πŸŽ€


✨ NAME ✨

Markdent::Parser::BlockParser β€” it's the block parser for standard Markdown, periodt. πŸ‘‘


🌸 VERSION 🌸

version 0.40 β€” that's the one, that's the girl. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. this class parses blocks for the standard Markdown dialect β€” the one as defined by Daring Fireball and mdtest. that's the whole vibe. blocks. standard markdown. iconic. ✨


πŸ’œ METHODS πŸ’œ

bestie, this class provides the following methods, and honestly? they ate:

πŸŽ€ Markdent::Parser::BlockParser->new( handler => $handler, span_parser => $span_parser )

creates a new block parser object, slay. 🫢

lowkey important: you must provide a span parser object. it's not optional, it's not a suggestion, it's giving requirement. 😭

🌈 $block_parser->parse_document(\$markdown)

this method takes a reference to a markdown string and parses it for blocks. ✨

and then β€” the cute part β€” every single block that contains text (except preformatted text, she sits that one out πŸ™ˆ) gets parsed for span-level markup using this object's span_parser. so it's a whole two-level situation. main character energy, honestly. πŸ’–


🌟 ROLES 🌟

this class does these three roles, no cap:

  • Markdent::Role::BlockParser πŸ’…
  • Markdent::Role::AnyParser ✨
  • Markdent::Role::DebugPrinter πŸ¦‹

three roles, one icon. πŸŽ€


πŸ’€ BUGS πŸ’€

see Markdent for bug reporting details, bestie.

bugs may be submitted at https://github.com/houseabsolute/Markdent/issues πŸ›

also!! the author is usually active on IRC as 'autarch' on irc://irc.perl.org. so if you wanna slide into the IRC, that's the door. πŸšͺ✨


πŸ”₯ 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> πŸ’–


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. periodt. πŸ’…

the full text of the license can be found in the LICENSE file included with this distribution. πŸ“œ


πŸ’Œ ok bye bestie πŸ’Œ

so the footer of the original page says this was built with perl v5.32.1 and dated 2021-08-31, and the title was the truncated Markde...kParser(3pm) again β€” so that's the whole page, we're done, go parse some blocks, ily, bye!! πŸ«ΆπŸ’–βœ¨πŸŒˆπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from