From b248f507c6b3b2eb0ea78af701182e246c8099d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Tue, 6 Jun 2023 18:32:19 +0200 Subject: [PATCH] Handle `file:` links. --- scripts/generate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate.py b/scripts/generate.py index 9f98e7b..7c28db6 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -580,6 +580,8 @@ def render_text_tokens(tokens, acc, headline, graph): is_internal_link = False if link_target.startswith('orgit-rev'): raise NonExistingLocalNoteError(link_target, headline) + elif link_target.startswith('file:'): + raise NonExistingLocalNoteError(link_target, headline) elif not ( link_target.startswith('https://') or link_target.startswith('http://')