summaryrefslogtreecommitdiff
path: root/support/make4ht/domfilters/make4ht-t4htlinks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'support/make4ht/domfilters/make4ht-t4htlinks.lua')
-rw-r--r--support/make4ht/domfilters/make4ht-t4htlinks.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/make4ht/domfilters/make4ht-t4htlinks.lua b/support/make4ht/domfilters/make4ht-t4htlinks.lua
index 9a4efb9739..e602f02fd1 100644
--- a/support/make4ht/domfilters/make4ht-t4htlinks.lua
+++ b/support/make4ht/domfilters/make4ht-t4htlinks.lua
@@ -8,6 +8,7 @@ return function(dom)
-- add a link if it contains any subnodes and has href attribute
if #children > 0 and href then
link._name = "text:a"
+ href = href:gsub("^.+4oo%#", "#")
link._attr = {["xlink:type"]="simple", ["xlink:href"]=href}
-- if the link is named, add a bookmark
if name then