wordpress-micropub icon indicating copy to clipboard operation
wordpress-micropub copied to clipboard

First line of content always outside <p> tag

Open snarfed opened this issue 1 year ago • 1 comments

I'm noticing an odd behavior with multi-line input content: the first line is outside a <p> tag, then each following line is inside a <p> tag. @dshanske I assume that's not intentional, right?

For example, a request with h=entry&content=foo%0A%0Abar%0A%0Abaz (%0A is a URL-encoded newline) results in:

<div class="e-content">foo
<p>bar</p>
<p>baz</p>
</div>

snarfed avatar Feb 20 '24 21:02 snarfed

Definitely not

dshanske avatar Feb 21 '24 03:02 dshanske