Link in unordered list is compiled wrapped in a <p>

Hello,

My simplest markdown list with links:

- [Anchor](url)
- [Anchor](url)
- [Anchor](url)

is compiled to

<li><p><a>...
<li><p><a>...
<li><p><a>...

I don’t understand why every link is wrapped in a paragraph which overloads the HTML. It is not critical but simpler is better :smiley:

Thanks for your thoughts,

Unable to reproduce, unless I insert a blank line between each item.

1 Like

Woops, sorry, seems editor inserted a blank line after a shortcode containing a link which then applied the paragraph format to other links.
Sorry.
Thx for your time

You can add {{- /**/ -}} to the bottom of your templates, including shortcodes, to chomp the trailing newlines.

6 Likes

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