<br> tag is not working

The markdown:

> **"The Old Pond" by Matsuo Basho** <br />
> an old silent pond <br />
> a frog jumps into the pond - <br />
> splash! silence again.

However, it shows up as this:
image

<p>
    <strong>
        “The Old Pond” by Matsuo Basho
    </strong> 
    <!-- raw HTML omitted -->
    an old silent pond 
    <!-- raw HTML omitted -->
    a frog jumps into the pond - 
    <!-- raw HTML omitted -->
    splash! silence again.
</p>

nevermind, I searched up “raw HTML omitted” and found a solution

in hugo.toml:

[markup.goldmark.renderer]
    unsafe = true

since I’m the only editor of my posts I’m fine with adding that line in

1 Like

The Markdown way to add line breaks is to add two spaces after each line. Inspect the two lines below and you will see a <br> tag after the first one.

The Markdown way to add line breaks is to add two lines after each line.
The Markdown way to add line breaks is to add two lines after each line.

If you added this only for the line breaks, then you can remove it after implementing the solution above.

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