git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Implemented wordasword and markup tags.
commit835e79f3e8e13bf19df7e6e91a48422a6e8c5356 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSun 29 Apr 2012, 09:43 (14 years ago) parent9820a78
1 file changed+4−2
src/Text/Pandoc/Readers/DocBook.hs+4−2
src/Text/Pandoc/Readers/DocBook.hs+4−2
@@ -220,7 +220,7 @@ List of all DocBook tags, with [x] indicating implemented:
220220 a document
221221[ ] lotentry - An entry in a list of titles
222222[ ] manvolnum - A reference volume number
223−[ ] markup - A string of formatting markup in text that is to be
223+[x] markup - A string of formatting markup in text that is to be
224224 represented literally
225225[ ] mathphrase - A mathematical phrase, an expression that can be represented
226226 with ordinary text and a small amount of markup
@@ -482,7 +482,7 @@ List of all DocBook tags, with [x] indicating implemented:
482482[ ] volumenum - The volume number of a document in a set (as of books in a set
483483 or articles in a journal)
484484[ ] warning - An admonition set off from the text
485−[ ] wordasword - A word meant specifically as a word and not representing
485+[x] wordasword - A word meant specifically as a word and not representing
486486 anything else
487487[ ] xref - A cross reference to another part of the document
488488[ ] year - The year of publication of a document
@@ -634,6 +634,8 @@ parseInline (Elem e) =
634634 else doubleQuoted contents
635635 "code" -> return $ code $ strContent e -- TODO attrs
636636 "literal" -> return $ code $ strContent e -- TODO attrs
637+ "markup" -> return $ code $ strContent e -- TODO attrs
638+ "wordasword" -> emph <$> innerInlines
637639 "varname" -> return $ codeWith ("",["varname"],[]) $ strContent e
638640 "function" -> return $ codeWith ("",["function"],[]) $ strContent e
639641 "type" -> return $ codeWith ("",["type"],[]) $ strContent e