Hugo server is adding extra br in list items

1. First item
2. Second item
3. Third item

One must wonder if they cannot help us build the masonry grid every client has been drooling for for the last couple of years.

renders:

<ol>
	<li>First item<br></li>
	<li>Second item<br></li>
	<li>Third item<br>
<br></li>
</ol>
<p>One must wonder if they cannot help us build the masonry grid every client has been drooling for for the last couple of years.</p>

It’s almost as if the line break used to move on to the next list item is considered linebeak inside the <li>

This only happens while served by Hugo server.

It may be due to some specific on my install I cannot figure out… But just in case it’s a bug in Hugo server, I drop it here.

Cheers,

I just googled this and figured it out for our instance. We used the option “hardLineBreak” for blackfriday in our Hugo configuration. Removing the option made this problem go away.

1 Like