---
name: "Markdent::Role::Event"
section: "3pm"
platform: "linux"
package: "libmarkdent-perl"
version: "0.40-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Markdent::Role::Event"
---

# Markdent::Role::Event(3pm)

Implements behavior shared by all events

## NAME

Markdent::Role::Event - Implements behavior shared by all events

## VERSION

version 0.40

## DESCRIPTION

This role provides shared behavior for all event classes. It is actually somewhat of a hack, as it is a parameterized role that generates methods for each class that consumes it.

## METHODS

This role provides the following methods:

### $event-\>is\_start

### $event-\>is\_end

### $event-\>is\_inline

These all returns booleans indicating whether the event is of the specified type.

### $event-\>event\_name

This returns a name like "start\_blockquote", "end\_strong", or "text".

### $event-\>kv\_pairs\_for\_attributes

This returns a hash representing the data stored in the object's attributes. If an attribute is not required and has not been set, it will not be present in the hash.

### $event-\>debug\_dump

Returns a string representation of the event suitable for debugging output.

## BUGS

See Markdent for bug reporting details.

Bugs may be submitted at \<https://github.com/houseabsolute/Markdent/issues\>.

I am also usually active on IRC as 'autarch' on `"irc://irc.perl.org"`.

## SOURCE

The source code repository for Markdent can be found at \<https://github.com/houseabsolute/Markdent\>.

## 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.

The full text of the license can be found in the *LICENSE* file included with this distribution.
