aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hard_break_trailing.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-04 12:16:51 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-04 12:16:58 +0200
commitfaca28020f4894bdfcf5a4b164ebbc75864d8776 (patch)
tree93377413ae8c355e2d804f7e700241693b228e70 /tests/hard_break_trailing.rs
parente1cae8c705e66669d043f5269e9f58c09c7b0eaa (diff)
downloadmarkdown-rs-faca28020f4894bdfcf5a4b164ebbc75864d8776.tar.gz
markdown-rs-faca28020f4894bdfcf5a4b164ebbc75864d8776.tar.bz2
markdown-rs-faca28020f4894bdfcf5a4b164ebbc75864d8776.zip
Add support for attention (emphasis, strong)
Diffstat (limited to 'tests/hard_break_trailing.rs')
-rw-r--r--tests/hard_break_trailing.rs77
1 files changed, 35 insertions, 42 deletions
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!(