You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A <span style="color: red;">paragraph <span style="color: green;">containing</span></span> some <mark>inline</mark> <code>HTML</code>.
With this input, the markdown:parse() function should return:
<body>
<p>A <spanstyle="color: red;">paragraph <spanstyle="color: green;">containing</span></span> some <mark>inline</mark> <code>HTML</code>.</p>
</body>
The Commonmark dingus at https://spec.commonmark.org/dingus/ returns this exactly (sans the <body> wrapper, which exist-markdown uses to ensure its results are well-formed, and which users of the library would normally omit from output):
<p>A <spanstyle="color: red;">paragraph <spanstyle="color: green;">containing</span></span> some <mark>inline</mark> <code>HTML</code>.</p>
But it actually returns:
<body>
<p>A <spanstyle="color: red;">paragraph <spanstyle="color: green;">containing</span></span> some <code>HTML</code>.</p>
</body>
Note that the <mark>inline</mark> element was dropped from the output and replaced with an extra space character between some and <code>HTML</code>.
Since the parsed markdown doesn't equal the expected output, the test fails (and is marked as pending in the source until a fix is in place):
Expected behavior
In inline HTML, inline elements like
<mark>
should be preserved.Actual behavior
The elements are dropped from output.
Reproduction steps
See the pending test at https://github.com/eXist-db/exist-markdown/blob/master/test/xqs/test-suite.xqm#L346-L361.
This test takes this markdown:
With this input, the
markdown:parse()
function should return:The Commonmark dingus at https://spec.commonmark.org/dingus/ returns this exactly (sans the
<body>
wrapper, which exist-markdown uses to ensure its results are well-formed, and which users of the library would normally omit from output):But it actually returns:
Note that the
<mark>inline</mark>
element was dropped from the output and replaced with an extra space character betweensome
and<code>HTML</code>
.Since the parsed markdown doesn't equal the expected output, the test fails (and is marked as pending in the source until a fix is in place):
Please provide the following
The text was updated successfully, but these errors were encountered: