add tests for html generation, refactor lists

This commit is contained in:
2025-12-26 19:22:59 +02:00
parent b7ca4ac6e3
commit 47cb8d2cc2
7 changed files with 313 additions and 29 deletions

View File

@@ -31,6 +31,6 @@ pub enum Block {
Code { content: String, lang: String },
Quote { inner: Box<Block> },
Paragraph { inner: Vec<Inline> },
UnorderedList { items: Vec<Block> },
OrderedList { items: Vec<Block> },
List { ordered: bool, items: Vec<Block> },
Null,
}