-
Notifications
You must be signed in to change notification settings - Fork 95
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 sections #3646
Comments
Copying discussion from #1841 @luka-nextcloud wrote:
|
Copying discussion from #1841 @juliushaertl wrote: A few more things to consider from my perspective:
|
Copying discussion from #1841 @mejo- wrote: Another question would be whether spoilers (that's another way how these expandable sections are often called) can be nested. Seems like HTML allows this, and so does GFM (Github flavoured markdown: https://gist.github.com/scmx/eca72d44afee0113ceb0349dd54a84a2?permalink_comment_id=4196669#gistcomment-4196669. But it seems rather useless to me and brings extra complexity, so I don't think that we have to support it.
I'd expect the editor to ask me for a summary text and move the selected content into the details section of the spoiler.
I'd expect this, definitely. When inside a details section, the menu button should remove the details section but preserve its content. |
Talking about what we allow we also need to check upfront how we can parse the details sections in markdown as we block html by default so we would need to explicitly parse the details and summary tags. Since we use markdown-it to convert from markdown to html which then is used in tiptap we may need to write a custom plugin for that to handle that. All existing plugins that I've found implement a different syntax. |
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
Uses `<details>` and `<summary>` summary both for markdown and HTML serialization. Fixes: #3646 Signed-off-by: Jonas <jonas@freesources.org>
@juliushaertl this issue is marked fixed but there's no available release yet, right? Any plans for NC29/30 or will this only be part of a future NC31? |
Yes, for 31 |
Is your feature request related to a problem? Please describe.
We are working with pretty large documents. Often we would like to hide some parts of the document to have a better overview of the document. Collapsible sections could be a good addition for the text editor. A wide variety of markdown editors are supporting this. For example GitHub.
Are there any plans on adding this feature?
The text was updated successfully, but these errors were encountered: