parse rST inlines containing newlines closing #4912

this eliminates a regression error introduced after pandoc 2.1.1,
affecting rST inline parsing. see the issue for details
This commit is contained in:
danse 2018-09-18 13:24:24 +02:00
parent e09dc44c00
commit db2a68d089
2 changed files with 4 additions and 1 deletions

View file

@ -1315,7 +1315,6 @@ table = gridTable False <|> simpleTable False <|>
inline :: PandocMonad m => RSTParser m Inlines
inline = choice [ note -- can start with whitespace, so try before ws
, link
, endline
, strong
, emph
, code
@ -1328,6 +1327,7 @@ inline = choice [ note -- can start with whitespace, so try before ws
inlineContent :: PandocMonad m => RSTParser m Inlines
inlineContent = choice [ whitespace
, str
, endline
, smart
, hyphens
, escapedChar

View file

@ -198,5 +198,8 @@ tests = [ "line block with blank line" =:
, "bare URI parsing disabled inside emphasis (#4561)" =:
"*http://location*" =?>
para (emph (text "http://location"))
, "include newlines" =:
"**before\nafter**" =?>
para (strong (text "before\nafter"))
]
]