
JinjingandOrca
bf0b65a049
feat(editor): add Toggle Heading 2, 3, 4 to markdown editor (#8822)
* feat(editor): add Toggle Heading 2, 3, 4 to markdown editor
Generalize the heading-1-only collapsible-toggle plumbing to support
heading levels 1-4, mirroring the plain heading scales the slash menu and
toolbar dropdown already offer.
- Introduce ToggleHeadingVariant type + parseToggleHeadingVariant helper
- Widen markdown parse/render/sanitize allowlists from heading-1 to 1-4
- Add Toggle Heading 2/3/4 slash commands
- Add matching summary sizing in editor + preview CSS
- Extend round-trip tests for the new levels
Co-authored-by: Orca <help@stably.ai>
* fix(editor): preserve toggle heading variants
---------
Co-authored-by: Orca <help@stably.ai>
2026-07-14 23:14:22 -07:00
..
2026-07-14 02:17:55 -07:00
2026-07-14 22:53:33 -07:00
2026-07-14 22:53:33 -07:00
2026-07-14 15:23:06 -07:00
2026-07-14 23:14:22 -07:00
2026-07-14 17:02:06 -07:00
2026-05-23 12:21:13 -07:00