aboutsummaryrefslogtreecommitdiffstats
path: root/tests/heading_setext.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/heading_setext.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/heading_setext.rs')
-rw-r--r--tests/heading_setext.rs44
1 files changed, 20 insertions, 24 deletions
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-------------------------"),