git.iko.soy/typeable/pandoc
on master help sign in
DocBook reader: Skip index.
commit523acadd5ba16893c2a6751dbb50327754f2dd07 authorJohn MacFarlane <fiddlosopher@gmail.com> dateThu 10 May 2012, 20:11 (14 years ago) parent84d213b
1 file changed+6−5
src/Text/Pandoc/Readers/DocBook.hs+6−5
src/Text/Pandoc/Readers/DocBook.hs+6−5
@@ -177,11 +177,11 @@ List of all DocBook tags, with [x] indicating implemented,
177177[ ] imageobject - A wrapper for image data and its associated meta-information
178178[ ] imageobjectco - A wrapper for an image object with callouts
179179[x] important - An admonition set off from the text
180−[ ] index - An index
181−[ ] indexdiv - A division in an index
182−[ ] indexentry - An entry in an index
183−[ ] indexinfo - Meta-information for an Index
184−[ ] indexterm - A wrapper for terms to be indexed
180+[x] index - An index
181+[x] indexdiv - A division in an index
182+[x] indexentry - An entry in an index
183+[x] indexinfo - Meta-information for an Index
184+[x] indexterm - A wrapper for terms to be indexed
185185[x] info - A wrapper for information about a component or other block. (DocBook v5)
186186[ ] informalequation - A displayed mathematical equation without a title
187187[ ] informalexample - A displayed example without a title
@@ -585,6 +585,7 @@ parseBlock (CRef x) = return $ plain $ str $ map toUpper x
585585parseBlock (Elem e) =
586586 case qName (elName e) of
587587 "toc" -> return mempty -- skip TOC, since in pandoc it's autogenerated
588+ "index" -> return mempty -- skip index, since page numbers meaningless
588589 "para" -> para <$> getInlines e
589590 "simpara" -> para <$> getInlines e
590591 "ackno" -> para <$> getInlines e