-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support code folding #19
Comments
👍 This should be possible at the block-level since Asciidoctor parses blocks to the AST and keeps the line numbers of the blocks (set |
Yes, good idea. I have been thinking about this feature already for some time. As @mojavelinux mentioned, the core support is already there. Special handling of included documents is required, though. AFAIK, included documents are expanded and sourcemap information is related to the whole main document. Informaton about included docs is lost. Maybe we could handle this through an 'include' extension and expand (unfold) include blocks on demand or something like that. Need to investigate further. Dan would know better. |
Sounds about right, but this is new territory for me to explore mentally, so I'm on the journey with you :) |
👍 |
It would be nice to be able to collapse blocks, chapters, etc., similar to what this extension does.
The text was updated successfully, but these errors were encountered: