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
<div class="row">
<div class="col-md-6">
First column in **two column layout**.
Second paragraph.
</div>
<div class="col-md-6">
Second column in two column layout.
</div>
</div>
With this input, the markdown:parse() function should return:
<body>
<divclass="row">
<divclass="col-md-6">
<p>First column in <strong>two column layout</strong>.</p>
<p>Second paragraph.</p>
</div>
<divclass="col-md-6">
<p>Second column in two column layout.</p>
</div>
</div>
</body>
But it actually returns:
<body>
<divclass="row">
<body/>
<divclass="col-md-6">
<body>
<p>First column in two column layout.</p>
</body>
</div>
</div>
<p>Second paragraph. <divclass="col-md-6"> Second column in two column layout. </div> </div></p>
</body>
Note that (1) an empty <body/> element is inserted into the outer div, (2) the "Second paragraph" is ejected from the first inner div, and (3) the second inner div is inserted into the "Second paragraph" <p> element.
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):
<div class="row">
<div class="col-md-6">
First column in **two column layout**.
<pre><code> Second paragraph.
</div>
<div class="col-md-6">
Second column in two column layout.
</div>
</code></pre>
</div>
This suggests that a Commonmark-compliant processor may not be expected to handle interleaved HTML blocks and Markdown.
Please provide the following
Java Version: n/a
exist-db version: 6.1.0-SNAPSHOT
exist-markdown version: 1.0.0
OS version: n/a
The text was updated successfully, but these errors were encountered:
Expected behavior
Markdown interleaved in HTML blocks was expected to work by the author of test.md.
Actual behavior
Markdown interleaved in HTML blocks is mangled
Reproduction steps
See the pending test at https://github.com/eXist-db/exist-markdown/blob/master/test/xqs/test-suite.xqm#L309-L340.
This test takes this markdown:
With this input, the
markdown:parse()
function should return:But it actually returns:
Note that (1) an empty
<body/>
element is inserted into the outer div, (2) the "Second paragraph" is ejected from the first inner div, and (3) the second inner div is inserted into the "Second paragraph"<p>
element.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):
Note that the Commonmark dingus at https://spec.commonmark.org/dingus/ also produces mangled output:
This suggests that a Commonmark-compliant processor may not be expected to handle interleaved HTML blocks and Markdown.
Please provide the following
The text was updated successfully, but these errors were encountered: