feat(math): add katex-rs math rendering module

Add src/math.rs with render_math() wrapper around katex-rs for
build-time LaTeX to HTML conversion. Wire module into main.rs.

- Use KatexContext::default() for standard LaTeX function registry
- Settings: display_mode toggle, throw_on_error=false for graceful
  degradation
- Include unit tests for inline/display math rendering
This commit is contained in:
Timothy DeHerrera
2026-01-27 00:29:03 -07:00
parent a7338f5418
commit ebe1fd3b6e
4 changed files with 266 additions and 12 deletions

View File

@@ -32,5 +32,6 @@ tree-sitter-yaml = "0.7"
lightningcss = "1.0.0-alpha.70"
# Config parsing
serde = { version = "1", features = ["derive"] }
toml = "0.8"
katex-rs = "0.2.3"
serde = { version = "1", features = ["derive"] }
toml = "0.8"