diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-04-21 13:57:03 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-04-21 13:57:36 +1200 |
commit | 13cb719b87bcef41c4dd398f5a651ddb2b561e0d (patch) | |
tree | e9e52ed33d5ed5a4d68a1161c3db5c2d8c38dd42 /src/block.rs | |
parent | 54f5e9fd883e207931baa9c87b6181ca724d6bab (diff) | |
download | markdown-13cb719b87bcef41c4dd398f5a651ddb2b561e0d.zip |
Completely rewrite the libraryv1.0.0
Diffstat (limited to 'src/block.rs')
-rw-r--r-- | src/block.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/block.rs b/src/block.rs deleted file mode 100644 index 2a34fcf..0000000 --- a/src/block.rs +++ /dev/null @@ -1,26 +0,0 @@ -use crate::{Line, Table}; - -pub enum Block { - Heading1(Line), - Heading2(Line), - Heading3(Line), - Paragraph(Line), - List(Vec<Line>), - Quote(Vec<Line>), - Code(String, Vec<String>), - Table(Table), -} -impl std::fmt::Debug for Block { - fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { - f.write_str(match self { - Self::Heading1(_) => "Heading1", - Self::Heading2(_) => "Heading2", - Self::Heading3(_) => "Heading3", - Self::Paragraph(_) => "Paragraph", - Self::List(_) => "List", - Self::Quote(_) => "Quote", - Self::Code(_, _) => "Code", - Self::Table(_) => "Table", - }) - } -} |