Skip to content

Commit

Permalink
👌 IMPROVE: note_refname for docutils internal links (#481)
Browse files Browse the repository at this point in the history
Used by some core transforms
  • Loading branch information
chrisjsewell authored Dec 30, 2021
1 parent 58f0540 commit 60e3601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions myst_parser/docutils_renderer.py
Original file line number Diff line number Diff line change
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 60e3601

Please sign in to comment.