diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-09 13:01:36 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-09 13:01:36 +0200 |
commit | 10355a403f57c93a074716c785d588c76de5634c (patch) | |
tree | 46408a8a1198c1bb632f22964a347c01023867bc /tests/code_indented.rs | |
parent | 433680ae0914da8921c4ee762fdc93e7b70cf9f1 (diff) | |
download | markdown-rs-10355a403f57c93a074716c785d588c76de5634c.tar.gz markdown-rs-10355a403f57c93a074716c785d588c76de5634c.tar.bz2 markdown-rs-10355a403f57c93a074716c785d588c76de5634c.zip |
Add support for indented lines in paragraphs
Diffstat (limited to 'tests/code_indented.rs')
-rw-r--r-- | tests/code_indented.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/code_indented.rs b/tests/code_indented.rs index f5926c0..80dae4b 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -40,19 +40,18 @@ fn code_indented() { "should support blank lines in indented code (3)" ); - // To do: paragraphs. + // To do: strip whitespace. // assert_eq!( // micromark("Foo\n bar"), // "<p>Foo\nbar</p>", // "should not support interrupting paragraphs" // ); - // To do: paragraphs. - // assert_eq!( - // micromark(" foo\nbar"), - // "<pre><code>foo\n</code></pre>\n<p>bar</p>", - // "should support paragraphs directly after indented code" - // ); + assert_eq!( + micromark(" foo\nbar"), + "<pre><code>foo\n</code></pre>\n<p>bar</p>", + "should support paragraphs directly after indented code" + ); // To do: setext. // assert_eq!( |