Skip to content

Conversation

@gmilde
Copy link
Contributor

@gmilde gmilde commented Oct 21, 2025

The utility function sphinx.util.parsing.nested_parse_to_nodes() allows
nested parsing with support for sections.
This is a "power user" feature with known problems and usage restrictions.

Purpose

Inform the user about the risks and limitations when using nested_parse_to_nodes().

References

Notes

There is only one relevant, small commit in this branch.

The others are updates of the "comment" branch and a workaround for
Git re-encoding problems (as proposed by miketheman in #13811 (comment))

Try to avoid files marked as changed due to an error when
auto-recoding from UTF-8 to ISO-8859-1

see sphinx-doc#13811 (comment)
"section" elements can only be children of "document" or "section"
elements, not "sidebar".
Cf. https://docutils.sourceforge.io/docs/ref/doctree.html#section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible data loss with sphinx.util.parsing.nested_parse_to_nodes() misleading docstring for sphinx.util.parsing.nested_parse_to_nodes()

1 participant