The title from toc_tokens
ignores the smarty
extension
#1438
Labels
confirmed
Confirmed bug report or approved feature request.
extension
Related to one or more of the included extensions.
needs-decision
A decision needs to be made regarding request.
Uh oh!
There was an error while loading. Please reload this page.
Current actual result:
Expected result:
Background where I discovered this: mkdocs/mkdocs#3357 (comment)
This happens because
smarty
runs at a lower priority thantoc
(unlike most other treeprocessors) and it doesn't have a chance to kick in.markdown/markdown/extensions/toc.py
Line 404 in a63e6f3
markdown/markdown/extensions/smarty.py
Line 272 in a63e6f3
This other extension is presumably affected in the same way, probably among others:
https://github.com/facelessuser/pymdown-extensions/blob/8f5283f71e8833f1ba0fa0bbe2680e1ad2c6cb19/pymdownx/smartsymbols.py#L167
Something should be done so that all the rest of the treeprocessors are also applied before saving the title. Maybe postprocessors too, rather than applying the unescape functionality out-of-band.
The text was updated successfully, but these errors were encountered: