From 696ed31f85dc4cd5b907c12349b4e2b6b98b0a99 Mon Sep 17 00:00:00 2001 From: pho4cexa Date: Thu, 22 Dec 2022 21:21:11 -0800 Subject: [PATCH] whoops, don't prefix links to same-document anchors either --- main.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/main.scm b/main.scm index 70961e0..9111f3a 100755 --- a/main.scm +++ b/main.scm @@ -110,6 +110,7 @@ (let ((linkurl (alist-ref 'href (alist-ref '@ i)))) `(,t . ,(if (and adjust-relative + (not (string-prefix? "#" linkurl)) (not (string-prefix? "/" linkurl)) (not (string-prefix? "https://" linkurl)) (not (string-prefix? "http://" linkurl))