Skip to content

Commit

Permalink
[sphinx] allow URL-like targets in :cref:
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkos committed Dec 20, 2024
1 parent 8b07047 commit 7420669
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx/doxyrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
def get_cref_target(text, target=None):
if not target:
target = text
elif url_re_prog.match(target):
return target

if target in crefdb:
return crefdb[target]
Expand Down

0 comments on commit 7420669

Please sign in to comment.