Skip to content

Commit 99f360b

Browse files
committed
failing test case for commonmark output with Escaped nodes.
1 parent 8435939 commit 99f360b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/tests/core.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,22 @@ fn entities() {
515515
);
516516
}
517517

518+
#[test]
519+
fn entities_ecs() {
520+
html_opts!(
521+
[parse.escaped_char_spans],
522+
concat!(
523+
"This is &, ©, ™, \\™, &xyz;, ≂̸.\n",
524+
"\n",
525+
"∞ ∞\n"
526+
),
527+
concat!(
528+
"<p>This is &amp;, ©, ™, &amp;trade;, &amp;xyz;, \u{2242}\u{338}.</p>\n",
529+
"<p>∞ ∞</p>\n"
530+
),
531+
);
532+
}
533+
518534
#[test]
519535
fn links() {
520536
html(

0 commit comments

Comments
 (0)