mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-12 10:35:52 +00:00
Stylistic changes to DocBook reader.
This commit is contained in:
@@ -599,10 +599,11 @@ parseInline (Elem e) =
|
||||
(fromMaybe "" (lookupAttrBy (\attr -> qName attr == "url")
|
||||
(elAttribs e))) "" <$> innerInlines
|
||||
"link" -> case findAttr (QName "href" Nothing $ Just "xlink") e of
|
||||
Just href -> link href "" <$> innerInlines
|
||||
_ -> link ("#"++(fromMaybe "" (lookupAttrBy
|
||||
(\attr -> qName attr == "linkend")
|
||||
(elAttribs e)))) "" <$> innerInlines
|
||||
Just href -> link href "" <$> innerInlines
|
||||
_ -> link ('#':anchor) "" <$> innerInlines
|
||||
where anchor = fromMaybe "" $ lookupAttrBy
|
||||
(\attr -> qName attr == "linkend")
|
||||
(elAttribs e)
|
||||
"emphasis" -> case lookupAttrBy (\attr -> qName attr == "role")
|
||||
(elAttribs e) of
|
||||
Just "strong" -> strong <$> innerInlines
|
||||
|
||||
Reference in New Issue
Block a user