mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#31: apply title transformations for xref roles in TOCs too.
This commit is contained in:
parent
4c3f2f0d7e
commit
f490645392
@ -171,7 +171,8 @@ class SphinxContentsFilter(ContentsFilter):
|
||||
within table-of-contents link nodes.
|
||||
"""
|
||||
def visit_pending_xref(self, node):
|
||||
self.parent.append(nodes.literal(node['reftarget'], node['reftarget']))
|
||||
text = node.astext()
|
||||
self.parent.append(nodes.literal(text, text))
|
||||
raise nodes.SkipNode
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user