Print a warning and avoid crash on orgit-rev links.

This commit is contained in:
Sergio Martínez Portela 2023-01-12 00:18:46 +01:00
parent b916be8f0b
commit a465b409b1

View File

@ -578,7 +578,9 @@ def render_text_tokens(tokens, acc, headline, graph):
link_target = './' + target_headline.id + '.node.html' link_target = './' + target_headline.id + '.node.html'
else: else:
is_internal_link = False is_internal_link = False
if not ( if link_target.startswith('orgit-rev'):
raise NonExistingLocalNoteError(link_target, headline)
elif not (
link_target.startswith('https://') link_target.startswith('https://')
or link_target.startswith('http://') or link_target.startswith('http://')
or link_target.startswith('/') or link_target.startswith('/')