git.iko.soy/typeable/pandoc
on master help sign in
Rudimentary support for programlisting in docbook reader.
commitc747665ad75e073bbfa55e4d29d0eaea6eb9db17 authorJohn MacFarlane <fiddlosopher@gmail.com> dateSat 14 Apr 2012, 18:35 (15 years ago) parent7c3e267
1 file changed+1
src/Text/Pandoc/Readers/DocBook.hs+1
src/Text/Pandoc/Readers/DocBook.hs+1
@@ -46,6 +46,7 @@ parseBlock (Elem e) =
4646 "section" -> gets dbSectionLevel >>= sect . (+1)
4747 "itemizedlist" -> bulletList <$> listitems
4848 "articleinfo" -> getTitle >> getAuthors >> getDate >> return mempty
49+ "programlisting" -> return $ codeBlock $ strContent e
4950 "title" -> return mempty -- processed by sect
5051 "?xml" -> return mempty
5152 _ -> getBlocks e