added Url, Link and Image
This commit is contained in:
parent
fb922193b1
commit
461ba82620
15
src/lib.rs
15
src/lib.rs
|
@ -1,3 +1,5 @@
|
||||||
|
pub struct Url;
|
||||||
|
|
||||||
pub struct RGBA {
|
pub struct RGBA {
|
||||||
red: u8,
|
red: u8,
|
||||||
green: u8,
|
green: u8,
|
||||||
|
@ -26,6 +28,19 @@ pub struct Blockquote {
|
||||||
text: String,
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct Link {
|
||||||
|
text: String,
|
||||||
|
url: Url,
|
||||||
|
title: Option<String>,
|
||||||
|
}
|
||||||
|
|
||||||
|
pub struct Image {
|
||||||
|
text: String,
|
||||||
|
image: Url,
|
||||||
|
title: Option<String>,
|
||||||
|
link: Option<Link>,
|
||||||
|
}
|
||||||
|
|
||||||
// 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue