From 60ea2fd3a09f10fa28bf48575736b47afebf3221 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 16 Jun 2022 19:04:16 +0200 Subject: Add heading (setext) --- tests/code_fenced.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/code_fenced.rs') 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"), - // "

foo

\n
bar\n
\n

baz

", - // "should support interrupting other content" - // ); + assert_eq!( + micromark("foo\n---\n~~~\nbar\n~~~\n# baz"), + "

foo

\n
bar\n
\n

baz

", + "should support interrupting other content" + ); assert_eq!( micromark("```ruby\ndef foo(x)\n return 3\nend\n```"), -- cgit