Skip to content

Commit

Permalink
don't use deprecated/ignored rawsource for docutils.nodes.Text init
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored and wpbonelli committed May 5, 2024
1 parent 5d0f4b8 commit 260b6d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbsphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ def apply(self):
xref = sphinx.addnodes.pending_xref(
reftype=reftype, reftarget=reftarget, refdomain='std',
refwarn=True, refexplicit=True, refdoc=env.docname)
xref += docutils.nodes.Text(linktext, linktext)
xref += docutils.nodes.Text(linktext)
node.replace_self(xref)
else:
# NB: This is a link to an ignored (via exclude_patterns)
Expand Down

0 comments on commit 260b6d2

Please sign in to comment.