mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Improve links matching
This commit is contained in:
parent
63bf066e2d
commit
4ad6cc3313
@ -40,7 +40,7 @@ def replace_link(match, path):
|
||||
if link.endswith('/'):
|
||||
link = link[0:-1] + '.md'
|
||||
|
||||
return '[{}](#{})'.format(title, generate_anchor_from_path(os.path.normpath(os.path.join(os.path.dirname(path), link))))
|
||||
return '{}(#{})'.format(title, generate_anchor_from_path(os.path.normpath(os.path.join(os.path.dirname(path), link))))
|
||||
|
||||
|
||||
# Concatenates Markdown files to a single file.
|
||||
|
Loading…
Reference in New Issue
Block a user