git.iko.soy/typeable/pandoc
on master help sign in
RST reader: don't allow single-dash separator in headerless table.
145710cJohn MacFarlane
src/Text/Pandoc/Readers/RST.hs+3−1
@@ -1269,7 +1269,9 @@ simpleTableHeader headless = try $ do
1269 rawContent <- if headless
1269 rawContent <- if headless
1270 then return ""
1270 then return ""
1271 else simpleTableSep '=' >> anyLine
1271 else simpleTableSep '=' >> anyLine
1272+ dashes <- if headless
1273+ then simpleDashedLines '='
1272− dashes <- simpleDashedLines '=' <|> simpleDashedLines '-'
1274+ else simpleDashedLines '=' <|> simpleDashedLines '-'
1273 newline
1275 newline
1274 let lines' = map snd dashes
1276 let lines' = map snd dashes
1275 let indices = scanl (+) 0 lines'
1277 let indices = scanl (+) 0 lines'
test/command/4382.mdnew file+10
@@ -0,0 +1,10 @@
1+```
2+% pandoc -f rst -t native
3+-
4+
5+=====
6+^D
7+[BulletList
8+ [[]]
9+,HorizontalRule]
10+```