url
This commit is contained in:
parent
fa0791166e
commit
f1592883a2
16
src/lib.rs
16
src/lib.rs
|
@ -1,4 +1,14 @@
|
||||||
pub struct Url;
|
#[derive(Debug)]
|
||||||
|
struct Url {
|
||||||
|
scheme: String,
|
||||||
|
user: String,
|
||||||
|
password: String,
|
||||||
|
host: String,
|
||||||
|
port: u16,
|
||||||
|
path: String,
|
||||||
|
query: String,
|
||||||
|
fragment: String,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct RGBA {
|
pub struct RGBA {
|
||||||
red: u8,
|
red: u8,
|
||||||
|
@ -30,7 +40,6 @@ pub struct Blockquote {
|
||||||
text: String,
|
text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
pub struct Link {
|
pub struct Link {
|
||||||
text: String,
|
text: String,
|
||||||
url: Url,
|
url: Url,
|
||||||
|
@ -43,7 +52,7 @@ pub struct Image {
|
||||||
title: Option<String>,
|
title: Option<String>,
|
||||||
link: Option<Link>,
|
link: Option<Link>,
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
pub enum Node {
|
pub enum Node {
|
||||||
Header(Header),
|
Header(Header),
|
||||||
Paragraph(Vec<StyledText>),
|
Paragraph(Vec<StyledText>),
|
||||||
|
@ -51,7 +60,6 @@ pub enum Node {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Document(Vec<Node>);
|
pub struct Document(Vec<Node>);
|
||||||
>>>>>>> d808ae46ad469d6024e76ad006f7b3e0832fe8cb
|
|
||||||
|
|
||||||
// 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