milde 242c50ae60 rST parser: new title-style hierarchy for nested parsing with detached base node.
Use a separate section title style hierarchy for nested parsing
if the base node is not attached to the document.

With a detached base, the parser can not move up in the section hierarchy, so it
does not make sense to enforce the document-wide title style hierarchy.

Separate title styles also fit better with directives that fetch their content
from separate sources.
Docutils does not switch on section support in nested parsing.
Sphinx defines and uses a "_fresh_title_style_context" in nested parsing.
Some contributed Sphinx extensions reported regeressions with the new
section parsing algorightm because the old algorithm was forgiving in case
of inconsistent title styles in nested parsing (cf. [bugs:#508]).

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@10204 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
2025-08-15 22:28:45 +00:00
2025-07-29 16:12:15 +00:00
2025-07-30 08:22:43 +00:00
2023-03-31 21:26:14 +00:00
Description
mirror of docutils git mirror repository. also see here
37 MiB
Languages
Python 52.4%
XSLT 14.1%
HTML 13.7%
reStructuredText 7.5%
TeX 3.7%
Other 8.5%