indieweb / wordpress-micropub

A Micropub Endpoint plugin for WordPress
https://wordpress.org/plugins/micropub
51 stars 12 forks source link

First line of content always outside <p> tag #298

Open snarfed opened 6 months ago

snarfed commented 6 months ago

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>
dshanske commented 6 months ago

Definitely not