They were in a kind of janky half-finished state before (only usable in posts not in comments, only usable from an icon in the toolbar rather than the <details> section); writing this policy reminded us to polish it up.
If you’re still open for inspiration on this implementation of collapsible sections, I’ll reiterate my recommendation of Notion’s implementation of toggles and toggle headings in terms of both aesthetics and effect. For example, I love having the ability to make both bullet points and headings collapsible, and I love how easy they are to create (by beginning an empty line with “> text”).
I just played with them a lot in a new post documenting a conversation with with Grok3, and noticed some bugs. There’s probably some fencepost stuff related to paragraphs and bullet points in the editing and display logic? When Grok3 generated lists (following the <html> ideas of <ul> or <nl>) the collapsed display still has one bullet (or the first number) showing and it is hard to get the indentation to work at the right levels, especially at the end and beginning of the text collapsing widget’s contents.
However, it only happens in the editing mode, not in the published version.
Also, I did not realise that collapsable sections were a thing on Less Wrong. They seem really useful. I would like to see these promoted more.
They were in a kind of janky half-finished state before (only usable in posts not in comments, only usable from an icon in the toolbar rather than the <details> section); writing this policy reminded us to polish it up.
If you’re still open for inspiration on this implementation of collapsible sections, I’ll reiterate my recommendation of Notion’s implementation of toggles and toggle headings in terms of both aesthetics and effect. For example, I love having the ability to make both bullet points and headings collapsible, and I love how easy they are to create (by beginning an empty line with “> text”).
I just played with them a lot in a new post documenting a conversation with with Grok3, and noticed some bugs. There’s probably some fencepost stuff related to paragraphs and bullet points in the editing and display logic? When Grok3 generated lists (following the <html> ideas of <ul> or <nl>) the collapsed display still has one bullet (or the first number) showing and it is hard to get the indentation to work at the right levels, especially at the end and beginning of the text collapsing widget’s contents.
However, it only happens in the editing mode, not in the published version.
Editing (screenshot):
Versus published (screenshot):
The outline in that post is also very buggy, probably because of the collapsible sections.