-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add allow_section_headings
to SphinxDirective parsing methods
#12503
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
Add allow_section_headings
to SphinxDirective parsing methods
#12503
Conversation
Thanks @AA-Turner, my one question would be; is it clear to user what "allowing titles" means? As per #12492 (comment), I'll just link here my little "blog" on the difficulties of allowing nested headings https://gist.github.com/chrisjsewell/0c5827add50074fef0937e2543e955b4 |
allow_titles
to SphinxDirective parsing methodsallow_section_headings
to SphinxDirective parsing methods
:param allow_section_headings: | ||
Are titles (sections) allowed in the directive's content? | ||
Note that this option bypasses Docutils' usual checks on | ||
doctree structure, and misuse of this option can lead to | ||
an incoherent doctree. In Docutils, section nodes should | ||
only be children of ``Structural`` nodes, which includes | ||
``document``, ``section``, and ``sidebar`` nodes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much better thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cheers!
See #12492.
A