Skip to content

Commit 20ebb93

Browse files
authored
👌 IMPROVE: note_refname for docutils internal links
Used by some core transforms
1 parent 58f0540 commit 20ebb93

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

myst_parser/docutils_renderer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ def render_internal_link(self, token: SyntaxTreeNode) -> None:
659659
ref_node = nodes.reference()
660660
self.add_line_and_source_path(ref_node, token)
661661
ref_node["refname"] = cast(str, token.attrGet("href") or "")
662+
self.document.note_refname(ref_node)
662663
title = token.attrGet("title")
663664
if title:
664665
ref_node["title"] = title

0 commit comments

Comments
 (0)