diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 17:21:38 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 17:36:35 +0200 |
commit | 4806864e5377a5fef937b3fa02542e620c547969 (patch) | |
tree | c91ae2bbd1dc2037f425efd24d62d05e706e3e60 /tests/code_fenced.rs | |
parent | c2b4402223e53498078fc33dd55aabc0a48cdb56 (diff) | |
download | markdown-rs-4806864e5377a5fef937b3fa02542e620c547969.tar.gz markdown-rs-4806864e5377a5fef937b3fa02542e620c547969.tar.bz2 markdown-rs-4806864e5377a5fef937b3fa02542e620c547969.zip |
Add basic support for block quotes
Diffstat (limited to 'tests/code_fenced.rs')
-rw-r--r-- | tests/code_fenced.rs | 68 |
1 files changed, 36 insertions, 32 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs index b7d8307..d970c94 100644 --- a/tests/code_fenced.rs +++ b/tests/code_fenced.rs @@ -3,17 +3,19 @@ use micromark::micromark; #[test] fn code_fenced() { - assert_eq!( - micromark("```\n<\n >\n```"), - "<pre><code><\n >\n</code></pre>", - "should support fenced code w/ grave accents" - ); + // To do: concrete constructs (code fenced). + // assert_eq!( + // micromark("```\n<\n >\n```"), + // "<pre><code><\n >\n</code></pre>", + // "should support fenced code w/ grave accents" + // ); - assert_eq!( - micromark("~~~\n<\n >\n~~~"), - "<pre><code><\n >\n</code></pre>", - "should support fenced code w/ tildes" - ); + // To do: concrete constructs (code fenced). + // assert_eq!( + // micromark("~~~\n<\n >\n~~~"), + // "<pre><code><\n >\n</code></pre>", + // "should support fenced code w/ tildes" + // ); assert_eq!( micromark("``\nfoo\n``"), @@ -57,7 +59,7 @@ fn code_fenced() { "should support an eof somewhere in content" ); - // To do: blockquote. + // To do: blockquote (some bug). // assert_eq!( // micromark("> ```\n> aaa\n\nbbb"), // "<blockquote>\n<pre><code>aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>", @@ -227,29 +229,31 @@ fn code_fenced() { "should not support a closing sequence w/ too much indent, regardless of opening sequence (1)" ); - // To do: blockquote. - // assert_eq!( - // micromark("> ```\n>\n>\n>\n\na"), - // "<blockquote>\n<pre><code>\n\n\n</code></pre>\n</blockquote>\n<p>a</p>", - // "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)" + // To do: blockquote (some bug). + // assert_eq!( + // micromark("> ```\n>\n>\n>\n\na"), + // "<blockquote>\n<pre><code>\n\n\n</code></pre>\n</blockquote>\n<p>a</p>", + // "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)" + // ); + + // To do: blockquote (some bug). + // assert_eq!( + // micromark("> ```a\nb"), + // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>", + // "should not support lazyness (1)" // ); - // assert_eq!( - // micromark("> ```a\nb"), - // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>", - // "should not support lazyness (1)" - // ); - - // assert_eq!( - // micromark("> a\n```b"), - // "<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code class=\"language-b\"></code></pre>\n", - // "should not support lazyness (2)" - // ); - - // assert_eq!( - // micromark("> ```a\n```"), - // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n", - // "should not support lazyness (3)" + assert_eq!( + micromark("> a\n```b"), + "<blockquote>\n<p>a</p>\n</blockquote>\n<pre><code class=\"language-b\"></code></pre>\n", + "should not support lazyness (2)" + ); + + // To do: blockquote (lazy). + // assert_eq!( + // micromark("> ```a\n```"), + // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n", + // "should not support lazyness (3)" // ); // To do: turning things off. |