Skip to content

Commit c755092

Browse files
committed
failing test case for commonmark output with Escaped nodes.
1 parent 5b2ea58 commit c755092

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
@@ -504,6 +504,22 @@ fn entities() {
504504
);
505505
}
506506

507+
#[test]
508+
fn entities_ecs() {
509+
html_opts!(
510+
[render.escaped_char_spans],
511+
concat!(
512+
"This is &, ©, ™, \\™, &xyz;, ≂̸.\n",
513+
"\n",
514+
"∞ ∞\n"
515+
),
516+
concat!(
517+
"<p>This is &amp;, ©, ™, &amp;trade;, &amp;xyz;, \u{2242}\u{338}.</p>\n",
518+
"<p>∞ ∞</p>\n"
519+
),
520+
);
521+
}
522+
507523
#[test]
508524
fn links() {
509525
html(

0 commit comments

Comments
 (0)