mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-19 13:45:16 +00:00
Fix mapping of ref targets with underscores
This commit is contained in:
parent
aba634ce88
commit
0b66f20934
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def main() -> Dict[str, str]:
|
|||
href = os.path.relpath(stream.name, base).replace(os.sep, '/')
|
||||
href = href.rpartition('.')[0] + '/'
|
||||
for explicit_target in find_explicit_targets(raw):
|
||||
refs[explicit_target] = href + f'#{explicit_target}'
|
||||
refs[explicit_target] = href + f'#{explicit_target.replace("_", "-")}'
|
||||
return {'ref': refs}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue