git.iko.soy/typeable/pandoc
on master help sign in
RST reader: recurse into bodies of unknown directives.

In most cases it's better to preserve the content than to emit it. This isn't guaranteed to have good results; it will fail spectacularly for unknown raw or verbatim directives. See #3432.

commit34412cf57c904f5729f96553ed9481869dde7358 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 19 Mar 2017, 21:55 (10 years ago) parentfff3489
1 file changed+2−1
src/Text/Pandoc/Readers/RST.hs+2−1
src/Text/Pandoc/Readers/RST.hs+2−1
@@ -755,7 +755,8 @@ directive' = do
755755 other -> do
756756 pos <- getPosition
757757 logMessage $ SkippedContent (".. " ++ other) pos
758− return mempty
758+ bod <- parseFromString parseBlocks $ top ++ "\n\n" ++ body'
759+ return $ B.divWith ("",[other],[]) bod
759760
760761tableDirective :: PandocMonad m
761762 => String -> [(String, String)] -> String -> RSTParser m Blocks