git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Skip chapterinfo.
commitffef28e86034db75d5c09ba4c6b5818922ef05ee authorJohn MacFarlane <fiddlosopher@gmail.com> dateMon 7 May 2012, 10:06 (14 years ago) parent8d6cc37
1 file changed+2−1
src/Text/Pandoc/Readers/DocBook.hs+2−1
src/Text/Pandoc/Readers/DocBook.hs+2−1
@@ -71,7 +71,7 @@ List of all DocBook tags, with [x] indicating implemented,
7171[x] caption - A caption
7272[x] caution - A note of caution
7373[x] chapter - A chapter, as of a book
74−[ ] chapterinfo - Meta-information for a Chapter
74+[x] chapterinfo - Meta-information for a Chapter
7575[ ] citation - An inline bibliographic reference to another published work
7676[ ] citebiblioid - A citation of a bibliographic identifier
7777[ ] citerefentry - A citation to a reference page
@@ -619,6 +619,7 @@ parseBlock (Elem e) =
619619 "caption" -> return mempty
620620 "info" -> getTitle >> getAuthors >> getDate >> return mempty
621621 "articleinfo" -> getTitle >> getAuthors >> getDate >> return mempty
622+ "chapterinfo" -> return mempty -- keywords & other metadata
622623 "bookinfo" -> getTitle >> getAuthors >> getDate >> return mempty
623624 "article" -> modify (\st -> st{ dbBook = False }) >>
624625 getTitle >> getBlocks e