Skip to content

Markdown parser nests mediaSingle inside a paragraph, which Jira rejects as invalid ADF #70

Description

@Hinne1

Found while building a test fixture during e2e verification of the --reply-to fix. Pre-existing on main, unrelated to that branch.

Problem

When markdown containing a media reference is converted to ADF, the resulting mediaSingle node is emitted inside a paragraph. That is not valid per the ADF content model — mediaSingle is a top-level block node — and Jira rejects the document regardless of whether the media id is correct.

This is independent of the id-format problem in the sibling issue: fixing the id alone still yields a rejected document.

Expected

mediaSingle should be emitted as a sibling of the surrounding paragraphs, at the top level of the document (or of whatever block container it sits in), not nested within one.

Related: #14, #15.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions