Markdown not adding a <br> when adding a line break

Have you tried setting hardWraps in config.toml?

[markup.goldmark.renderer]
hardWraps = true

I agree that this is not documented well – I actually had to look in the Markdown processor’s repository to understand what this option does.

3 Likes