Discount (GFM) processor converts line breaks into `<br />` if input is LF, does not if input is CRLF

Michael's Avatar

Michael

01 Jun, 2025 06:32 PM

Discount (GFM) processor converts line breaks into <br /> if input is has LF linebreaks (as expected), but does not if input has CRLF linebreaks.

Easy to work around, but very surprising and annoying. :)

  1. Support Staff 1 Posted by Brett on 13 Jun, 2025 07:57 PM

    Brett's Avatar

    Is this the result of the "Retain Line Breaks in Paragraphs" option, or is it specific to Discount? If it's the latter, I can fix the regex, but I'm not going to make any changes to the Discount processor itself.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac