mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-28 10:25:41 +00:00
Docbook5 writer: Properly handle ulink/link
This commit is contained in:
@@ -351,7 +351,9 @@ inlineToDocbook opts (Link attr txt (src, _))
|
||||
| otherwise =
|
||||
(if isPrefixOf "#" src
|
||||
then inTags False "link" $ ("linkend", drop 1 src) : idAndRole attr
|
||||
else inTags False "ulink" $ ("url", src) : idAndRole attr ) $
|
||||
else if writerDocbook5 opts
|
||||
then inTags False "link" $ ("xlink:href", src) : idAndRole attr
|
||||
else inTags False "ulink" $ ("url", src) : idAndRole attr ) $
|
||||
inlinesToDocbook opts txt
|
||||
inlineToDocbook opts (Image attr _ (src, tit)) =
|
||||
let titleDoc = if null tit
|
||||
|
||||
Reference in New Issue
Block a user