diff options
author | mb21 <mb21@users.noreply.github.com> | 2015-07-26 18:30:47 +0200 |
---|---|---|
committer | mb21 <mb21@users.noreply.github.com> | 2015-08-07 12:38:37 +0200 |
commit | a010b83a7542d1324bde3d248c24faae9e681dbd (patch) | |
tree | ed0727d31576f5d07e5e31d6611e124b54c0b823 /src/Text/Pandoc/Readers/DocBook.hs | |
parent | e44fc547a5d0ef67c68011c23563fd82320bc2aa (diff) | |
download | pandoc-a010b83a7542d1324bde3d248c24faae9e681dbd.tar.gz |
Updated readers, writers and README for link attribute
Diffstat (limited to 'src/Text/Pandoc/Readers/DocBook.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index cbd50c252..db438e26d 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -967,7 +967,8 @@ parseInline (Elem e) = Just h -> h _ -> ('#' : attrValue "linkend" e) let ils' = if ils == mempty then str href else ils - return $ link href "" ils' + let attr = (attrValue "id" e, words $ attrValue "role" e, []) + return $ linkWith href "" attr ils' "foreignphrase" -> emph <$> innerInlines "emphasis" -> case attrValue "role" e of "bold" -> strong <$> innerInlines |