git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Skip chapterinfo.
ffef28eJohn MacFarlane
src/Text/Pandoc/Readers/DocBook.hs+2−1
@@ -71,7 +71,7 @@ List of all DocBook tags, with [x] indicating implemented,
71[x] caption - A caption
71[x] caption - A caption
72[x] caution - A note of caution
72[x] caution - A note of caution
73[x] chapter - A chapter, as of a book
73[x] chapter - A chapter, as of a book
74−[ ] chapterinfo - Meta-information for a Chapter
74+[x] chapterinfo - Meta-information for a Chapter
75[ ] citation - An inline bibliographic reference to another published work
75[ ] citation - An inline bibliographic reference to another published work
76[ ] citebiblioid - A citation of a bibliographic identifier
76[ ] citebiblioid - A citation of a bibliographic identifier
77[ ] citerefentry - A citation to a reference page
77[ ] citerefentry - A citation to a reference page
@@ -619,6 +619,7 @@ parseBlock (Elem e) =
619 "caption" -> return mempty
619 "caption" -> return mempty
620 "info" -> getTitle >> getAuthors >> getDate >> return mempty
620 "info" -> getTitle >> getAuthors >> getDate >> return mempty
621 "articleinfo" -> getTitle >> getAuthors >> getDate >> return mempty
621 "articleinfo" -> getTitle >> getAuthors >> getDate >> return mempty
622+ "chapterinfo" -> return mempty -- keywords & other metadata
622 "bookinfo" -> getTitle >> getAuthors >> getDate >> return mempty
623 "bookinfo" -> getTitle >> getAuthors >> getDate >> return mempty
623 "article" -> modify (\st -> st{ dbBook = False }) >>
624 "article" -> modify (\st -> st{ dbBook = False }) >>
624 getTitle >> getBlocks e
625 getTitle >> getBlocks e