Markde...::Event(3pm)
π NAME π
okay so bestie, this is the Markde...::Event(3pm) page β say hi to Markdent::Role::Event, the role that implements behavior shared by all the events. yes, all of them. every single one. slay. π
β¨ VERSION β¨
version 0.40 β it's giving classic, it's giving stable π
πΈ DESCRIPTION πΈ
so this role hands out shared behavior to every event class in the whole Markdent universe. one role, everybody eats. π
but ngl, it's a lil bit of a hack β actually somewhat of a hack, fr fr. it's a parameterized role that generates methods for each class that consumes it. like, it doesn't just hand you the same methods, it literally spins up new ones per consumer. main character behavior, honestly. π
π¦ METHODS π¦
here's everything this role gives you. buckle up.
$event->is_start
$event->is_end
$event->is_inline
these three all return booleans that tell you whether the event is of the specified type. three lil vibe checks, one per flavor. π«Ά
$event->event_name
this one returns a name, like "start_blockquote", "end_strong", or "text". so if you ever needed your event to introduce itself at a party, this is how. iconic. β¨
$event->kv_pairs_for_attributes
this returns a hash representing the data stored in the object's attributes. important detail bestie: if an attribute is not required and has not been set, it will not be present in the hash. no ghost keys, no empty seats at the table. π
$event->debug_dump
returns a string representation of the event, suitable for debugging output. it's basically the event's little diary entry for when things go sideways. π
π BUGS π
see Markdent for bug reporting details.
bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.
also, they're 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 lives at <https://github.com/houseabsolute/Markdent>. go look, it's right there. π
π AUTHOR π
Dave Rolsky <autarch@urth.org> β king behavior, we love to see it. π
π 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.
the full text of the license can be found in the LICENSE file included with this distribution. read it, bestie, it's short and it's important. π«Ά
k that's the whole page, no notes, ate and left no crumbs π
mwah π β this was Markde...::Event(3pm) on perl v5.32.1, dated 2021-08-31. that's a wrap, periodt.
π¦ 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