Merge branch 'issue1' of ssh://git.ablecorp.us:20/Mesh/meshup into issue1
This commit is contained in:
commit
b3d5a86780
14
src/lib.rs
14
src/lib.rs
|
@ -15,15 +15,27 @@ pub struct CodeBlock {
|
||||||
text: String,
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Emphasis {
|
pub struct StyledText {
|
||||||
italic: bool,
|
italic: bool,
|
||||||
bold: bool,
|
bold: bool,
|
||||||
|
underline: bool,
|
||||||
|
color: Option<RGBA>,
|
||||||
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Blockquote {
|
pub struct Blockquote {
|
||||||
level: u8,
|
level: u8,
|
||||||
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub enum Node {
|
||||||
|
Header(Header),
|
||||||
|
Paragraph(Vec<StyledText>),
|
||||||
|
HRule,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Document(Vec<Node>);
|
||||||
|
|
||||||
// TODO: able take care of lists i am too drunk for this tonight
|
// TODO: able take care of lists i am too drunk for this tonight
|
||||||
|
|
||||||
pub enum ListType {
|
pub enum ListType {
|
||||||
|
|
Loading…
Reference in a new issue