mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
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.
This commit is contained in:
@@ -755,7 +755,8 @@ directive' = do
|
||||
other -> do
|
||||
pos <- getPosition
|
||||
logMessage $ SkippedContent (".. " ++ other) pos
|
||||
return mempty
|
||||
bod <- parseFromString parseBlocks $ top ++ "\n\n" ++ body'
|
||||
return $ B.divWith ("",[other],[]) bod
|
||||
|
||||
tableDirective :: PandocMonad m
|
||||
=> String -> [(String, String)] -> String -> RSTParser m Blocks
|
||||
|
||||
Reference in New Issue
Block a user