NAME

Text::Markdown::Hoedown::Callbacks - Callbacks

DESCRIPTION

Note. Any API will change without notice.

PRESETS

There is 2 presets.

my $cb = Text::Markdown::Hoedown::Callbacks->html_renderer($render_flags:UV, $toc_nesting_lvl:IV);

Create a callback object from HTML presets. Arguments are documented on Text::Markdown::Hoedown.

my $cb = Text::Markdown::Hoedown::Callbacks->html_toc_renderer($nesting_level);

Create a callback object from HTML TOC presets. Arguments are documented on Text::Markdown::Hoedown.

CUSTOM CALLBACKS

my $cb = Text::Markdown::Hoedown::Callbacks->new();

Create new instance.

? for my $cb (@callbacks) {

$cb-><?= $cb->{name} ?>($code: CodeRef)

Added handler for <?= $cb-{name} ?> >.

Callback function's signature is following:

$code->(<?= join(', ', @{$cb->{pp_args}}) ?>)

? }