Markdown reader: Prevent spurious line breaks after list items.
When the `hard_line_breaks` option was specified, pandoc would produce a spurious line break after a tight list item. This patch solves the problem. Closes #1137.
This commit is contained in:
parent
2eadc78053
commit
56c410ef6a
1 changed files with 2 additions and 1 deletions
|
@ -1560,7 +1560,8 @@ endline = try $ do
|
|||
guardEnabled Ext_blank_before_header <|> notFollowedBy (char '#') -- atx header
|
||||
guardDisabled Ext_backtick_code_blocks <|>
|
||||
notFollowedBy (() <$ (lookAhead (char '`') >> codeBlockFenced))
|
||||
(guardEnabled Ext_hard_line_breaks >> return (return B.linebreak))
|
||||
(eof >> return mempty)
|
||||
<|> (guardEnabled Ext_hard_line_breaks >> return (return B.linebreak))
|
||||
<|> (guardEnabled Ext_ignore_line_breaks >> return mempty)
|
||||
<|> (return $ return B.space)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue