From 11681dcd5c270c205d2f2079de8c97e9b01fb654 Mon Sep 17 00:00:00 2001 From: Alex Bethel Date: Sat, 27 Nov 2021 20:30:50 -0700 Subject: [PATCH 1/2] Document AST structure --- src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6f22d37..b74c5bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,9 +15,11 @@ pub struct CodeBlock { text: String, } -pub struct Emphasis { +pub struct StyledText { italic: bool, bold: bool, + underline: bool, + color: Option, text: String, } @@ -26,6 +28,14 @@ pub struct Blockquote { text: String, } +pub enum Node { + Header(Header), + Paragraph(Vec), + HRule, +} + +pub struct Document(Vec); + // TODO: able take care of lists i am too drunk for this tonight From b5fef970a142c0fc04f47b7a93932afad413097a Mon Sep 17 00:00:00 2001 From: Able Date: Sat, 27 Nov 2021 21:33:07 -0600 Subject: [PATCH 2/2] hecko mode --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index fc49240..122a66a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,4 +26,11 @@ pub struct Blockquote { // TODO: able take care of lists i am too drunk for this tonight +pub enum ListType { + Ordered, + Unordered, +} + +pub struct List {} + pub fn parse() {}