mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
FB2 writer: fix handling of non-section Divs.
This allows the writer to recurse into those Divs and find new sections inside them. See #8123.
This commit is contained in:
@@ -180,6 +180,8 @@ renderSection lvl (Div (id',"section":_,_) (Header _ _ title : xs)) = do
|
||||
then el "section" (title' ++ content)
|
||||
else el "section" ([uattr "id" id'], title' ++ content)
|
||||
return [sectionContent]
|
||||
renderSection lvl (Div _attr bs) =
|
||||
cMapM (renderSection lvl) bs
|
||||
renderSection _ b = blockToXml b
|
||||
|
||||
-- | Only <p> and <empty-line> are allowed within <title> in FB2.
|
||||
|
||||
Reference in New Issue
Block a user