Support superscript, subscript tags in docbook reader.

This commit is contained in:
John MacFarlane 2012-04-14 17:59:40 -07:00
parent fe5704bebc
commit 3e062b5a21

View file

@ -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