Unable to preserve line breaks

Hi there, I am using org-mode to export to markdown for my website.
The org-mode code is:
Screenshot from 2021-03-06 10-19-24

and the .md output is:

+++
title = "Smoke on the water"
date = "2021-03-06"
tags = [ "" ]
topics = [ "" ]
+++

{{< youtube zUwEIt9ez7M >}}

<p class="verse">
We all came out to Montreux<br />
On the Lake Geneva shoreline<br />
To make records with a mobile<br />
We didn't have much time<br />
Frank Zappa and the Mothers<br />
Smoke on the water<br />
</p>

It was working well, but something happen and now I can’t view the verse part (the lyrics of the smoke of the water :relaxed:).
Thanks in advance
Aris

The current Markdown processor does not render raw HTML by default.

In the project config enter:

[markup.goldmark.renderer]
unsafe= true

Also if you want hard line breaks without having to enter the <br> tag use: hardWraps = true in the above configuration table.

2 Likes

other way is to use marddown blockquotes

https://daringfireball.net/projects/markdown/syntax#blockquote

> We all came out to Montreux
On the Lake Geneva shoreline
To make records with a mobile
We didn't have much time
Frank Zappa and the Mothers
Smoke on the water
1 Like

And the proper way is to put two spaces at the end of each line:

We all came out to Montreux
On the Lake Geneva shoreline
To make records with a mobile
We didn’t have much time

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.