Support collapsed sections (<details>) in markdown notes
complete
k
kernelwhisperer
Imported from GitHub feature request.
Source issue:
- #559 Collapsed sections in markdown — https://github.com/refactoringhq/tolaria/issues/559
Reporter:
- @kernelwhisperer
Original context from GitHub:
The reporter wants Tolaria to support GitHub-style collapsed sections in Markdown using
<details>
/ <summary>
blocks. They shared the standard Markdown example plus a screenshot of the desired rendered result.Why this matters:
- improves compatibility with existing Markdown docs that already use <details>blocks
- helps people keep long notes readable without losing inline context
- gives writers a familiar way to tuck away examples, tips, or large snippets
Requested behavior:
- render <details>/<summary>sections inside Markdown notes
- preserve nested content like headings, text, images, and code blocks inside the collapsed area
D
Daniel Constantin
Luca Rossi I just tried the feature and this is not at all what I expected
The app does not respect the <details><summary></summary></details> markdown. I think once you collapse a section it should stay collapsed, no?
Luca Rossi
updated the status to
complete
Luca Rossi
Implemented the toggle!
Luca Rossi
updated the status to
in progress
D
Daniel Constantin
Also requested in https://tolaria.canny.io/feature-requests/p/note-editor-improvements
Jean-Philippe Sirois
OMG yes please!
I can't live without the Notion Toggle feature. It's one of the feature I use All the time. It's THE thing I like the most about the Notion editing. Also how it work with keyboard arrow Left or Right to Open or Close the section. Also you create it only with
>
and boom. It's such an excellent UX for this.Also the fact that you can toggle anything, not only section like most Markdown editor like Bear does for heading. Most the time collapsing Header is enough, but not all the time. It's nice to control only what you can to collapse.