mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6147 from chrisjsewell/propogate_citeref_classes
propogate cite_reference node classes to pending_xref node
This commit is contained in:
commit
177246a49e
@ -221,6 +221,8 @@ class CitationReferences(SphinxTransform):
|
||||
refnode.source = citation_ref.source or citation_ref.parent.source
|
||||
refnode.line = citation_ref.line or citation_ref.parent.line
|
||||
refnode += nodes.Text('[' + cittext + ']')
|
||||
for class_name in citation_ref.attributes.get('classes', []):
|
||||
refnode['classes'].append(class_name)
|
||||
citation_ref.parent.replace(citation_ref, refnode)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user