Verified Commit ab8d9dbb authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

fix: remove anchor from images

parent f61a89c0
...@@ -298,7 +298,7 @@ for $node in $nodes return ...@@ -298,7 +298,7 @@ for $node in $nodes return
} }
case element (xhtml:a) case element (xhtml:a)
return return
if(exists($node/xhtml:img)) then wiki:dokuwikiparser($node/node(), $char) else if(($node/@class eq 'media') or exists($node/xhtml:img)) then wiki:dokuwikiparser($node/node(), $char) else
element xhtml:a { element xhtml:a {
attribute href { attribute href {
if($node/@class = "urlextern") then if($node/@class = "urlextern") then
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment