mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +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 = os.path.relpath(stream.name, base).replace(os.sep, '/')
|
||||||
href = href.rpartition('.')[0] + '/'
|
href = href.rpartition('.')[0] + '/'
|
||||||
for explicit_target in find_explicit_targets(raw):
|
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}
|
return {'ref': refs}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user