whoops, don't prefix links to same-document anchors either

This commit is contained in:
pho4cexa 2022-12-22 21:21:11 -08:00
parent 6536af16ce
commit 696ed31f85

View file

@ -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))