Skip to content

Commit

Permalink
Update docutils_renderer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Sep 27, 2021
1 parent 649af8c commit 48b7e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions myst_parser/docutils_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,11 @@ def render_link(self, token: SyntaxTreeNode) -> None:
os.path.join(include_dir, os.path.normpath(destination)), source_dir
)

ref_node["refuri"] = destination # type: ignore[index]
ref_node["refuri"] = destination

title = token.attrGet("title")
if title:
ref_node["title"] = title # type: ignore[index]
ref_node["title"] = title
next_node = ref_node

# TODO currently any reference with a fragment # is deemed external
Expand Down

0 comments on commit 48b7e7b

Please sign in to comment.