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.
Found while building a test fixture during e2e verification of the
--reply-tofix. Pre-existing onmain, unrelated to that branch.Problem
When markdown containing a media reference is converted to ADF, the resulting
mediaSinglenode is emitted inside aparagraph. That is not valid per the ADF content model —mediaSingleis 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
mediaSingleshould 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.