Automattic / Automattic/jetpack

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

Open
#34,706 1 comment 0 reactions 0 assignees View on GitHub
[Feature] Markdown [Plugin] Jetpack [Pri] Low [Status] Priority Review Triggered [Status] Stale Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### 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 `

` 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 `

` 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 `

` elements. For example:

`

  • Foo.

    Bar.

  • `

    ### What actually happened

    The first paragraph in a multi-paragraph list item is left without a `

    ` elements resulting, for example, in something like:

    `

  • Foo.

    Bar.

  • `

    ### Impact

    One

    ### Available workarounds?

    No but the platform is still usable

    ### Platform (Simple and/or Atomic)

    _No response_

    ### Logs or notes

    _No response_

    Contributor guide

    Open the contributing guide

    Research direction

    Start by reproducing the case through the Classic Editor's Markdown path and compare its generated HTML with the Markdown Block behavior described in the issue. Done means every paragraph in a multi-paragraph list item, including the first, is wrapped in a

    element.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    markdown, php, wordpress
    Domain
    content
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    38/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.