From 483bfa4b7fad2e9f8f7ae9c8227255bf462a5851 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 7 Apr 2023 16:03:15 +0200 Subject: DocBook reader: support more emphasis roles. The role "bf" is taken to indicate "bold face", i.e., "strongly emphasized" text, while "underline" leads to underlined text. --- src/Text/Pandoc/Readers/DocBook.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index 56fc0dc4c..35ab33f09 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -1294,9 +1294,11 @@ parseInline (Elem e) = return $ linkWith attr href "" ils' "foreignphrase" -> innerInlines emph "emphasis" -> case attrValue "role" e of + "bf" -> innerInlines strong "bold" -> innerInlines strong "strong" -> innerInlines strong "strikethrough" -> innerInlines strikeout + "underline" -> innerInlines underline _ -> innerInlines emph "footnote" -> note . mconcat <$> mapM parseBlock (elContent e) -- cgit v1.2.3