Markde...yParser(3pm)

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

πŸ’… Markde...yParser(3pm) πŸ’…

okay bestie, so the page you're looking at is Markde...yParser(3pm) β€” that's the manual page name right there in the header, she's got a lil truncated glow-up but that's just how she's filed, and she lives in the User Contributed Perl Documentation section. come sit with me, this one's short and sweet and honestly kind of a bop. πŸŽ€


✨ VERSION ✨

version 0.40 β€” that's the one, no cap. πŸ¦‹


🌸 NAME 🌸

Markdent::Role::AnyParser β€” a role for block and span parsers. it's giving "shared behavior, but make it a role." πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

So basically this role is the communal group chat that every type of parser hangs out in. It implements the behavior that all the parsers share β€” block parsers, span parsers, the whole squad. one role, everybody eats. πŸ“


✨ ATTRIBUTES ✨

Here's the tea, this role hands you the following attributes:

πŸŽ€ handler πŸŽ€

  • This one is a read-only attribute, so no touching, she's taken. πŸ™ˆ
  • It's an object that does the Markdent::Role::Handler role β€” so it's a handler, and it knows it. πŸ’…
  • This is required for all parsers. like, required required. every single one. no parser skips this, fr fr.

πŸ’… METHODS πŸ’…

$parser->_detab_text(\$text)

Okay so this one takes a scalar reference to a piece of text that's going to be outputted, and it swaps out all the tabs for spaces. ✨

The way it works is: this happens after a piece of text has been parsed for markup. So markup first, detabbing second. order matters, bestie, don't come for me. 🫢


🌈 ROLES 🌈

This class does the Markdent::Role::DebugPrinter role. so it's also a debug printer. multi-hyphenate behavior, main character energy honestly. πŸ‘‘


πŸ’€ BUGS πŸ’€

See Markdent for the full bug reporting deets.

Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues> β€” like, click it, drop your issue, she'll see it. 😭

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 move. 🌸


⭐ SOURCE ⭐

The source code repository for Markdent can be found at <https://github.com/houseabsolute/Markdent>. go read the source, it's free real estate. πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky <autarch@urth.org> β€” the icon, the legend, the whole vibe. 🫢


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. slay. ✨

The full text of the license can be found in the LICENSE file included with this distribution. go read it, iykyk. πŸ“œ

ngl the license line is not a suggestion bestie, it's literally the rules, so peep the LICENSE file before you do anything spicy. πŸ’…

okay that's the whole page, we ate and left no crumbs. πŸ“βœ¨

perl v5.32.1 Β· 2021-08-31 Β· Markde...yParser(3pm) β€” that's the version, the date, and the page name, all bundled up in the footer like a lil bow at the end of the note. mwah, bye bestie! πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from