aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 15:10:54 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 15:10:54 +0200
commit187d51acc953720d79f40e82aabe90ea5d58a8a3 (patch)
tree46ec628f50f96760621216b924908376cc8b6b48 /tests
parentfec46e918e5bdf4a9137041298ab1475d2f43202 (diff)
downloadmarkdown-rs-187d51acc953720d79f40e82aabe90ea5d58a8a3.tar.gz
markdown-rs-187d51acc953720d79f40e82aabe90ea5d58a8a3.tar.bz2
markdown-rs-187d51acc953720d79f40e82aabe90ea5d58a8a3.zip
Fix misnested attention
Diffstat (limited to '')
-rw-r--r--tests/attention.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/attention.rs b/tests/attention.rs
index 789d860..747bf08 100644
--- a/tests/attention.rs
+++ b/tests/attention.rs
@@ -725,19 +725,17 @@ fn attention() {
);
// Rule 15.
- // To do: interleaving attention.
- // assert_eq!(
- // micromark("*foo _bar* baz_"),
- // "<p><em>foo _bar</em> baz_</p>",
- // "should not support mismatched emphasis"
- // );
+ assert_eq!(
+ micromark("*foo _bar* baz_"),
+ "<p><em>foo _bar</em> baz_</p>",
+ "should not support mismatched emphasis"
+ );
- // To do: interleaving attention.
- // assert_eq!(
- // micromark("*foo __bar *baz bim__ bam*"),
- // "<p><em>foo <strong>bar *baz bim</strong> bam</em></p>",
- // "should not support mismatched strong emphasis"
- // );
+ assert_eq!(
+ micromark("*foo __bar *baz bim__ bam*"),
+ "<p><em>foo <strong>bar *baz bim</strong> bam</em></p>",
+ "should not support mismatched strong emphasis"
+ );
// Rule 16.
assert_eq!(