Skip to content

Markdown viewer: expandable <details> (#462) - #500

Merged
raiseCatError merged 4 commits into
devfrom
feature/v024-details
Oct 21, 2026
Merged

raiseCatError merged 4 commits into
devfrom
feature/v024-details

Conversation

@raiseCatError

Copy link
Copy Markdown
Owner
  • New details block: from HTML (htmlToBlocks) and from GitHub's layout in Markdown (open tag + summary, Markdown after a blank line, </details> in a later block; nesting counted; inner blocks keep exact source spans). Anything unmatched falls back to the old path, so no text is dropped.
  • Rendered as ▸ Summary / ▾ Summary (>/v in Safe Glyphs) with indented content; open sets the start state. z toggles the summary at/below the top of the screen, Z all in view; state keyed by summary text, survives scroll/resize/edits above, never touches the file. Works in the rendered view, preview, split preview pane and hybrid (inactive details render as written).
  • Scripts/handlers inert; a summary is HTML as on GitHub.
  • Not in this PR: pointer toggling (no viewer pointer support), toggle inside hybrid.

Tests: details.test.ts (9); one existing F01 test updated (an HTML

Details without open is now closed). Combined run with markdown/viewer/workspace/hybrid/Ask-audit suites: 357 pass. Not run: full suite, physical QA.
Refs #462 (Mermaid and math remain).

@raiseCatError
raiseCatError merged commit ab9816a into dev Oct 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant