Text::...lbacks(3pm)

πŸ“¦ version 1.03, in alpine 3.24

Text::Markdown::Hoedown::Callbacks (3pm), straight from the User Contributed Perl Documentation, bestie πŸ’–. This is the callback page, and it's lowkey iconic. πŸ¦‹

🌸 NAME 🌸

Text::Markdown::Hoedown::Callbacks β€” Callbacks. periodt.

✨ DESCRIPTION ✨

Note: Any API will change without notice. 😭 no cap, bestie, APIs be like that.

πŸŽ€ PRESETS πŸŽ€

There are literally 2 presets, slay.

  • my $cb = Text::Markdown::Hoedown::Callbacks->html_renderer($render_flags:UV, $toc_nesting_lvl:IV); β€” creates a callback object from the HTML presets ✨. The arguments are documented on Text::Markdown::Hoedown.
  • my $cb = Text::Markdown::Hoedown::Callbacks->html_toc_renderer($nesting_level); β€” creates a callback object from the HTML TOC presets πŸŽ€. The arguments are documented on Text::Markdown::Hoedown.

πŸ’… CUSTOM CALLBACKS πŸ’…

Okay so first, make a fresh instance:

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

Creates new instance, iconic. Then you can add handlers like this:

  • $cb->blockcode($code: CodeRef) β€” adds a handler for blockcode; callback function signature: $code->($text:Str, $lang:Str). πŸ”₯
  • $cb->blockquote($code: CodeRef) β€” adds a handler for blockquote; callback function signature: $code->($content:Str). πŸ’œ
  • $cb->header($code: CodeRef) β€” adds a handler for header; callback function signature: $code->($content:Str, $level:Int). πŸ‘‘
  • $cb->hrule($code: CodeRef) β€” adds a handler for hrule; callback function signature: $code->(). ⭐
  • $cb->list($code: CodeRef) β€” adds a handler for list; callback function signature: $code->($content:Str, $type:Int). 🌈
  • $cb->listitem($code: CodeRef) β€” adds a handler for listitem; callback function signature: $code->($content:Str, $type:Int). πŸ“
  • $cb->paragraph($code: CodeRef) β€” adds a handler for paragraph; callback function signature: $code->($content:Str). πŸ’–
  • $cb->table($code: CodeRef) β€” adds a handler for table; callback function signature: $code->($content:Str). ✨
  • $cb->table_header($code: CodeRef) β€” adds a handler for table_header; callback function signature: $code->($content:Str). πŸŽ€
  • $cb->table_body($code: CodeRef) β€” adds a handler for table_body; callback function signature: $code->($content:Str). πŸ¦‹
  • $cb->table_row($code: CodeRef) β€” adds a handler for table_row; callback function signature: $code->($content:Str). 🌸
  • $cb->table_cell($code: CodeRef) β€” adds a handler for table_cell; callback function signature: $code->($content:Str, $type:Int). πŸ’…
  • $cb->footnotes($code: CodeRef) β€” adds a handler for footnotes; callback function signature: $code->($content:Str). 🫢
  • $cb->footnote_def($code: CodeRef) β€” adds a handler for footnote_def; callback function signature: $code->($content:Str, $num:UInt). 😭
  • $cb->blockhtml($code: CodeRef) β€” adds a handler for blockhtml; callback function signature: $code->($text:Str). πŸ”₯
  • $cb->autolink($code: CodeRef) β€” adds a handler for autolink; callback function signature: $code->($link:Str, $type:Int). πŸ‘‘
  • $cb->codespan($code: CodeRef) β€” adds a handler for codespan; callback function signature: $code->($text:Str). 🌈
  • $cb->double_emphasis($code: CodeRef) β€” adds a handler for double_emphasis; callback function signature: $code->($content:Str). ⭐
  • $cb->emphasis($code: CodeRef) β€” adds a handler for emphasis; callback function signature: $code->($content:Str). πŸ’€
  • $cb->underline($code: CodeRef) β€” adds a handler for underline; callback function signature: $code->($content:Str). πŸ™ˆ
  • $cb->highlight($code: CodeRef) β€” adds a handler for highlight; callback function signature: $code->($content:Str). πŸ“
  • $cb->quote($code: CodeRef) β€” adds a handler for quote; callback function signature: $code->($content:Str). 🧚
  • $cb->image($code: CodeRef) β€” adds a handler for image; callback function signature: $code->($link:Str, $title:Str, $alt:Str). πŸ’œ
  • $cb->linebreak($code: CodeRef) β€” adds a handler for linebreak; callback function signature: $code->(). πŸ’–
  • $cb->link($code: CodeRef) β€” adds a handler for link; callback function signature: $code->($content:Str, $link:Str, $title:Str). ✨
  • $cb->triple_emphasis($code: CodeRef) β€” adds a handler for triple_emphasis; callback function signature: $code->($content:Str). πŸŽ€
  • $cb->strikethrough($code: CodeRef) β€” adds a handler for strikethrough; callback function signature: $code->($content:Str). πŸ¦‹
  • $cb->superscript($code: CodeRef) β€” adds a handler for superscript; callback function signature: $code->($content:Str). 🌸
  • $cb->footnote_ref($code: CodeRef) β€” adds a handler for footnote_ref; callback function signature: $code->($num:UInt). πŸ’…
  • $cb->math($code: CodeRef) β€” adds a handler for math; callback function signature: $code->($text:Str, $displaymode:Int). 🫢
  • $cb->raw_html($code: CodeRef) β€” adds a handler for raw_html; callback function signature: $code->($text:Str). 😭
  • $cb->entity($code: CodeRef) β€” adds a handler for entity; callback function signature: $code->($text:Str). πŸ”₯
  • $cb->normal_text($code: CodeRef) β€” adds a handler for normal_text; callback function signature: $code->($text:Str). πŸ‘‘
  • $cb->doc_header($code: CodeRef) β€” adds a handler for doc_header; callback function signature: $code->($inline_render:Int). 🌈
  • $cb->doc_footer($code: CodeRef) β€” adds a handler for doc_footer; callback function signature: $code->($inline_render:Int). ⭐

mwah πŸ’– this page is from perl v5.42.2, dated 2025-06-30, via the User Contributed Perl Documentation. bye bestie, go slay those callbacks πŸ‘‘

πŸ“¦ where this page comes from