git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Add attribute for "option" code inline.
commita408ce5fd70c32ccad869f71ff8e8fd7c2611c36 authorJohn MacFarlane <fiddlosopher@gmail.com> dateWed 9 May 2012, 11:01 (14 years ago) parent83d0e7e
1 file changed+2−2
src/Text/Pandoc/Readers/DocBook.hs+2−2
src/Text/Pandoc/Readers/DocBook.hs+2−2
@@ -773,9 +773,9 @@ parseInline (Elem e) =
773773 then singleQuoted contents
774774 else doubleQuoted contents
775775 "code" -> return $ code $ strContent e -- TODO attrs
776− "filename" -> return $ code $ strContent e -- TODO attrs
776+ "filename" -> return $ codeWith ("",["filename"],[]) $ strContent e -- TODO attrs
777777 "literal" -> return $ code $ strContent e -- TODO attrs
778− "option" -> return $ code $ strContent e -- TODO attrs
778+ "option" -> return $ codeWith ("",["option"],[]) $ strContent e -- TODO attrs
779779 "markup" -> return $ code $ strContent e -- TODO attrs
780780 "wordasword" -> emph <$> innerInlines
781781 "varname" -> return $ codeWith ("",["varname"],[]) $ strContent e