Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsible blocks #18

Open
Overload119 opened this issue Oct 5, 2020 · 4 comments
Open

Collapsible blocks #18

Overload119 opened this issue Oct 5, 2020 · 4 comments

Comments

@Overload119
Copy link

A-la https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab#a-collapsible-section-containing-code

This can help clean up large docs, and allow easily searching through them.

By default this would require support for something similar to Compact Links.

When the document is first rendered, it'll hide the section.

ie.

A)

<details>
<summary>This is 1 line</summary>
</details>

Would render as:

[Expand] This is 1 line

If you click into this line it expands to A)

@astoilkov
Copy link
Member

Interesting idea. What do you think of the possibility of collapsing headings instead of having a custom syntax? Like code editors expand/collapse of blocks.

@AntoineCheron
Copy link

+1 that would be a great feature.

Also, the ability to collapse list items would be great. It would very much help managing todo lists for example.

@astoilkov
Copy link
Member

Yes. List items with child items are also a very good candidate. Thanks.

@erusev
Copy link
Member

erusev commented Jun 24, 2021

@AntoineCheron Thanks for joining the conversation! We've been researching "collapsing list items" for a while, and we're looking for more input on it. Could you share more about how it would help with managing todo lists (or other use cases that come to mind)? You can comment in #81 which @davistech just created for this feature.

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

No branches or pull requests

4 participants