whoops, don't prefix links to same-document anchors either
This commit is contained in:
parent
6536af16ce
commit
696ed31f85
1 changed files with 1 additions and 0 deletions
1
main.scm
1
main.scm
|
@ -110,6 +110,7 @@
|
||||||
(let ((linkurl (alist-ref 'href (alist-ref '@ i))))
|
(let ((linkurl (alist-ref 'href (alist-ref '@ i))))
|
||||||
`(,t .
|
`(,t .
|
||||||
,(if (and adjust-relative
|
,(if (and adjust-relative
|
||||||
|
(not (string-prefix? "#" linkurl))
|
||||||
(not (string-prefix? "/" linkurl))
|
(not (string-prefix? "/" linkurl))
|
||||||
(not (string-prefix? "https://" linkurl))
|
(not (string-prefix? "https://" linkurl))
|
||||||
(not (string-prefix? "http://" linkurl))
|
(not (string-prefix? "http://" linkurl))
|
||||||
|
|
Loading…
Reference in a new issue