2021-11-25 18:58:51 -06:00
|
|
|
pub struct RGBA {
|
|
|
|
red: u8,
|
|
|
|
green: u8,
|
|
|
|
blue: u8,
|
|
|
|
alpha: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Header {
|
|
|
|
label: String,
|
|
|
|
level: u8,
|
|
|
|
}
|
|
|
|
|
2021-11-25 19:04:42 -06:00
|
|
|
pub struct CodeBlock {
|
2021-11-27 21:04:34 -06:00
|
|
|
language: String,
|
2021-11-25 19:04:42 -06:00
|
|
|
text: String,
|
|
|
|
}
|
2021-11-27 21:23:12 -06:00
|
|
|
|
|
|
|
pub struct Emphasis {
|
|
|
|
italic: bool,
|
|
|
|
bold: bool,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Blockquote {
|
|
|
|
level: u8,
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: able take care of lists i am too drunk for this tonight
|
|
|
|
|
2021-11-27 21:33:07 -06:00
|
|
|
pub enum ListType {
|
|
|
|
Ordered,
|
|
|
|
Unordered,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct List {}
|
|
|
|
|
2021-11-25 18:58:51 -06:00
|
|
|
pub fn parse() {}
|