aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_fenced.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-16 19:04:16 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-16 19:04:16 +0200
commit60ea2fd3a09f10fa28bf48575736b47afebf3221 (patch)
treef7aae5cec9181f7ff5df23e648fe1da22a94209f /tests/code_fenced.rs
parentef14d6581848ba5052d3389bb61fc96645551eef (diff)
downloadmarkdown-rs-60ea2fd3a09f10fa28bf48575736b47afebf3221.tar.gz
markdown-rs-60ea2fd3a09f10fa28bf48575736b47afebf3221.tar.bz2
markdown-rs-60ea2fd3a09f10fa28bf48575736b47afebf3221.zip
Add heading (setext)
Diffstat (limited to 'tests/code_fenced.rs')
-rw-r--r--tests/code_fenced.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index 82ac088..0e19637 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -136,12 +136,11 @@ fn code_fenced() {
"should support interrupting paragraphs"
);
- // To do: setext.
- // assert_eq!(
- // micromark("foo\n---\n~~~\nbar\n~~~\n# baz"),
- // "<h2>foo</h2>\n<pre><code>bar\n</code></pre>\n<h1>baz</h1>",
- // "should support interrupting other content"
- // );
+ assert_eq!(
+ micromark("foo\n---\n~~~\nbar\n~~~\n# baz"),
+ "<h2>foo</h2>\n<pre><code>bar\n</code></pre>\n<h1>baz</h1>",
+ "should support interrupting other content"
+ );
assert_eq!(
micromark("```ruby\ndef foo(x)\n return 3\nend\n```"),