mirror of
git://repo.or.cz/docutils.git
synced 2025-10-06 00:32:41 +02:00
242c50ae601c32637db68949fa6a0cb18839e108
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
Languages
Python
52.4%
XSLT
14.1%
HTML
13.7%
reStructuredText
7.5%
TeX
3.7%
Other
8.5%