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.
$cb->blockcode($code: CodeRef)-
Added handler for
blockcode.Callback function's signature is following:
$code->($text:Str, $lang:Str) $cb->blockquote($code: CodeRef)-
Added handler for
blockquote.Callback function's signature is following:
$code->($content:Str) $cb->header($code: CodeRef)-
Added handler for
header.Callback function's signature is following:
$code->($content:Str, $level:Int) $cb->hrule($code: CodeRef)-
Added handler for
hrule.Callback function's signature is following:
$code->() $cb->list($code: CodeRef)-
Added handler for
list.Callback function's signature is following:
$code->($content:Str, $type:Int) $cb->listitem($code: CodeRef)-
Added handler for
listitem.Callback function's signature is following:
$code->($content:Str, $type:Int) $cb->paragraph($code: CodeRef)-
Added handler for
paragraph.Callback function's signature is following:
$code->($content:Str) $cb->table($code: CodeRef)-
Added handler for
table.Callback function's signature is following:
$code->($content:Str) $cb->table_header($code: CodeRef)-
Added handler for
table_header.Callback function's signature is following:
$code->($content:Str) $cb->table_body($code: CodeRef)-
Added handler for
table_body.Callback function's signature is following:
$code->($content:Str) $cb->table_row($code: CodeRef)-
Added handler for
table_row.Callback function's signature is following:
$code->($content:Str) $cb->table_cell($code: CodeRef)-
Added handler for
table_cell.Callback function's signature is following:
$code->($content:Str, $type:Int) $cb->footnotes($code: CodeRef)-
Added handler for
footnotes.Callback function's signature is following:
$code->($content:Str) $cb->footnote_def($code: CodeRef)-
Added handler for
footnote_def.Callback function's signature is following:
$code->($content:Str, $num:UInt) $cb->blockhtml($code: CodeRef)-
Added handler for
blockhtml.Callback function's signature is following:
$code->($text:Str) $cb->autolink($code: CodeRef)-
Added handler for
autolink.Callback function's signature is following:
$code->($link:Str, $type:Int) $cb->codespan($code: CodeRef)-
Added handler for
codespan.Callback function's signature is following:
$code->($text:Str) $cb->double_emphasis($code: CodeRef)-
Added handler for
double_emphasis.Callback function's signature is following:
$code->($content:Str) $cb->emphasis($code: CodeRef)-
Added handler for
emphasis.Callback function's signature is following:
$code->($content:Str) $cb->underline($code: CodeRef)-
Added handler for
underline.Callback function's signature is following:
$code->($content:Str) $cb->highlight($code: CodeRef)-
Added handler for
highlight.Callback function's signature is following:
$code->($content:Str) $cb->quote($code: CodeRef)-
Added handler for
quote.Callback function's signature is following:
$code->($content:Str) $cb->image($code: CodeRef)-
Added handler for
image.Callback function's signature is following:
$code->($link:Str, $title:Str, $alt:Str) $cb->linebreak($code: CodeRef)-
Added handler for
linebreak.Callback function's signature is following:
$code->() $cb->link($code: CodeRef)-
Added handler for
link.Callback function's signature is following:
$code->($content:Str, $link:Str, $title:Str) $cb->triple_emphasis($code: CodeRef)-
Added handler for
triple_emphasis.Callback function's signature is following:
$code->($content:Str) $cb->strikethrough($code: CodeRef)-
Added handler for
strikethrough.Callback function's signature is following:
$code->($content:Str) $cb->superscript($code: CodeRef)-
Added handler for
superscript.Callback function's signature is following:
$code->($content:Str) $cb->footnote_ref($code: CodeRef)-
Added handler for
footnote_ref.Callback function's signature is following:
$code->($num:UInt) $cb->math($code: CodeRef)-
Added handler for
math.Callback function's signature is following:
$code->($text:Str, $displaymode:Int) $cb->raw_html($code: CodeRef)-
Added handler for
raw_html.Callback function's signature is following:
$code->($text:Str) $cb->entity($code: CodeRef)-
Added handler for
entity.Callback function's signature is following:
$code->($text:Str) $cb->normal_text($code: CodeRef)-
Added handler for
normal_text.Callback function's signature is following:
$code->($text:Str) $cb->doc_header($code: CodeRef)-
Added handler for
doc_header.Callback function's signature is following:
$code->($inline_render:Int) -
Added handler for
doc_footer.Callback function's signature is following:
$code->($inline_render:Int)