Skip to content

Commit

Permalink
馃憣 IMPROVE: note_refname for docutils internal links
Browse files Browse the repository at this point in the history
Used by some core transforms
  • Loading branch information
chrisjsewell committed Dec 30, 2021
1 parent 58f0540 commit 20ebb93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions myst_parser/docutils_renderer.py
Expand Up @@ -659,6 +659,7 @@ def render_internal_link(self, token: SyntaxTreeNode) -> None:
ref_node = nodes.reference()
self.add_line_and_source_path(ref_node, token)
ref_node["refname"] = cast(str, token.attrGet("href") or "")
self.document.note_refname(ref_node)
title = token.attrGet("title")
if title:
ref_node["title"] = title
Expand Down

0 comments on commit 20ebb93

Please sign in to comment.