When updating documentation, examples, or config-related code:
1) Follow the source of truth for generated artifacts
2) Use the supported frontmatter format for diagram configuration
--- block) to set config/theme.%%{init: ...}%% in tests/examples.Example (frontmatter-style):
---
title: Timeline example
theme: forest
config:
logLevel: debug
---
timeline
title Timeline Title
3) Prefer storing diagram sources in .mmd (or Markdown) for better developer ergonomics
index.ts for metadata, and put each diagram in a corresponding *.mmd file for IDE syntax highlighting/plugins.4) Avoid brittle Markdown “massaging”
dedent() instead of regex-based whitespace stripping (to prevent breaking lists and indented code blocks).Enter the URL of a public GitHub repository