git.iko.soy/typeable/pandoc
on master help sign in
EPUB toChapters: don't treat "refs" Div specially.

This should make toChapters work better if there are Divs around sections.

commit47358831a4546b9373c0773e02f0ee7a180aa74d authorJohn MacFarlane <jgm@berkeley.edu> dateSat 14 Sep 2019, 11:36 (7 years ago) parent3f455ae
1 file changed+1−1
src/Text/Pandoc/Writers/EPUB.hs+1−1
src/Text/Pandoc/Writers/EPUB.hs+1−1
@@ -520,7 +520,7 @@ pandocToEPUB version opts doc = do
520520
521521 let toChapters :: [Block] -> State [Int] [Chapter]
522522 toChapters [] = return []
523− toChapters (Div ("refs",_,_) bs@(Header 1 _ _:_) : rest) =
523+ toChapters (Div _ bs@(Header 1 _ _:_) : rest) =
524524 toChapters (bs ++ rest)
525525 toChapters (Header n attr@(_,classes,_) ils : bs) = do
526526 nums <- get