use super::*;
#[derive(Clone, Copy, Debug)]
pub enum EuvMdBlock {
Heading {
level: u8,
id: &'static str,
href: &'static str,
inline: &'static [EuvMdInline],
},
Paragraph(&'static [EuvMdInline]),
CodeBlock {
lang: &'static str,
code: &'static str,
},
BlockQuote(&'static [EuvMdBlock]),
List {
ordered: bool,
items: &'static [&'static [EuvMdBlock]],
},
Table {
head: &'static [&'static [EuvMdInline]],
rows: &'static [&'static [&'static [EuvMdInline]]],
},
Container {
kind: &'static str,
title: &'static str,
blocks: &'static [EuvMdBlock],
},
Rule,
Html(&'static str),
}
#[derive(Clone, Copy, Debug)]
pub enum EuvMdInline {
Text(&'static str),
Strong(&'static [EuvMdInline]),
Em(&'static [EuvMdInline]),
Del(&'static [EuvMdInline]),
Code(&'static str),
Link {
href: &'static str,
external: bool,
children: &'static [EuvMdInline],
},
Image {
src: &'static str,
alt: &'static str,
},
TaskMarker(bool),
SoftBreak,
HardBreak,
Html(&'static str),
}