-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
section nesting for non-consecutive heading levels #294
Comments
I've found from pandoc that people have very different expectations about this. Some people really want to be able to have nested sections with heading levels that skip. So I'm tempted to say: if you don't want this, don't write the djot headings this way. It's also possible to write a filter that traverses the AST and "fixes" heading levels, or even inserts phantom sections. But we can keep this open to see what others think about this issue. It would certainly be possible to insert a phantom section in this way. |
From https://djot.net/playground/
If you have:
then the AST is
This maybe does not really make sense and could be problematic for a post-processor / writer
would it make sense to do something like generate "phantom" sections, e.g.
The text was updated successfully, but these errors were encountered: