8.3.2.1.15.31. parse_content_to_nodes

DispatcherDirective.parse_content_to_nodes(allow_section_headings: bool = False) list[Node]

Parse the directive’s content into nodes.

Parameters:

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.

Added in version 7.4.