Support superscript, subscript tags in docbook reader.
This commit is contained in:
parent
fe5704bebc
commit
3e062b5a21
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ parseInline :: Content -> DB Inlines
|
|||
parseInline (Text (CData _ s _)) = return $ text s
|
||||
parseInline (Elem e) =
|
||||
case qName (elName e) of
|
||||
"subscript" -> subscript <$> innerInlines
|
||||
"superscript" -> superscript <$> innerInlines
|
||||
"emphasis" -> case lookupAttrBy (\attr -> qName attr == "role")
|
||||
(elAttribs e) of
|
||||
Just "strong" -> strong <$> innerInlines
|
||||
|
|
Loading…
Reference in a new issue