Markde...Parser(3pm)
β¨ Markdent::Parser::SpanParser β the span parser for standard Markdown β¨
okay bestie, sit down, hydrate, because we're talking about Markdent::Parser::SpanParser π it's a Perl module (from the User Contributed Perl Documentation, no less π) and it's the span parser for standard Markdown. yes. that Markdown.
πΈ VERSION πΈ
version 0.40 β that's the one, that's the version, periodt π
π¦ DESCRIPTION π¦
This class parses spans for the standard Markdown dialect (as defined by Daring Fireball and mdtest). that's it, that's the whole job, and it does it beautifully, no cap π
π METHODS π
This class provides the following methods, and honestly? each one is doing the most in the best way:
π Markdent::Parser::SpanParser->new( handler => $handler )
Creates a new span parser object. You must provide a span parser object. like, it's not optional bestie, hand over the span parser π«Ά
π $span_parser->extract_link_ids(\$markdown)
This method takes a reference to a markdown string and parses it for link ids. These are removed from the document and stored in the span parser for later use. so it's lowkey a little heist β the link ids get lifted out of the doc and tucked away for later π₯
β $span_parser->parse_block(\$block)
Parses a block for span-level markup. short, sweet, iconic. she said "block in, span-level markup understood" and that's that π
π ROLES π
This class does the Markdent::Role::SpanParser, Markdent::Role::AnyParser, and Markdent::Role::DebugPrinter roles. three roles? main character energy fr fr π
π BUGS π
See Markdent for bug reporting details. (yes, go look at Markdent, it's the whole thing π)
Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>. click it, drag it, submit it π¦
I am also usually active on IRC as 'autarch' on irc://irc.perl.org. so if you wanna vibe in real time, that's where the author lives π«Ά
πΈ SOURCE πΈ
The source code repository for Markdent can be found at <https://github.com/houseabsolute/Markdent>. go forth and clone, bestie π
β¨ AUTHOR β¨
Dave Rolsky <autarch@urth.org> β an absolute legend, we stan π
π 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. free software, free vibes π
The full text of the license can be found in the LICENSE file included with this distribution. read it, it's literally right there πβ¨
real talk though: don't skip the license, it's not a vibe check you wanna fail π
and that's the whole page, bestie π«Ά this was perl v5.32.1, dated 2021-08-31, and it's the Markde...Parser(3pm) page β slay, 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