From 5c0040955ed88cddf1fad0db050150ed9601c7a2 Mon Sep 17 00:00:00 2001 From: PJ Date: Mon, 22 Jun 2026 13:24:19 -0400 Subject: [PATCH] fix(export): correct list nesting, marks, line-start escaping, svg type Four export-correctness fixes intermingled across the Typst and EPUB renderers: - H7: neutralize newlines in escaped text and apply leading-marker escaping (= - + / and N.) to the first text node of every block (paragraph, heading, list item, blockquote) and figure captions, even when that run carries a mark, so author text can never inject Typst markup or phantom headings/TOC entries. - H9: render lists recursively so nested lists survive and multi- paragraph list items keep their paragraph breaks (Typst functional list()/enum(); EPUB nested