diff options
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", - }) - } -} |