提交 4ad6cc33 编写于 作者: A Alexey Milovidov

Improve links matching

上级 63bf066e
...@@ -40,7 +40,7 @@ def replace_link(match, path): ...@@ -40,7 +40,7 @@ def replace_link(match, path):
if link.endswith('/'): if link.endswith('/'):
link = link[0:-1] + '.md' 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. # Concatenates Markdown files to a single file.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册