Weird list margins behavior?

Here’s a list I’m writing in a wiki:

If I add a single empty line after the first list element, it adds vertical margins on all the elements from the list, by wrapping every <li> content by a <p>:

Before:

<li>Vérifier que les mots de passe importés fonctionnent (s’ils ne fonctionnent pas, pas sûr qu’on puisse y faire grand chose)</li>

After:

<li>
<p>Vérifier que les mots de passe importés fonctionnent (s’ils ne fonctionnent pas, pas sûr qu’on puisse y faire grand chose)</p>
</li>

Don’t know if it’s an expected behavior… And in my opinion, a list has a way better readability with vertical margins between each element. Which, maybe, should be the default display?

I noticed that this is the standard behavior of https://markdown-it.github.io/, which Discourse uses. :slight_smile:

1 Like