@@ -159,11 +159,13 @@ blockToTEI opts (Div (ident,_,_) [Para lst]) = do
159159 let attribs = [("id", ident) | not (null ident)]
160160 inTags False "p" attribs <$> inlinesToTEI opts lst
161161blockToTEI opts (Div _ bs) = blocksToTEI opts $ map plainToPara bs
162−blockToTEI _ (Header _ _ _) = return empty
163−-- should not occur after hierarchicalize
162+blockToTEI _ h@(Header _ _ _) = do
163+ -- should not occur after hierarchicalize, except inside lists/blockquotes
164+ report $ BlockNotRendered h
165+ return empty
164166-- For TEI simple, text must be within containing block element, so
165−-- we use plainToPara to ensure that Plain text ends up contained by
166−-- something.
167+-- we use treat as Para to ensure that Plain text ends up contained by
168+-- something:
167169blockToTEI opts (Plain lst) = blockToTEI opts $ Para lst
168170-- title beginning with fig: indicates that the image is a figure
169171--blockToTEI opts (Para [Image attr txt (src,'f':'i':'g':':':_)]) =