added Url, Link and Image

This commit is contained in:
sam lovelace 2021-11-28 03:36:28 +00:00
parent fb922193b1
commit 461ba82620

View file

@ -1,3 +1,5 @@
pub struct Url;
pub struct RGBA {
red: u8,
green: u8,
@ -26,6 +28,19 @@ pub struct Blockquote {
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