diff options
| author | John MacFarlane <[email protected]> | 2025-12-11 11:30:20 +0100 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-12-11 11:30:20 +0100 |
| commit | 6d745e52767d1a1595d19b1950f41f4eaef5145f (patch) | |
| tree | 1f977a751ccb2617bee6b2f5a3383e28d64757db /src | |
| parent | d19cc38f116fbdc45ed6c0c97892ad6c18785990 (diff) | |
Markdown writer: ensure \ line breaks are used for commonmark.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/Markdown/Inline.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/Markdown/Inline.hs b/src/Text/Pandoc/Writers/Markdown/Inline.hs index 05106b259..b04b320ff 100644 --- a/src/Text/Pandoc/Writers/Markdown/Inline.hs +++ b/src/Text/Pandoc/Writers/Markdown/Inline.hs @@ -583,7 +583,7 @@ inlineToMarkdown opts LineBreak = do if variant == PlainText || isEnabled Ext_hard_line_breaks opts then return cr else return $ - if isEnabled Ext_escaped_line_breaks opts + if variant == Commonmark || isEnabled Ext_escaped_line_breaks opts then "\\" <> cr else " " <> cr inlineToMarkdown _ Space = do |
