Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Markdown in Classic Editor omits paragraph element on first paragraph of multi-paragraph list item. #34706

Open bixfrankonis opened 9 months ago

bixfrankonis commented 9 months ago

Impacted plugin

Jetpack

Quick summary

In multi-paragraph list items written in Markdown in the Classic Editor, the resulting HTML only wraps successive paragraphs in <p> elements, ignoring the first paragraph.

Steps to reproduce

  1. Write a post using Markdown in the Classic Editor.
  2. Publish or preview post.
  3. View source.
  4. Note the lack of <p> element.

A clear and concise description of what you expected to happen.

Much like as correctly occurs in the Markdown Block when using the Block Editor, all paragraphs in a multi-paragraph list item should be wrapped in <p> elements. For example:

<li><p>Foo.</p><p>Bar.</p></li>

What actually happened

The first paragraph in a multi-paragraph list item is left without a <p> elements resulting, for example, in something like:

<li>Foo.<p>Bar.</p></li>

Impact

One

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

github-actions[bot] commented 3 months ago

This issue has been marked as stale. This happened because:

No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.