aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 19:20:43 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 19:20:43 +0200
commitb150a72975d6e75b96298b3d405afe070271d78b (patch)
tree8f6bd8f1f527f432715f20b2b8d9d2a272224905 /tests
parentacc35758778bfda5cb01951533868eb8baa2e2d2 (diff)
downloadmarkdown-rs-b150a72975d6e75b96298b3d405afe070271d78b.tar.gz
markdown-rs-b150a72975d6e75b96298b3d405afe070271d78b.tar.bz2
markdown-rs-b150a72975d6e75b96298b3d405afe070271d78b.zip
Add support for text in heading (atx)
Diffstat (limited to '')
-rw-r--r--tests/heading_atx.rs32
1 files changed, 15 insertions, 17 deletions
diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs
index 20da860..67351ec 100644
--- a/tests/heading_atx.rs
+++ b/tests/heading_atx.rs
@@ -148,24 +148,23 @@ fn heading_atx() {
"should not support a closing sequence w/o whitespace before it"
);
- // Phrasing.
- // assert_eq!(
- // micromark("### foo \\###"),
- // "<h3>foo ###</h3>",
- // "should not support an “escaped” closing sequence (1)"
- // );
+ assert_eq!(
+ micromark("### foo \\###"),
+ "<h3>foo ###</h3>",
+ "should not support an “escaped” closing sequence (1)"
+ );
- // assert_eq!(
- // micromark("## foo #\\##"),
- // "<h2>foo ###</h2>",
- // "should not support an “escaped” closing sequence (2)"
- // );
+ assert_eq!(
+ micromark("## foo #\\##"),
+ "<h2>foo ###</h2>",
+ "should not support an “escaped” closing sequence (2)"
+ );
- // assert_eq!(
- // micromark("# foo \\#"),
- // "<h1>foo #</h1>",
- // "should not support an “escaped” closing sequence (3)"
- // );
+ assert_eq!(
+ micromark("# foo \\#"),
+ "<h1>foo #</h1>",
+ "should not support an “escaped” closing sequence (3)"
+ );
assert_eq!(
micromark("****\n## foo\n****"),
@@ -179,7 +178,6 @@ fn heading_atx() {
"should support atx headings interrupting paragraphs"
);
- // Line endings.
assert_eq!(
micromark("## \n#\n### ###"),
"<h2></h2>\n<h1></h1>\n<h3></h3>",