disable wikilink conversion

main
David Benque 6 months ago
parent 678869998d
commit aa5a38fdf8

@ -146,12 +146,12 @@ def write_markdown_file(lines: list, md_file: Path) -> bool:
# [[text|url]]
line = re_external_link.sub(r'[\1](\2)', line)
# [[Another tiddler]] → [Another tiddler](#Another%20tiddler)
line = re_internal_link.sub(
lambda m: (
f'[{m.group(1)}](#{urllib.parse.quote(m.group(1))})'
),
line
)
# line = re_internal_link.sub(
# lambda m: (
# f'[{m.group(1)}](#{urllib.parse.quote(m.group(1))})'
# ),
# line
# )
# [[internal link|Tiddler]] → [internal link](#Tiddler)
# plain url
line = re_url.sub(r'\1<\2>\3', line)

Loading…
Cancel
Save