Home
Support Forums

Line breaks in rich text editor not showing on prod

Hi,

A client is having an issue where they are entering line breaks into the rich text editor, however on production there are no breaks and the paragraphs are joined together. Should the text editor be creating
tags? Has anyone come across this issue?

Config:

CMS editor:

Live prod view:

Inspecting:

Hi @shunanahara,

I totally believe it’s up to the Markdown parser to handle this. Some parsers need \ to force a line break, some need to have double line-breaks and so on. You might have to check the Markdown output of this and try it with the parser you might be using.

Thanks for the reply.

This turned out to be my error. I wasn’t converting the user input to markdown within the Hugo layout. Added markdownify and all is well now.

{{ .copy | markdownify }}