@@ -201,6 +201,8 @@ blockToDocbook opts (Div (ident,classes,_) bs) = do
201 (l:_) | l `elem` admonitions -> do
201 (l:_) | l `elem` admonitions -> do
202 let (mTitleBs, bodyBs) =
202 let (mTitleBs, bodyBs) =
203 case bs of
203 case bs of
204+ -- Matches AST produced by the DocBook reader → Markdown writer → Markdown reader chain.
205+ (Div (_,["title"],_) [Para ts] : rest) -> (Just (inlinesToDocbook opts ts), rest)
204 -- Matches AST produced by the Docbook reader.
206 -- Matches AST produced by the Docbook reader.
205 (Div (_,["title"],_) ts : rest) -> (Just (blocksToDocbook opts ts), rest)
207 (Div (_,["title"],_) ts : rest) -> (Just (blocksToDocbook opts ts), rest)
206 _ -> (Nothing, bs)
208 _ -> (Nothing, bs)