Skip to content

Commit

Permalink
Ignore hash for GitHub URLs
Browse files Browse the repository at this point in the history
The HTML page returned by GitHub no longer contains ID attributes for
line numbers or headers (from user's Markdown files); the functionality
is implemented in JavaScript now.
  • Loading branch information
anishathalye committed Jan 12, 2024
1 parent b2de6bb commit cfe8d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ jobs:
tokens: |
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
swap_urls: |
{"^(\\..*)\\.md(#?.*)$": "\\1.md.html\\2"}
{"^(\\..*)\\.md(#?.*)$": "\\1.md.html\\2",
"^(https://github\\.com/.*)#.*$": "\\1"}

0 comments on commit cfe8d5c

Please sign in to comment.