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:
parent
3f455aedfa
commit
47358831a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue