Cms: Creating UL/OL elements inside bard wraps li content in p

Created on 4 Dec 2019  路  2Comments  路  Source: statamic/cms

In a bard if you make a ul or ol it wraps the content of the li in a p tag.
What I wanted:

<ol>
<li>Something</li>
<li>Something</li>
<li>Something</li>
</ol>

What I get:

<ol>
<li><p>Something</p></li>
<li><p>Something two</p></li>
<li><p>Something three</p></li>
</ol>

I think this is separate from #619

blocked not a bug

Most helpful comment

Yep, that's how ProseMirror works. There's nothing we can do about that. We'll just all need to style accordingly 馃槉

All 2 comments

Yep, that's how ProseMirror works. There's nothing we can do about that. We'll just all need to style accordingly 馃槉

(Because it's perfectly fine to have multiple paragraphs or whatever else inside a list item)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filipac picture filipac  路  4Comments

aerni picture aerni  路  3Comments

sauerbraten picture sauerbraten  路  3Comments

billmn picture billmn  路  4Comments

robdekort picture robdekort  路  3Comments