37 lines
457 B
Rust
37 lines
457 B
Rust
pub struct RGBA {
|
|
red: u8,
|
|
green: u8,
|
|
blue: u8,
|
|
alpha: u8,
|
|
}
|
|
|
|
pub struct Header {
|
|
label: String,
|
|
level: u8,
|
|
}
|
|
|
|
pub struct CodeBlock {
|
|
language: String,
|
|
text: String,
|
|
}
|
|
|
|
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
|
|
|
|
pub enum ListType {
|
|
Ordered,
|
|
Unordered,
|
|
}
|
|
|
|
pub struct List {}
|
|
|
|
pub fn parse() {}
|