Struct mdxt::RenderResult
source · pub struct RenderResult {
pub content: String,
pub has_collapsible_table: bool,
pub has_tooltip: bool,
pub metadata: Option<Yaml>,
pub fenced_code_contents: HashMap<usize, String>,
}Fields§
§content: String§has_collapsible_table: boolThis flag tells you if the document has a collapsible table.
has_tooltip: boolThis flag tells you if the document has a tooltip.
metadata: Option<Yaml>§fenced_code_contents: HashMap<usize, String>Some fenced codes have a copy button with them.
Each button has an index of the fenced code.
This hashmap maps the index and the content of the fenced code.
Use this data when writing javascript for the copy buttons.