git.iko.soy/typeable/pandoc
on master help sign in
RST reader: recurse into bodies of unknown directives.
34412cfJohn MacFarlane
src/Text/Pandoc/Readers/RST.hs+2−1
@@ -755,7 +755,8 @@ directive' = do
755 other -> do
755 other -> do
756 pos <- getPosition
756 pos <- getPosition
757 logMessage $ SkippedContent (".. " ++ other) pos
757 logMessage $ SkippedContent (".. " ++ other) pos
758− return mempty
758+ bod <- parseFromString parseBlocks $ top ++ "\n\n" ++ body'
759+ return $ B.divWith ("",[other],[]) bod
759
760
760tableDirective :: PandocMonad m
761tableDirective :: PandocMonad m
761 => String -> [(String, String)] -> String -> RSTParser m Blocks
762 => String -> [(String, String)] -> String -> RSTParser m Blocks