Files
cmake/Tests/CMakeLib/testRSTtoc2.rst
T
Matthew Woehlke afd937eb3e cmRST: Split parsing into two phases
Refactor cmRST to split parsing into two phases; one which processes
directives and collects lines to be output, and a second which performs
the actual output. In particular, this fixes substitutions not being
replaced when the definition appears after usage.

To facilitate this, refactor how replacement definitions are collected
so that content included via `toctree` has a separate replacement
context.

Also, record the length of the previously output line, so that when
headings are detected, we can reconstruct the markup to match the
(potentially changed by replacements) final length of the header text.
2026-07-29 15:04:59 -04:00

7 lines
125 B
ReStructuredText

|not replaced|
Second TOC entry.
.. |nested replace| replace:: within a toctree
Replacements should work |nested replace|.