Skip to content

Commit 17d3ad2

Browse files
committed
Putting back again the discrimination between emphasis and other Inlines
1 parent f4109d6 commit 17d3ad2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Text/Pandoc/Readers/DocBook.hs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,9 @@ parseInline (Elem e) = do
13331333
-- <?asciidor-br?> to in handleInstructions, above.
13341334
"pi-asciidoc-br" -> return linebreak
13351335
_ -> skip >> innerInlines id
1336-
return $ addPandocAttributes (getRoleAttr e) parsedInline
1336+
return $ case qName (elName e) of
1337+
"emphasis" -> parsedInline
1338+
_ -> addPandocAttributes (getRoleAttr e) parsedInline
13371339
where skip = do
13381340
let qn = qName $ elName e
13391341
let name = if "pi-" `T.isPrefixOf` qn

0 commit comments

Comments
 (0)