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


My simplest markdown list with links:

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

is compiled to


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.
Thx for your time

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


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