-
Notifications
You must be signed in to change notification settings - Fork 97
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
[Meta] code folding / collapsable sections #570
Comments
They are not part of any release, that's why . You can see on the commit page that there's no tag associated: For reference, here's another commit where you can see two tags: While I appreciate the effort to create this issue, I don't think we need a meta issue. I like to keep issues actionable and a meta issue is by definition not actionable. Besides, a section is only a specific type of block. AsciiDoc has quite a few type of blocks :
Implementation wise, the tough part is that it depends on the context, for instance:
I don't know what's the best strategy. In theory, we could Asciidoctor AST but the sourcemap feature isn't perfect (https://docs.asciidoctor.org/asciidoctor/latest/api/sourcemap/). Having said that, it might be good enough for now. Feel free to create dedicated issues for each block type with basic and edge cases and how the content should be folded for every cases. |
Description
It would be nice to be able to collapse / fold some sections in AsciiDoc documents (like VSCode does for markdown).
Related issues
Note: #553 and #70 are closed by b070724 and 2824561 but it doesn't seem to work for me. Is that possible there was some regression?
Similar behavior for Markdown
For example in Markdown document I can fold heading levels or code blocks:
Example with title 1 and the code block folded:
The text was updated successfully, but these errors were encountered: