Skip to content

Commit

Permalink
Fix fix_links.py (#4711)
Browse files Browse the repository at this point in the history
Autolinks were getting discarded when lowercasing anchors, oops.
  • Loading branch information
leo60228 authored Jun 3, 2024
1 parent e925c51 commit 9fc2132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/fix_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def proc_items(items):
s = s.replace('](README.md)', '](./)')
s = s.replace('](/INSTALL.md', '](INSTALL.md')
s = s.replace('](docs/', '](')
item['Chapter']['content'] = URL_RE.sub(handle_url, s)
s = URL_RE.sub(handle_url, s)
item['Chapter']['content'] = ANCHOR_RE.sub(handle_anchor, s)
proc_items(item['Chapter']['sub_items'])

Expand Down

0 comments on commit 9fc2132

Please sign in to comment.