EPUB toChapters: don't treat "refs" Div specially.

This should make toChapters work better if there are
Divs around sections.
This commit is contained in:
John MacFarlane 2019-09-14 11:36:21 -07:00
parent 3f455aedfa
commit 47358831a4

View file

@ -520,7 +520,7 @@ pandocToEPUB version opts doc = do
let toChapters :: [Block] -> State [Int] [Chapter]
toChapters [] = return []
toChapters (Div ("refs",_,_) bs@(Header 1 _ _:_) : rest) =
toChapters (Div _ bs@(Header 1 _ _:_) : rest) =
toChapters (bs ++ rest)
toChapters (Header n attr@(_,classes,_) ils : bs) = do
nums <- get