MATSUNO★Tokuhiro > Text-Markdown-Hoedown-0.07 > Text::Markdown::Hoedown::Callbacks

Download:
Text-Markdown-Hoedown-0.07.tar.gz

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Text-Markdown-Hoedown-1.01

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->($text:Str)
$cb->blockhtml($code: CodeRef)

Added handler for blockhtml .

Callback function's signature is following:

    $code->($text:Str)
$cb->header($code: CodeRef)

Added handler for header .

Callback function's signature is following:

    $code->($text: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->($text:Str, $flags:Int)
$cb->listitem($code: CodeRef)

Added handler for listitem .

Callback function's signature is following:

    $code->($text:Str, $flags:Int)
$cb->paragraph($code: CodeRef)

Added handler for paragraph .

Callback function's signature is following:

    $code->($text:Str)
$cb->table($code: CodeRef)

Added handler for table .

Callback function's signature is following:

    $code->($header:Str, $body:Str)
$cb->table_row($code: CodeRef)

Added handler for table_row .

Callback function's signature is following:

    $code->($text:Str)
$cb->table_cell($code: CodeRef)

Added handler for table_cell .

Callback function's signature is following:

    $code->($text:Str, $flags:Int)
$cb->footnotes($code: CodeRef)

Added handler for footnotes .

Callback function's signature is following:

    $code->($text:Str)
$cb->footnote_def($code: CodeRef)

Added handler for footnote_def .

Callback function's signature is following:

    $code->($text:Str, $num:UInt)
$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->($text:Str)
$cb->emphasis($code: CodeRef)

Added handler for emphasis .

Callback function's signature is following:

    $code->($text:Str)
$cb->underline($code: CodeRef)

Added handler for underline .

Callback function's signature is following:

    $code->($text:Str)
$cb->highlight($code: CodeRef)

Added handler for highlight .

Callback function's signature is following:

    $code->($text:Str)
$cb->quote($code: CodeRef)

Added handler for quote .

Callback function's signature is following:

    $code->($text: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->($link:Str, $title:Str, $content:Str)
$cb->raw_html_tag($code: CodeRef)

Added handler for raw_html_tag .

Callback function's signature is following:

    $code->($tag:Str)
$cb->triple_emphasis($code: CodeRef)

Added handler for triple_emphasis .

Callback function's signature is following:

    $code->($text:Str)
$cb->strikethrough($code: CodeRef)

Added handler for strikethrough .

Callback function's signature is following:

    $code->($text:Str)
$cb->superscript($code: CodeRef)

Added handler for superscript .

Callback function's signature is following:

    $code->($text:Str)
$cb->footnote_ref($code: CodeRef)

Added handler for footnote_ref .

Callback function's signature is following:

    $code->($num:UInt)
$cb->entity($code: CodeRef)

Added handler for entity .

Callback function's signature is following:

    $code->($entity: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->()
$cb->doc_footer($code: CodeRef)

Added handler for doc_footer .

Callback function's signature is following:

    $code->()
syntax highlighting: