summaryrefslogtreecommitdiff
path: root/src/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.rs')
-rw-r--r--src/block.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/block.rs b/src/block.rs
new file mode 100644
index 0000000..aa56135
--- /dev/null
+++ b/src/block.rs
@@ -0,0 +1,19 @@
+use crate::*;
+
+/// Heading level.
+pub enum Level {
+ Heading1,
+ Heading2,
+ Heading3,
+}
+
+pub enum Block {
+ Heading { level: Level, line: Line },
+ Paragraph(Line),
+ List(Vec<Line>),
+ Note(Vec<Line>),
+ Table(Table),
+ Break,
+ Embedded { label: String, path: String },
+ Fragment { language: String, content: String },
+}