aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/character_reference.rs11
-rw-r--r--tests/hard_break_escape.rs11
-rw-r--r--tests/hard_break_trailing.rs77
-rw-r--r--tests/heading_atx.rs11
-rw-r--r--tests/heading_setext.rs44
-rw-r--r--tests/html_flow.rs127
-rw-r--r--tests/image.rs55
-rw-r--r--tests/link_reference.rs68
-rw-r--r--tests/link_resource.rs24
-rw-r--r--tests/thematic_break.rs11
10 files changed, 203 insertions, 236 deletions
diff --git a/tests/character_reference.rs b/tests/character_reference.rs
index c87657e..dec1d0c 100644
--- a/tests/character_reference.rs
+++ b/tests/character_reference.rs
@@ -85,12 +85,11 @@ fn character_reference() {
"should not support character references in indented code"
);
- // To do: attention.
- // assert_eq!(
- // micromark("*foo*\n*foo*"),
- // "<p>*foo*\n<em>foo</em></p>",
- // "should not support character references as construct markers (1)"
- // );
+ assert_eq!(
+ micromark("&#42;foo&#42;\n*foo*"),
+ "<p>*foo*\n<em>foo</em></p>",
+ "should not support character references as construct markers (1)"
+ );
// To do: list.
// assert_eq!(
diff --git a/tests/hard_break_escape.rs b/tests/hard_break_escape.rs
index 740e706..a486ade 100644
--- a/tests/hard_break_escape.rs
+++ b/tests/hard_break_escape.rs
@@ -15,12 +15,11 @@ fn hard_break_escape() {
"should support leading spaces after an escape hard break"
);
- // To do: attention.
- // assert_eq!(
- // micromark("*foo\\\nbar*"),
- // "<p><em>foo<br />\nbar</em></p>",
- // "should support escape hard breaks in emphasis"
- // );
+ assert_eq!(
+ micromark("*foo\\\nbar*"),
+ "<p><em>foo<br />\nbar</em></p>",
+ "should support escape hard breaks in emphasis"
+ );
assert_eq!(
micromark("``code\\\ntext``"),
diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs
index 2a4b534..d67ad37 100644
--- a/tests/hard_break_trailing.rs
+++ b/tests/hard_break_trailing.rs
@@ -21,19 +21,17 @@ fn hard_break_trailing() {
"should support leading spaces after a trailing hard break"
);
- // To do: attention.
- // assert_eq!(
- // micromark("*foo \nbar*"),
- // "<p><em>foo<br />\nbar</em></p>",
- // "should support trailing hard breaks in emphasis"
- // );
+ assert_eq!(
+ micromark("*foo \nbar*"),
+ "<p><em>foo<br />\nbar</em></p>",
+ "should support trailing hard breaks in emphasis"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("*foo\\\nbar*"),
- // "<p><em>foo<br />\nbar</em></p>",
- // "should support escape hard breaks in emphasis"
- // );
+ assert_eq!(
+ micromark("*foo\\\nbar*"),
+ "<p><em>foo<br />\nbar</em></p>",
+ "should support escape hard breaks in emphasis"
+ );
assert_eq!(
micromark("`code \ntext`"),
@@ -83,40 +81,35 @@ fn hard_break_trailing() {
"should support a line suffix after a replacement character"
);
- // To do: attention.
- // assert_eq!(
- // micromark("*a* \nbb"),
- // "<p><em>a</em><br />\nbb</p>",
- // "should support a hard break after a span"
- // );
+ assert_eq!(
+ micromark("*a* \nbb"),
+ "<p><em>a</em><br />\nbb</p>",
+ "should support a hard break after a span"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("*a*\t\nbb"),
- // "<p><em>a</em>\nbb</p>",
- // "should support a line suffix after a span"
- // );
+ assert_eq!(
+ micromark("*a*\t\nbb"),
+ "<p><em>a</em>\nbb</p>",
+ "should support a line suffix after a span"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("*a* \t\nbb"),
- // "<p><em>a</em>\nbb</p>",
- // "should support a mixed line suffix after a span (1)"
- // );
+ assert_eq!(
+ micromark("*a* \t\nbb"),
+ "<p><em>a</em>\nbb</p>",
+ "should support a mixed line suffix after a span (1)"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("*a*\t \nbb"),
- // "<p><em>a</em>\nbb</p>",
- // "should support a mixed line suffix after a span (2)"
- // );
+ assert_eq!(
+ micromark("*a*\t \nbb"),
+ "<p><em>a</em>\nbb</p>",
+ "should support a mixed line suffix after a span (2)"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("*a* \t \nbb"),
- // "<p><em>a</em>\nbb</p>",
- // "should support a mixed line suffix after a span (3)"
- // );
+ assert_eq!(
+ micromark("*a* \t \nbb"),
+ "<p><em>a</em>\nbb</p>",
+ "should support a mixed line suffix after a span (3)"
+ );
// // To do: turning things off.
// assert_eq!(
diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs
index ef5846a..c9aa803 100644
--- a/tests/heading_atx.rs
+++ b/tests/heading_atx.rs
@@ -62,12 +62,11 @@ fn heading_atx() {
"should not support a heading for an escaped number sign"
);
- // To do: attention.
- // assert_eq!(
- // micromark("# foo *bar* \\*baz\\*"),
- // "<h1>foo <em>bar</em> *baz*</h1>",
- // "should support text content in headings"
- // );
+ assert_eq!(
+ micromark("# foo *bar* \\*baz\\*"),
+ "<h1>foo <em>bar</em> *baz*</h1>",
+ "should support text content in headings"
+ );
assert_eq!(
micromark("# foo "),
diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs
index e7ee9ff..3c8b892 100644
--- a/tests/heading_setext.rs
+++ b/tests/heading_setext.rs
@@ -3,33 +3,29 @@ use micromark::micromark;
#[test]
fn heading_setext() {
- // To do: attention.
- // assert_eq!(
- // micromark("Foo *bar*\n========="),
- // "<h1>Foo <em>bar</em></h1>",
- // "should support a heading w/ an equals to (rank of 1)"
- // );
+ assert_eq!(
+ micromark("Foo *bar*\n========="),
+ "<h1>Foo <em>bar</em></h1>",
+ "should support a heading w/ an equals to (rank of 1)"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("Foo *bar*\n---------"),
- // "<h2>Foo <em>bar</em></h2>",
- // "should support a heading w/ a dash (rank of 2)"
- // );
+ assert_eq!(
+ micromark("Foo *bar*\n---------"),
+ "<h2>Foo <em>bar</em></h2>",
+ "should support a heading w/ a dash (rank of 2)"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("Foo *bar\nbaz*\n===="),
- // "<h1>Foo <em>bar\nbaz</em></h1>",
- // "should support line endings in setext headings"
- // );
+ assert_eq!(
+ micromark("Foo *bar\nbaz*\n===="),
+ "<h1>Foo <em>bar\nbaz</em></h1>",
+ "should support line endings in setext headings"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark(" Foo *bar\nbaz*\t\n===="),
- // "<h1>Foo <em>bar\nbaz</em></h1>",
- // "should not include initial and final whitespace around content"
- // );
+ assert_eq!(
+ micromark(" Foo *bar\nbaz*\t\n===="),
+ "<h1>Foo <em>bar\nbaz</em></h1>",
+ "should not include initial and final whitespace around content"
+ );
assert_eq!(
micromark("Foo\n-------------------------"),
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index 3b69671..348da8d 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -98,12 +98,11 @@ p {color:blue;}
"should support raw tags w/o ending"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<style>p{color:red;}</style>\n*foo*", DANGER),
- // "<style>p{color:red;}</style>\n<p><em>foo</em></p>",
- // "should support raw tags w/ start and end on a single line"
- // );
+ assert_eq!(
+ micromark_with_options("<style>p{color:red;}</style>\n*foo*", DANGER),
+ "<style>p{color:red;}</style>\n<p><em>foo</em></p>",
+ "should support raw tags w/ start and end on a single line"
+ );
assert_eq!(
micromark_with_options("<script>\nfoo\n</script>1. *bar*", DANGER),
@@ -129,12 +128,11 @@ p {color:blue;}
"should not support an eof after a self-closing slash"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<script/\n*asd*", DANGER),
- // "<p>&lt;script/\n<em>asd</em></p>",
- // "should not support a line ending after a self-closing slash"
- // );
+ assert_eq!(
+ micromark_with_options("<script/\n*asd*", DANGER),
+ "<p>&lt;script/\n<em>asd</em></p>",
+ "should not support a line ending after a self-closing slash"
+ );
assert_eq!(
micromark_with_options("<script/>", DANGER),
@@ -195,12 +193,11 @@ fn html_flow_2_comment() {
"should support comments (type 2)"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<!-- foo -->*bar*\n*baz*", DANGER),
- // "<!-- foo -->*bar*\n<p><em>baz</em></p>",
- // "should support comments w/ start and end on a single line"
- // );
+ assert_eq!(
+ micromark_with_options("<!-- foo -->*bar*\n*baz*", DANGER),
+ "<!-- foo -->*bar*\n<p><em>baz</em></p>",
+ "should support comments w/ start and end on a single line"
+ );
assert_eq!(
micromark_with_options("<!-asd-->", DANGER),
@@ -455,15 +452,14 @@ fn html_flow_5_cdata() {
#[test]
fn html_flow_6_basic() {
- // To do: attention.
- // assert_eq!(
- // micromark_with_options(
- // "<table><tr><td>\n<pre>\n**Hello**,\n\n_world_.\n</pre>\n</td></tr></table>",
- // DANGER
- // ),
- // "<table><tr><td>\n<pre>\n**Hello**,\n<p><em>world</em>.\n</pre></p>\n</td></tr></table>",
- // "should support html (basic)"
- // );
+ assert_eq!(
+ micromark_with_options(
+ "<table><tr><td>\n<pre>\n**Hello**,\n\n_world_.\n</pre>\n</td></tr></table>",
+ DANGER
+ ),
+ "<table><tr><td>\n<pre>\n**Hello**,\n<p><em>world</em>.\n</pre></p>\n</td></tr></table>",
+ "should support html (basic)"
+ );
assert_eq!(
micromark_with_options(
@@ -501,12 +497,11 @@ okay.",
"should support html starting w/ a closing tag"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<DIV CLASS=\"foo\">\n\n*Markdown*\n\n</DIV>", DANGER),
- // "<DIV CLASS=\"foo\">\n<p><em>Markdown</em></p>\n</DIV>",
- // "should support html w/ markdown in between"
- // );
+ assert_eq!(
+ micromark_with_options("<DIV CLASS=\"foo\">\n\n*Markdown*\n\n</DIV>", DANGER),
+ "<DIV CLASS=\"foo\">\n<p><em>Markdown</em></p>\n</DIV>",
+ "should support html w/ markdown in between"
+ );
assert_eq!(
micromark_with_options("<div id=\"foo\"\n class=\"bar\">\n</div>", DANGER),
@@ -520,12 +515,11 @@ okay.",
"should support html w/ line endings (2)"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<div>\n*foo*\n\n*bar*", DANGER),
- // "<div>\n*foo*\n<p><em>bar</em></p>",
- // "should support an unclosed html element"
- // );
+ assert_eq!(
+ micromark_with_options("<div>\n*foo*\n\n*bar*", DANGER),
+ "<div>\n*foo*\n<p><em>bar</em></p>",
+ "should support an unclosed html element"
+ );
assert_eq!(
micromark_with_options("<div id=\"foo\"\n*hi*", DANGER),
@@ -601,12 +595,11 @@ okay.",
"should require a blank line to end"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<div>\n\n*Emphasized* text.\n\n</div>", DANGER),
- // "<div>\n<p><em>Emphasized</em> text.</p>\n</div>",
- // "should support interleaving w/ blank lines"
- // );
+ assert_eq!(
+ micromark_with_options("<div>\n\n*Emphasized* text.\n\n</div>", DANGER),
+ "<div>\n<p><em>Emphasized</em> text.</p>\n</div>",
+ "should support interleaving w/ blank lines"
+ );
assert_eq!(
micromark_with_options("<div>\n*Emphasized* text.\n</div>", DANGER),
@@ -679,12 +672,11 @@ okay.",
"should not support an eof directly after a self-closing slash"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<div/\n*asd*", DANGER),
- // "<p>&lt;div/\n<em>asd</em></p>",
- // "should not support a line ending after a self-closing slash"
- // );
+ assert_eq!(
+ micromark_with_options("<div/\n*asd*", DANGER),
+ "<p>&lt;div/\n<em>asd</em></p>",
+ "should not support a line ending after a self-closing slash"
+ );
assert_eq!(
micromark_with_options("<div/>", DANGER),
@@ -769,19 +761,17 @@ fn html_flow_7_complete() {
"should support closing tags"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<del>\n\n*foo*\n\n</del>", DANGER),
- // "<del>\n<p><em>foo</em></p>\n</del>",
- // "should support interleaving"
- // );
+ assert_eq!(
+ micromark_with_options("<del>\n\n*foo*\n\n</del>", DANGER),
+ "<del>\n<p><em>foo</em></p>\n</del>",
+ "should support interleaving"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<del>*foo*</del>", DANGER),
- // "<p><del><em>foo</em></del></p>",
- // "should not support interleaving w/o blank lines"
- // );
+ assert_eq!(
+ micromark_with_options("<del>*foo*</del>", DANGER),
+ "<p><del><em>foo</em></del></p>",
+ "should not support interleaving w/o blank lines"
+ );
assert_eq!(
micromark_with_options("<div>\n \nasd", DANGER),
@@ -825,12 +815,11 @@ fn html_flow_7_complete() {
"should not support an eof directly after a self-closing slash"
);
- // To do: attention.
- // assert_eq!(
- // micromark_with_options("<x/\n*asd*", DANGER),
- // "<p>&lt;x/\n<em>asd</em></p>",
- // "should not support a line ending after a self-closing slash"
- // );
+ assert_eq!(
+ micromark_with_options("<x/\n*asd*", DANGER),
+ "<p>&lt;x/\n<em>asd</em></p>",
+ "should not support a line ending after a self-closing slash"
+ );
assert_eq!(
micromark_with_options("<x/>", DANGER),
diff --git a/tests/image.rs b/tests/image.rs
index 6db6d75..32d4171 100644
--- a/tests/image.rs
+++ b/tests/image.rs
@@ -14,12 +14,11 @@ fn image() {
"should support image w/ resource"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*]"),
- // "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
- // "should support image as shortcut reference"
- // );
+ assert_eq!(
+ micromark("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*]"),
+ "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
+ "should support image as shortcut reference"
+ );
assert_eq!(
micromark("![foo ![bar](/url)](/url2)"),
@@ -33,19 +32,17 @@ fn image() {
"should “support” links in images"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*][]"),
- // "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
- // "should support “content” in images"
- // );
+ assert_eq!(
+ micromark("[foo *bar*]: train.jpg \"train & tracks\"\n\n![foo *bar*][]"),
+ "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
+ "should support “content” in images"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("[FOOBAR]: train.jpg \"train & tracks\"\n\n![foo *bar*][foobar]"),
- // "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
- // "should support “content” in images"
- // );
+ assert_eq!(
+ micromark("[FOOBAR]: train.jpg \"train & tracks\"\n\n![foo *bar*][foobar]"),
+ "<p><img src=\"train.jpg\" alt=\"foo bar\" title=\"train &amp; tracks\" /></p>",
+ "should support “content” in images"
+ );
assert_eq!(
micromark("![foo](train.jpg)"),
@@ -89,12 +86,11 @@ fn image() {
"should support collapsed references (1)"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[*foo* bar]: /url \"title\"\n\n![*foo* bar][]"),
- // "<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
- // "should support collapsed references (2)"
- // );
+ assert_eq!(
+ micromark("[*foo* bar]: /url \"title\"\n\n![*foo* bar][]"),
+ "<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
+ "should support collapsed references (2)"
+ );
assert_eq!(
micromark("[foo]: /url \"title\"\n\n![Foo][]"),
@@ -114,12 +110,11 @@ fn image() {
"should support shortcut references (1)"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[*foo* bar]: /url \"title\"\n\n![*foo* bar]"),
- // "<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
- // "should support shortcut references (2)"
- // );
+ assert_eq!(
+ micromark("[*foo* bar]: /url \"title\"\n\n![*foo* bar]"),
+ "<p><img src=\"/url\" alt=\"foo bar\" title=\"title\" /></p>",
+ "should support shortcut references (2)"
+ );
assert_eq!(
micromark("[[foo]]: /url \"title\"\n\n![[foo]]"),
diff --git a/tests/link_reference.rs b/tests/link_reference.rs
index 372bea5..3a0be9f 100644
--- a/tests/link_reference.rs
+++ b/tests/link_reference.rs
@@ -27,7 +27,7 @@ fn link_reference() {
"should support escaped brackets in link references"
);
- // To do: attention.
+ // To do: link/attention interplay.
// assert_eq!(
// micromark("[ref]: /uri\n\n[link *foo **bar** `#`*][ref]"),
// "<p><a href=\"/uri\">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>",
@@ -46,19 +46,19 @@ fn link_reference() {
"should not support links in link references"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[ref]: /uri\n\n[foo *bar [baz][ref]*][ref]"),
- // "<p>[foo <em>bar <a href=\"/uri\">baz</a></em>]<a href=\"/uri\">ref</a></p>",
- // "should not support deep links in link references"
- // );
-
assert_eq!(
- micromark("[ref]: /uri\n\n*[foo*][ref]"),
- "<p>*<a href=\"/uri\">foo*</a></p>",
- "should prefer link references over emphasis (1)"
+ micromark("[ref]: /uri\n\n[foo *bar [baz][ref]*][ref]"),
+ "<p>[foo <em>bar <a href=\"/uri\">baz</a></em>]<a href=\"/uri\">ref</a></p>",
+ "should not support deep links in link references"
);
+ // To do: link/attention interplay.
+ // assert_eq!(
+ // micromark("[ref]: /uri\n\n*[foo*][ref]"),
+ // "<p>*<a href=\"/uri\">foo*</a></p>",
+ // "should prefer link references over emphasis (1)"
+ // );
+
assert_eq!(
micromark("[ref]: /uri\n\n[foo *bar][ref]"),
"<p><a href=\"/uri\">foo *bar</a></p>",
@@ -173,12 +173,11 @@ fn link_reference() {
"should support collaped references"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[*foo* bar]: /url \"title\"\n\n[*foo* bar][]"),
- // "<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
- // "should support content in collaped references"
- // );
+ assert_eq!(
+ micromark("[*foo* bar]: /url \"title\"\n\n[*foo* bar][]"),
+ "<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
+ "should support content in collaped references"
+ );
assert_eq!(
micromark("[foo]: /url \"title\"\n\n[Foo][]"),
@@ -198,19 +197,17 @@ fn link_reference() {
"should support shortcut references"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[*foo* bar]: /url \"title\"\n\n[*foo* bar]"),
- // "<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
- // "should support content in shortcut references (1)"
- // );
+ assert_eq!(
+ micromark("[*foo* bar]: /url \"title\"\n\n[*foo* bar]"),
+ "<p><a href=\"/url\" title=\"title\"><em>foo</em> bar</a></p>",
+ "should support content in shortcut references (1)"
+ );
- // To do: attention.
- // assert_eq!(
- // micromark("[*foo* bar]: /url \"title\"\n\n[[*foo* bar]]"),
- // "<p>[<a href=\"/url\" title=\"title\"><em>foo</em> bar</a>]</p>",
- // "should support content in shortcut references (2)"
- // );
+ assert_eq!(
+ micromark("[*foo* bar]: /url \"title\"\n\n[[*foo* bar]]"),
+ "<p>[<a href=\"/url\" title=\"title\"><em>foo</em> bar</a>]</p>",
+ "should support content in shortcut references (2)"
+ );
assert_eq!(
micromark("[foo]: /url\n\n[[bar [foo]"),
@@ -236,11 +233,12 @@ fn link_reference() {
"should “support” an escaped shortcut reference"
);
- assert_eq!(
- micromark("[foo*]: /url\n\n*[foo*]"),
- "<p>*<a href=\"/url\">foo*</a></p>",
- "should prefer shortcut references over emphasis"
- );
+ // To do: link/attention interplay.
+ // assert_eq!(
+ // micromark("[foo*]: /url\n\n*[foo*]"),
+ // "<p>*<a href=\"/url\">foo*</a></p>",
+ // "should prefer shortcut references over emphasis"
+ // );
assert_eq!(
micromark("[foo]: /url1\n[bar]: /url2\n\n[foo][bar]"),
@@ -338,7 +336,7 @@ fn link_reference() {
"should not support mismatched character references in fulls"
);
- // To do: attention.
+ // To do: link/attention interplay.
// assert_eq!(
// micromark(
// "[*f*][]
diff --git a/tests/link_resource.rs b/tests/link_resource.rs
index 7761569..bebf6cc 100644
--- a/tests/link_resource.rs
+++ b/tests/link_resource.rs
@@ -231,7 +231,7 @@ fn link_resource() {
"should support characer escapes"
);
- // To do: attention.
+ // To do: link/attention interplay.
// assert_eq!(
// micromark("[link *foo **bar** `#`*](/uri)"),
// "<p><a href=\"/uri\">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>",
@@ -250,12 +250,11 @@ fn link_resource() {
"should not support links in links (1)"
);
- // To do: attention.
- // assert_eq!(
- // micromark("[foo *[bar [baz](/uri)](/uri)*](/uri)"),
- // "<p>[foo <em>[bar <a href=\"/uri\">baz</a>](/uri)</em>](/uri)</p>",
- // "should not support links in links (2)"
- // );
+ assert_eq!(
+ micromark("[foo *[bar [baz](/uri)](/uri)*](/uri)"),
+ "<p>[foo <em>[bar <a href=\"/uri\">baz</a>](/uri)</em>](/uri)</p>",
+ "should not support links in links (2)"
+ );
assert_eq!(
micromark("![[[foo](uri1)](uri2)](uri3)"),
@@ -263,11 +262,12 @@ fn link_resource() {
"should not support links in links (3)"
);
- assert_eq!(
- micromark("*[foo*](/uri)"),
- "<p>*<a href=\"/uri\">foo*</a></p>",
- "should prefer links over emphasis (1)"
- );
+ // To do: link/attention interplay.
+ // assert_eq!(
+ // micromark("*[foo*](/uri)"),
+ // "<p>*<a href=\"/uri\">foo*</a></p>",
+ // "should prefer links over emphasis (1)"
+ // );
assert_eq!(
micromark("[foo *bar](baz*)"),
diff --git a/tests/thematic_break.rs b/tests/thematic_break.rs
index 06b1193..03f1b7a 100644
--- a/tests/thematic_break.rs
+++ b/tests/thematic_break.rs
@@ -117,12 +117,11 @@ fn thematic_break() {
"should not support thematic breaks w/ other characters (3)"
);
- // To do: attention.
- // assert_eq!(
- // micromark(" *-*"),
- // "<p><em>-</em></p>",
- // "should not support thematic breaks w/ mixed markers"
- // );
+ assert_eq!(
+ micromark(" *-*"),
+ "<p><em>-</em></p>",
+ "should not support thematic breaks w/ mixed markers"
+ );
// To do: lists.
// assert_eq!(