fix: resolve horizontal rule YAML parsing conflicts
Fixes issue where horizontal rules (---) in markdown were causing "Error parsing YAML metadata" when exporting to PDF via Pandoc. Changes: - Add HorizontalRuleProcessor to transform --- to *** before Pandoc - Preserve YAML frontmatter by detecting and skipping frontmatter sections - Add horizontalrule definition to all Typst templates for Pandoc compatibility - Update universal wrapper to import horizontalrule from templates - Clean up PandocTypstConverter formatting and remove debug output The processor now detects YAML frontmatter patterns and only transforms horizontal rules in content body, preventing destruction of document frontmatter while resolving Pandoc parsing conflicts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
9 files changed
+337
-209
No files matched your search
@@ -1,3 +1,6 @@
|
||||
// Horizontal rule definition for Pandoc compatibility
|
||||
#let horizontalrule = line(start: (25%,0%), end: (75%,0%))
|
||||
|
||||
// Email block styling function - compact for single page
|
||||
#let email-block(from: none, to: none, subject: none, date: none, body) = {
|
||||
block(
|
||||
|
||||
Reference in new issue
Block a user