diff --git a/scripts/generate.py b/scripts/generate.py index 6c16b99..571b38e 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -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('/')