Text::Markdown::Hoedown::Callbacks - Callbacks
Note. Any API will change without notice.
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.
my $cb = Text::Markdown::Hoedown::Callbacks->new();
Create new instance.
$cb->blockcode($code: CodeRef)
Added handler for blockcode .
blockcode
Callback function's signature is following:
$code->($text:Str, $lang:Str)
$cb->blockquote($code: CodeRef)
Added handler for blockquote .
blockquote
$code->($content:Str)
$cb->header($code: CodeRef)
Added handler for header .
header
$code->($content:Str, $level:Int)
$cb->hrule($code: CodeRef)
Added handler for hrule .
hrule
$code->()
$cb->list($code: CodeRef)
Added handler for list .
list
$code->($content:Str, $type:Int)
$cb->listitem($code: CodeRef)
Added handler for listitem .
listitem
$cb->paragraph($code: CodeRef)
Added handler for paragraph .
paragraph
$cb->table($code: CodeRef)
Added handler for table .
table
$cb->table_header($code: CodeRef)
Added handler for table_header .
table_header
$cb->table_body($code: CodeRef)
Added handler for table_body .
table_body
$cb->table_row($code: CodeRef)
Added handler for table_row .
table_row
$cb->table_cell($code: CodeRef)
Added handler for table_cell .
table_cell
$cb->footnotes($code: CodeRef)
Added handler for footnotes .
footnotes
$cb->footnote_def($code: CodeRef)
Added handler for footnote_def .
footnote_def
$code->($content:Str, $num:UInt)
$cb->blockhtml($code: CodeRef)
Added handler for blockhtml .
blockhtml
$code->($text:Str)
$cb->autolink($code: CodeRef)
Added handler for autolink .
autolink
$code->($link:Str, $type:Int)
$cb->codespan($code: CodeRef)
Added handler for codespan .
codespan
$cb->double_emphasis($code: CodeRef)
Added handler for double_emphasis .
double_emphasis
$cb->emphasis($code: CodeRef)
Added handler for emphasis .
emphasis
$cb->underline($code: CodeRef)
Added handler for underline .
underline
$cb->highlight($code: CodeRef)
Added handler for highlight .
highlight
$cb->quote($code: CodeRef)
Added handler for quote .
quote
$cb->image($code: CodeRef)
Added handler for image .
image
$code->($link:Str, $title:Str, $alt:Str)
$cb->linebreak($code: CodeRef)
Added handler for linebreak .
linebreak
$cb->link($code: CodeRef)
Added handler for link .
link
$code->($content:Str, $link:Str, $title:Str)
$cb->triple_emphasis($code: CodeRef)
Added handler for triple_emphasis .
triple_emphasis
$cb->strikethrough($code: CodeRef)
Added handler for strikethrough .
strikethrough
$cb->superscript($code: CodeRef)
Added handler for superscript .
superscript
$cb->footnote_ref($code: CodeRef)
Added handler for footnote_ref .
footnote_ref
$code->($num:UInt)
$cb->math($code: CodeRef)
Added handler for math .
math
$code->($text:Str, $displaymode:Int)
$cb->raw_html($code: CodeRef)
Added handler for raw_html .
raw_html
$cb->entity($code: CodeRef)
Added handler for entity .
entity
$cb->normal_text($code: CodeRef)
Added handler for normal_text .
normal_text
$cb->doc_header($code: CodeRef)
Added handler for doc_header .
doc_header
$code->($inline_render:Int)
$cb->doc_footer($code: CodeRef)
Added handler for doc_footer .
doc_footer
To install Text::Markdown::Hoedown, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Markdown::Hoedown
CPAN shell
perl -MCPAN -e shell install Text::Markdown::Hoedown
For more information on module installation, please visit the detailed CPAN module installation guide.