Skip to content

Commit

Permalink
Fixes that some markdown on github doesn't generate a proper anchor t…
Browse files Browse the repository at this point in the history
…ag and uses `user-content-` preprended to the tag instead
  • Loading branch information
JohnTurnerNIH committed Oct 8, 2024
1 parent 71ee36f commit 4031e59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ def check_link(link):
elif "#" in link and \
code[1] is not None \
and 'href=\"' + link[link.find("#"):] + '\"' not in \
code[1] \
and 'name=\"' + link[link.find("#")+1:] + '\"' not in \
code[1] \
and 'name=\"user-content-' + link[link.find("#") + 1:] + '\"' not in \
code[1]:
if ignore:
print(
Expand Down

0 comments on commit 4031e59

Please sign in to comment.