Commit Graph

6 Commits

Author SHA1 Message Date
a206ce8450 fix(editor): stable per-tab line restore and fold closing fences 2026-11-06 10:12:18 +08:00
9f12b91a14 fix(editor): fold fence parity, search bar layout and per-tab scroll memory 2026-11-06 10:03:23 +08:00
2117551af7 fix(editor): fold ranges, stacked replace bar and container scrolling 2026-11-06 09:14:20 +08:00
a58a94b05f fix(editor): add find/replace bar and tidy CodeMirror scrolling 2026-11-06 09:00:35 +08:00
715c8068f8 feat(editor): run markdown source editing on CodeMirror 5 2026-11-06 08:23:13 +08:00
1115052762 refactor: split the page, markdown pipeline and escaping out of main.rs
- assets/page/{page.html,page.css,page.js} now hold the UI. build_page only
  fills __MDP_*__ placeholders, so editing the page no longer means escaping
  braces inside a format! string. Output was verified byte-identical for the
  home page, a math/mermaid document and the startup page.
- src/markdown.rs: md -> html pipeline (GFM, AI-output dialect, front matter,
  embedded images, ==highlight==, heading ids).
- src/page.rs: page assembly.
- src/escape.rs: shared JS/HTML escaping.
- src/main.rs drops from 5535 to 3709 lines. No behavior change; 62 tests.
2026-11-03 23:02:58 +08:00