Handle file:
links.
This commit is contained in:
parent
0e56cfbe10
commit
b248f507c6
@ -580,6 +580,8 @@ def render_text_tokens(tokens, acc, headline, graph):
|
|||||||
is_internal_link = False
|
is_internal_link = False
|
||||||
if link_target.startswith('orgit-rev'):
|
if link_target.startswith('orgit-rev'):
|
||||||
raise NonExistingLocalNoteError(link_target, headline)
|
raise NonExistingLocalNoteError(link_target, headline)
|
||||||
|
elif link_target.startswith('file:'):
|
||||||
|
raise NonExistingLocalNoteError(link_target, headline)
|
||||||
elif not (
|
elif not (
|
||||||
link_target.startswith('https://')
|
link_target.startswith('https://')
|
||||||
or link_target.startswith('http://')
|
or link_target.startswith('http://')
|
||||||
|
Loading…
Reference in New Issue
Block a user