Struct hoedown::renderer::trace::Trace
[−]
[src]
pub struct Trace;
This renderer implements the block handlers to make it easy to determine which handlers need to be implemented for a given document.
Trait Implementations
impl Render for Trace
[src]
fn code_block(&mut self, output: &mut Buffer, text: &Buffer, lang: &Buffer)
Runs when a codeblock is encountered Read more
fn quote_block(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a block quote is encountered Read more
fn header(&mut self, output: &mut Buffer, content: &Buffer, level: i32)
Runs when a header is encountered Read more
fn horizontal_rule(&mut self, output: &mut Buffer)
Runs when a horizontal rule is encountered Read more
fn list(&mut self, output: &mut Buffer, content: &Buffer, flags: List)
Runs when a list is encountered. Read more
fn list_item(&mut self, output: &mut Buffer, content: &Buffer, flags: List)
Runs when a list item is encountered. Read more
fn paragraph(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a paragraph is encountered. Read more
fn table(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a table is encountered. Read more
fn table_header(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a table header is encountered. Read more
fn table_body(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a table body is encountered. Read more
fn table_row(&mut self, output: &mut Buffer, content: &Buffer)
Runs when a table row is encountered. Read more
fn table_cell(&mut self, output: &mut Buffer, content: &Buffer, flags: Table)
Runs when a table cell is encountered. Read more
fn footnotes(&mut self, output: &mut Buffer, content: &Buffer)
Runs when footnotes are encountered. Read more
fn footnote_definition(&mut self, output: &mut Buffer, content: &Buffer, num: u32)
Runs when a footnote definition is encountered. Read more
fn html_block(&mut self, output: &mut Buffer, text: &Buffer)
Runs when a raw html block is encountered. Read more
fn render(&mut self, input: &Markdown) -> Buffer
Render the document to a buffer that is returned
fn render_to(&mut self, input: &Markdown, output: &mut Buffer)
Render the document into the given buffer
fn render_inline(&mut self, input: &Markdown) -> Buffer
Render the document as inline to a buffer that is returned
fn render_inline_to(&mut self, input: &Markdown, output: &mut Buffer)
Render the document as inline into the given buffer
unsafe fn to_hoedown(&mut self) -> hoedown_renderer
Converts the type into an underlying hoedown_renderer
structure. Read more
fn autolink(&mut self, output: &mut Buffer, link: &Buffer, link_type: AutoLink) -> bool
Runs when an autolink candidate is encountered. Read more
fn code_span(&mut self, output: &mut Buffer, text: &Buffer) -> bool
Runs when a code span is encountered. Read more
fn double_emphasis(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when double emphasis is encountered. Read more
fn emphasis(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when emphasis is encountered. Read more
fn underline(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when underline is encountered. Read more
fn highlight(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when highlight is encountered. Read more
fn quote_span(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when a quote is encountered. Read more
fn image(&mut self, output: &mut Buffer, link: &Buffer, title: &Buffer, alt: &Buffer) -> bool
Runs when an image is encountered. Read more
fn line_break(&mut self, output: &mut Buffer) -> bool
Runs when a line break is encountered. Read more
fn link(&mut self, output: &mut Buffer, content: &Buffer, link: &Buffer, title: &Buffer) -> bool
Runs when a link is encountered. Read more
fn triple_emphasis(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when triple emphasis is encountered. Read more
fn strikethrough(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when strikethrough is encountered. Read more
fn superscript(&mut self, output: &mut Buffer, content: &Buffer) -> bool
Runs when superscript is encountered. Read more
fn footnote_reference(&mut self, output: &mut Buffer, num: u32) -> bool
Runs when a footnote reference is encountered. Read more
fn math(&mut self, output: &mut Buffer, text: &Buffer, displaymode: i32) -> bool
Runs when math is encountered. Read more
fn html_span(&mut self, output: &mut Buffer, text: &Buffer) -> bool
Runs when raw html span is encountered. Read more
fn entity(&mut self, output: &mut Buffer, text: &Buffer)
Runs when an html entity is encountered. Read more
fn normal_text(&mut self, output: &mut Buffer, text: &Buffer)
Runs when plain text is encountered. Read more
fn before_render(&mut self, output: &mut Buffer, inline_render: bool)
Runs before the document is processed. Read more
fn after_render(&mut self, output: &mut Buffer, inline_render: bool)
Runs after the document has been processed. Read more