mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
Fix mapping of ref targets with underscores
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user