Print a warning and avoid crash on orgit-rev links.
This commit is contained in:
parent
b916be8f0b
commit
a465b409b1
@ -578,7 +578,9 @@ def render_text_tokens(tokens, acc, headline, graph):
|
||||
link_target = './' + target_headline.id + '.node.html'
|
||||
else:
|
||||
is_internal_link = False
|
||||
if not (
|
||||
if link_target.startswith('orgit-rev'):
|
||||
raise NonExistingLocalNoteError(link_target, headline)
|
||||
elif not (
|
||||
link_target.startswith('https://')
|
||||
or link_target.startswith('http://')
|
||||
or link_target.startswith('/')
|
||||
|
Loading…
Reference in New Issue
Block a user