pub enum EuvMarkdownBlock {
Show 14 variants
Heading {
level: u8,
text: String,
},
Paragraph(Vec<EuvMarkdownInline>),
CodeBlock {
language: String,
title: Option<String>,
highlight_lines: Vec<usize>,
code: String,
},
Mermaid {
source: String,
},
EChart {
source: String,
},
MathBlock(String),
Quote {
kind: EuvMarkdownAlertKind,
title: Option<String>,
depth: usize,
lines: Vec<String>,
children: Vec<EuvMarkdownBlock>,
},
List {
ordered: bool,
start: usize,
items: Vec<EuvMarkdownListItem>,
},
Table {
headers: Vec<String>,
alignments: Vec<EuvMarkdownAlign>,
rows: Vec<Vec<String>>,
},
DefinitionList(Vec<EuvMarkdownDefItem>),
Footnotes(Vec<EuvMarkdownFootnote>),
Divider,
Image {
alt: String,
url: String,
},
Details {
summary: String,
open: bool,
body: Vec<String>,
children: Vec<EuvMarkdownBlock>,
},
}Expand description
Parsed block-level Markdown AST node rendered natively by EuvMarkdown.
Variants§
Heading
ATX heading (# through ######).
Paragraph(Vec<EuvMarkdownInline>)
Rich inline paragraph.
CodeBlock
Fenced or indented syntax-highlighted code block.
Fields
Mermaid
Native vector Mermaid diagram block (```mermaid).
EChart
Embedded native vector ECharts block (```echart or ```echarts).
MathBlock(String)
Display math block ($$...$$).
Quote
Blockquote or GitHub-flavored Alert / container callout.
Fields
kind: EuvMarkdownAlertKindPlain quote or alert kind.
title: Option<String>Optional custom callout header title (for example from ::: warning Custom Title).
children: Vec<EuvMarkdownBlock>Recursively parsed nested Markdown child blocks inside the callout.
List
Unordered, ordered, nested, or task-checklist list.
Fields
items: Vec<EuvMarkdownListItem>Ordered list items.
Table
GFM aligned data table.
Fields
alignments: Vec<EuvMarkdownAlign>Column alignments.
DefinitionList(Vec<EuvMarkdownDefItem>)
Extended Markdown definition list (Term + : Definition).
Footnotes(Vec<EuvMarkdownFootnote>)
Bottom footnote definitions section ([^id]: text).
Divider
Thematic horizontal divider (---).
Image
Image figure ().
Details
Collapsible <details><summary> or ::: details disclosure block.