Markde...kParser(3pm)
π 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> π
π COPYRIGHT AND LICENSE π
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
- debian bookworm: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms