Fix issue with orgmode interferring with forward links.
This commit is contained in:
parent
10a48a1cbd
commit
446a2d0791
|
@ -309,7 +309,9 @@ def content_to_forward_links(content):
|
||||||
# hack hack.
|
# hack hack.
|
||||||
match = RE_WIKILINKS.findall(content)
|
match = RE_WIKILINKS.findall(content)
|
||||||
if match:
|
if match:
|
||||||
return [util.canonical_wikilink(m) for m in match]
|
# Work around broken forward links due to org mode convention I didn't think of.
|
||||||
|
# TODO: make link parsing format-aware.
|
||||||
|
return [util.canonical_wikilink(m) for m in match if '][' not in m]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue