-
Notifications
You must be signed in to change notification settings - Fork 0
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
[REQ] Restrict list nesting depth #37
Comments
In contrast to headings, list depth restriction should only apply to the current file. Reason behind this workaround is to keep files readable, but allow to include other content without worrying about list depth restriction. Explanation: While heading levels are not affected on file inserts, the list depth increases if the content is inserted inside a list entry. With the restriction of list depth to the current file, implementations should output an information that users should create another Unimarkup file, and insert it inside the list, if they really want to add another nested list. |
or maybe set the limit to a higher number like 250, because TOCs will be created using lists. Maybe set a warning if depth > 4 is set manually, but allo depth up to 250 for automatically generated content. |
But TOCs probably won't be generated as Unimarkup content, rather they'll be rendered directly? |
I would try to create TOCs using Unimarkup syntax to stay consistent, and to make it easy to adapt the TOC. |
Can you elaborate what you mean here? I'm thinking in terms of a macro call that generated TOC. We can generate that directly in memory and simply render to desired format. I would not generate the TOC in Unimarkup syntax, place into the document, re-parse it, and then render to the desired format. Am I misunderstanding something? |
To allow custom TOCs, it must be possible to allow TOCs to be created using macros. Custom TOCs: TOC, where every subheading entry is a hyperlink.
Numbered TOC, which is common in thesis
We cannot create a generic TOC that fits all scenarios. We may provide a default TOC based on a default theme, but I do not want to force users to use it. |
To nest lists, the inner list must be indented.
This leads to inner lists being more and more indented, which makes content harder to read.
Therefore, indented block elements should be restricted to a nesting depth of 6.
This is in alignment with the maximum heading level.
Implementations may set warnings for depths 5 and 6, because these are already quite unreadable.
The text was updated successfully, but these errors were encountered: