aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-09-17 20:03:46 +0200
committerJohn MacFarlane <[email protected]>2025-09-17 20:03:46 +0200
commitbecb9a0a811e81592e5078c4de8da8bf6cfaca6a (patch)
tree20c0a2ebe9568f1deeb8d57706c0098ae6b05f89 /src
parent2485c594d8444e8fca40ec9a12e052e052f9b1c4 (diff)
RST simple table fix.
Leading space in a cell should not cause the contents to be parsed as a block quote. Closes #11146.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/RST.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs
index 7158b804e..2ef7187b1 100644
--- a/src/Text/Pandoc/Readers/RST.hs
+++ b/src/Text/Pandoc/Readers/RST.hs
@@ -1038,7 +1038,7 @@ singleParaToPlain bs =
parseCell :: PandocMonad m => Text -> RSTParser m Blocks
parseCell t = singleParaToPlain
- <$> parseFromString' parseBlocks (t <> "\n\n")
+ <$> parseFromString' parseBlocks (trim t <> "\n\n")
-- TODO: