// This file is auto-generated by the build script
// Please, do not modify it manually

use super::test_markdown_html;

#[test]
fn regression_test_1() {
    let original = r##"<details><summary>Testing 1..2..3..</summary>

This is a test of the details element.

</details>
"##;
    let expected = r##"<details><summary>Testing 1..2..3..</summary>
<p>This is a test of the details element.</p>
</details>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_2() {
    let original = r##"see the [many] [articles] [on] [QuickCheck].

[many]: https://medium.com/@jlouis666/quickcheck-advice-c357efb4e7e6
[articles]: http://www.quviq.com/products/erlang-quickcheck/
[on]: https://wiki.haskell.org/Introduction_to_QuickCheck1
[QuickCheck]: https://hackage.haskell.org/package/QuickCheck
"##;
    let expected = r##"<p>see the <a href="https://medium.com/@jlouis666/quickcheck-advice-c357efb4e7e6">many</a> <a href="http://www.quviq.com/products/erlang-quickcheck/">articles</a> <a href="https://wiki.haskell.org/Introduction_to_QuickCheck1">on</a> <a href="https://hackage.haskell.org/package/QuickCheck">QuickCheck</a>.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_3() {
    let original = r##"[![debug-stub-derive on crates.io][cratesio-image]][cratesio]
[![debug-stub-derive on docs.rs][docsrs-image]][docsrs]

[cratesio-image]: https://img.shields.io/crates/v/debug_stub_derive.svg
[cratesio]: https://crates.io/crates/debug_stub_derive
[docsrs-image]: https://docs.rs/debug_stub_derive/badge.svg?version=0.3.0
[docsrs]: https://docs.rs/debug_stub_derive/0.3.0/
"##;
    let expected = r##"<p><a href="https://crates.io/crates/debug_stub_derive"><img src="https://img.shields.io/crates/v/debug_stub_derive.svg" alt="debug-stub-derive on crates.io" /></a>
<a href="https://docs.rs/debug_stub_derive/0.3.0/"><img src="https://docs.rs/debug_stub_derive/badge.svg?version=0.3.0" alt="debug-stub-derive on docs.rs" /></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_4() {
    let original = r##"|  Title A  |  Title B  |
| --------- | --------- |
| Content   | Content   |

|  Title A  |  Title B  |  Title C  |  Title D  |
| --------- | --------- | --------- | ---------:|
| Content   | Content   | Conent    | Content   |
"##;
    let expected = r##"<table><thead><tr><th>Title A</th><th>Title B</th></tr></thead><tbody>
<tr><td>Content</td><td>Content</td></tr>
</tbody></table>
<table><thead><tr><th>Title A</th><th>Title B</th><th>Title C</th><th style="text-align: right">Title D</th></tr></thead><tbody>
<tr><td>Content</td><td>Content</td><td>Conent</td><td style="text-align: right">Content</td></tr>
</tbody></table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_5() {
    let original = r##"foo§__(bar)__
"##;
    let expected = r##"<p>foo§<strong>(bar)</strong></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_6() {
    let original = r##"<https://example.com> hello
"##;
    let expected = r##"<p><a href="https://example.com">https://example.com</a> hello</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_7() {
    let original = r##"[foo][bar]

<!-- foo -->
[bar]: a
"##;
    let expected = r##"<p><a href="a">foo</a></p>
<!-- foo -->
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_8() {
    let original = r##"<!-- <dl> -->
- **foo** (u8, u8)

  make something

- **bar** (u16, u16)

  make something
"##;
    let expected = r##"<!-- <dl> -->
<ul>
<li>
<p><strong>foo</strong> (u8, u8)</p>
<p>make something</p>
</li>
<li>
<p><strong>bar</strong> (u16, u16)</p>
<p>make something</p>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_9() {
    let original = r##"[`
i8
`](
../../../std/primitive.i8.html
)
"##;
    let expected = r##"<p><a href="../../../std/primitive.i8.html"><code>i8</code></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_10() {
    let original = r##"[a]

[a]: /url (title\\*)
"##;
    let expected = r##"<p><a href="/url" title="title\*">a</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_11() {
    let original = r##"[a]

[a]: /url (title\))
"##;
    let expected = r##"<p><a href="/url" title="title)">a</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_12() {
    let original = r##"[a]

[a]: /url (title))
"##;
    let expected = r##"<p>[a]</p>
<p>[a]: /url (title))</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_13() {
    let original = r##"a <?php this is not a valid processing tag
---
b <?php but this is ?>
"##;
    let expected = r##"<h2>a &lt;?php this is not a valid processing tag</h2>
<p>b <?php but this is ?></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_14() {
    let original = r##"[a]: u\
foo
"##;
    let expected = r##"<p>foo</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_15() {
    let original = r##"\`foo`
"##;
    let expected = r##"<p>`foo`</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_16() {
    let original = r##"foo\\
bar
"##;
    let expected = r##"<p>foo\
bar</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_17() {
    let original = r##"1\. foo

1\) bar
"##;
    let expected = r##"<p>1. foo</p>
<p>1) bar</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_18() {
    let original = r##"1...

1.2.3.

1 2 3 .

1.|2.-3.

1)2)3)
"##;
    let expected = r##"<p>1...</p>
<p>1.2.3.</p>
<p>1 2 3 .</p>
<p>1.|2.-3.</p>
<p>1)2)3)</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_19() {
    let original = r##"[](<<>)
"##;
    let expected = r##"<p>[](&lt;&lt;&gt;)</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_20() {
    let original = r##"\``foo``bar`
"##;
    let expected = r##"<p>`<code>foo``bar</code></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_21() {
    let original = r##"\\`foo`
"##;
    let expected = r##"<p>\<code>foo</code></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_22() {
    let original = r##"[\\]: x

YOLO
"##;
    let expected = r##"<p>YOLO</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_23() {
    let original = r##"lorem ipsum
A | B
---|---
foo | bar
"##;
    let expected = r##"<p>lorem ipsum
A | B
---|---
foo | bar</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_24() {
    let original = r##"foo|bar  
---|---
foo|bar
"##;
    let expected = r##"<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>foo</td><td>bar</td></tr></tbody>
</table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_25() {
    let original = r##"foo|bar\\
---|---
foo|bar
"##;
    let expected = r##"<table><thead><tr><th>foo</th><th>bar\</th></tr></thead>
<tbody><tr><td>foo</td><td>bar</td></tr></tbody>
</table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_26() {
    let original = r##"[<foo>](url)
"##;
    let expected = r##"<p><a href="url"><foo></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_27() {
    let original = r##"[<foo>bar</foo>](url)
"##;
    let expected = r##"<p><a href="url"><foo>bar</foo></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_28() {
    let original = r##"![<http://example.com>](http://example.com/logo.png)
"##;
    let expected = r##"<p><img src="http://example.com/logo.png" alt="http://example.com" /></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_29() {
    let original = r##"[<http://one> <http://two>](url)
"##;
    let expected = r##"<p><a href="url"><a href="http://one">http://one</a> <a href="http://two">http://two</a></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_30() {
    let original = r##"Markdown | Less | Pretty
--- | --- | ---
 
some text
"##;
    let expected = r##"<table><thead><tr><th>Markdown</th><th>Less</th><th>Pretty</th></tr></thead><tbody>
</tbody></table>
<p>some text</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_31() {
    let original = r##"1. > foo
2. >
"##;
    let expected = r##"<ol>
<li>
<blockquote>
<p>foo</p>
</blockquote>
</li>
<li>
<blockquote>
</blockquote>
</li>
</ol>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_32() {
    let original = r##"[
x

]: f
"##;
    let expected = r##"<p>[
x</p>
<p>]: f</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_33() {
    let original = r##"[foo]:
"##;
    let expected = r##"<p>[foo]:</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_34() {
    let original = r##"> [foo
> bar]: /url
>
> [foo bar]
"##;
    let expected = r##"<blockquote>
<p><a href="/url">foo bar</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_35() {
    let original = r##"> foo | bar
> --- | ---
yolo | swag
"##;
    let expected = r##"<blockquote>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead><tbody></tbody></table>
</blockquote>
<p>yolo | swag</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_36() {
    let original = r##"<foo bar>
"##;
    let expected = r##"<foo bar>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_37() {
    let original = r##"<foo bar =
 "hi"> 
"##;
    let expected = r##"<p><foo bar =
 "hi"></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_38() {
    let original = r##"~~*_**__

__a__
"##;
    let expected = r##"<p>~~*_**__</p>
<p><strong>a</strong></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_39() {
    let original = r##"> `
> `
"##;
    let expected = r##"<blockquote>
<p><code> </code></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_40() {
    let original = r##"`\|`
"##;
    let expected = r##"<p><code>\|</code></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_41() {
    let original = r##"Paragraph 1
    
Paragraph 2
"##;
    let expected = r##"<p>Paragraph 1</p>
<p>Paragraph 2</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_42() {
    let original = r##"\[[link text](https://www.google.com/)\]
"##;
    let expected = r##"<p>[<a href="https://www.google.com/">link text</a>]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_43() {
    let original = r##"foo | bar
--- | ---
[a](< | url>)
"##;
    let expected = r##"<table><thead><tr><th>foo</th><th>bar</th></tr></thead><tbody><tr><td>[a](&lt;</td><td>url&gt;)</td></tr></tbody></table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_44() {
    let original = r##"[a](url "
- - -
")
"##;
    let expected = r##"<p>[a](url "</p>
<hr>
<p>")</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_45() {
    let original = r##"[a](url

)
"##;
    let expected = r##"<p>[a](url</p>
<p>)</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_46() {
    let original = r##"[a](b "

")
"##;
    let expected = r##"<p>[a](b "</p>
<p>")</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_47() {
    let original = r##"<http:// >
"##;
    let expected = r##"<p>&lt;http:// &gt;</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_48() {
    let original = r##"<http://>
"##;
    let expected = r##"<p>&lt;http://&gt;</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_49() {
    let original = r##"foo | bar
--- | ---
<http://| baz
"##;
    let expected = r##"<table>
<thead>
<tr><th>foo</th><th>bar</th></tr>
</thead>
<tbody>
<tr><td>&lt;http://</td><td>baz</td></tr>
</tbody>
</table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_50() {
    let original = r##"foo | bar
--- | ---
<http://|>
"##;
    let expected = r##"<table>
<thead>
<tr><th>foo</th><th>bar</th></tr>
</thead>
<tbody>
<tr><td>&lt;http://</td><td>&gt;</td></tr>
</tbody>
</table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_51() {
    let original = r##"<sup>\*hi</sup>\_
"##;
    let expected = r##"<p><sup>*hi</sup>_</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_52() {
    let original = r##"email: <john@example.com>\_
"##;
    let expected = r##"<p>email: <a href="mailto:john@example.com">john@example.com</a>_</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_53() {
    let original = r##"> [link](/url 'foo
> bar')
"##;
    let expected = r##"<blockquote>
<p><a href="/url" title="foo
bar">link</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_54() {
    let original = r##"> [foo
> bar]: /url
>
> [foo bar]
"##;
    let expected = r##"<blockquote>
<p><a href="/url">foo bar</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_55() {
    let original = r##"> [foo   bar]: /url
>
> [foo
> bar]
"##;
    let expected = r##"<blockquote>
<p><a href="/url">foo
bar</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_56() {
    let original = r##"> - [a
> b c]: /foo

[a b c]
"##;
    let expected = r##"<blockquote>
<ul>
<li></li>
</ul>
</blockquote>
<p><a href="/foo">a b c</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_57() {
    let original = r##"[a
> b]: /foo

[a b] [a > b]
"##;
    let expected = r##"<p>[a</p>
<blockquote>
<p>b]: /foo</p>
</blockquote>
<p>[a b] [a &gt; b]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_58() {
    let original = r##"[`cargo
package`]

[`cargo package`]: https://example.com
"##;
    let expected = r##"<p><a href="https://example.com"><code>cargo package</code></a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_59() {
    let original = r##"> [`cargo
> package`]

[`cargo package`]: https://example.com
"##;
    let expected = r##"<blockquote>
<p><a href="https://example.com"><code>cargo package</code></a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_60() {
    let original = r##"> `cargo
> package`
"##;
    let expected = r##"<blockquote>
<p><code>cargo package</code></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_61() {
    let original = r##"> Note: Though you should not rely on this, all pointers to <abbr
> title="Dynamically Sized Types">DSTs</abbr> are currently twice the size of
> the size of `usize` and have the same alignment.
"##;
    let expected = r##"<blockquote>
<p>Note: Though you should not rely on this, all pointers to <abbr
title="Dynamically Sized Types">DSTs</abbr> are currently twice the size of
the size of <code>usize</code> and have the same alignment.</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_62() {
    let original = r##"Lorem ipsum.[^a]

An unordered list before the footnotes:
* Ipsum
* Lorem

[^a]: Cool.
"##;
    let expected = r##"<p>Lorem ipsum.<sup class="footnote-reference"><a href="#a">1</a></sup></p>
<p>An unordered list before the footnotes:</p>
<ul>
<li>Ipsum</li>
<li>Lorem</li>
</ul>
<div class="footnote-definition" id="a"><sup class="footnote-definition-label">1</sup>
<p>Cool.</p>
</div>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_63() {
    let original = r##"[][a]

[a]: b

# assimp-rs [![][crates-badge]][crates]

[crates]: https://crates.io/crates/assimp
[crates-badge]: http://meritbadge.herokuapp.com/assimp
"##;
    let expected = r##"<p><a href="b"></a></p>
<h1>assimp-rs <a href="https://crates.io/crates/assimp"><img src="http://meritbadge.herokuapp.com/assimp" alt="" /></a></h1>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_64() {
    let original = r##"* A list.

   * A sublist.

   * Another sublist.


* A list.
 
   * A sublist.
 
   * Another sublist.
 
"##;
    let expected = r##"<ul>
<li>
<p>A list.</p>
<ul>
<li>
<p>A sublist.</p>
</li>
<li>
<p>Another sublist.</p>
</li>
</ul>
</li>
<li>
<p>A list.</p>
<ul>
<li>
<p>A sublist.</p>
</li>
<li>
<p>Another sublist.</p>
</li>
</ul>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_65() {
    let original = r##"<foo
"##;
    let expected = r##"<p>&lt;foo</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_66() {
    let original = r##"> > a <a href
> > ="yo
> > lo">
"##;
    let expected = r##"<blockquote>
<blockquote>
<p>a <a href
="yo
lo"></p>
</blockquote>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_67() {
    let original = r##"	-	the whitespace here are tabs
"##;
    let expected = r##"<pre><code>-	the whitespace here are tabs
</code></pre>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_68() {
    let original = r##"1. a
   1. a

a
2. a
"##;
    let expected = r##"<ol>
<li>a
<ol>
<li>a</li>
</ol>
</li>
</ol>
<p>a
2. a</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_69() {
    let original = r##"1. a
2. a
   2. a
"##;
    let expected = r##"<ol>
<li>a</li>
<li>a
2. a</li>
</ol>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_70() {
    let original = r##"* [ ] foo

* [ ] bar

baz
"##;
    let expected = r##"<ul>
<li><p><input disabled="" type="checkbox"/>
foo</p></li><li><p><input disabled="" type="checkbox"/>
bar</p></li>
</ul>
<p>baz</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_71() {
    let original = r##"* foo
    + bar
    + baz
"##;
    let expected = r##"<ul>
<li>foo
<ul>
<li>bar</li>
<li>baz</li>
</ul>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_72() {
    let original = r##"[`]: xx:

[`]`]
"##;
    let expected = r##"<p>[<code>]</code>]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_73() {
    let original = r##"~~foo~~bar
"##;
    let expected = r##"<p><del>foo</del>bar</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_74() {
    let original = r##"foo~~bar~~
"##;
    let expected = r##"<p>foo<del>bar</del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_75() {
    let original = r##"*~~__emphasis strike strong__~~* ~~*__strike emphasis strong__*~~
"##;
    let expected = r##"<p><em><del><strong>emphasis strike strong</strong></del></em> <del><em><strong>strike emphasis strong</strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_76() {
    let original = r##"*~~__emphasis strike strong__~~* ~~*__`strike emphasis strong code`__*~~
"##;
    let expected = r##"<p><em><del><strong>emphasis strike strong</strong></del></em> <del><em><strong><code>strike emphasis strong code</code></strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_77() {
    let original = r##"*~~`emphasis strike code`~~* ~~*__strike emphasis strong__*~~
"##;
    let expected = r##"<p><em><del><code>emphasis strike code</code></del></em> <del><em><strong>strike emphasis strong</strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_78() {
    let original = r##"*~~`emphasis strike code`~~* ~~*__`strike emphasis strong code`__*~~
"##;
    let expected = r##"<p><em><del><code>emphasis strike code</code></del></em> <del><em><strong><code>strike emphasis strong code</code></strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_79() {
    let original = r##"**~~_strong strike emphasis_~~** ~~*__strike emphasis strong__*~~
"##;
    let expected = r##"<p><strong><del><em>strong strike emphasis</em></del></strong> <del><em><strong>strike emphasis strong</strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_80() {
    let original = r##"**~~_strong strike emphasis_~~** ~~*__`strike emphasis strong code`__*~~
"##;
    let expected = r##"<p><strong><del><em>strong strike emphasis</em></del></strong> <del><em><strong><code>strike emphasis strong code</code></strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_81() {
    let original = r##"**~~`strong strike code`~~** ~~*__strike emphasis strong__*~~
"##;
    let expected = r##"<p><strong><del><code>strong strike code</code></del></strong> <del><em><strong>strike emphasis strong</strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_82() {
    let original = r##"**~~`strong strike code`~~** ~~*__`strike emphasis strong code`__*~~
"##;
    let expected = r##"<p><strong><del><code>strong strike code</code></del></strong> <del><em><strong><code>strike emphasis strong code</code></strong></em></del></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_83() {
    let original = r##"  | foo | bar  |
  |-----|------|
  | baz | alef |

  | foo | bar  |
  |-----|------|
| baz | alef |

  | foo | bar  |
|-----|------|
  | baz | alef |

| foo | bar  |
  |-----|------|
  | baz | alef |

  | foo | bar  |
|-----|------|
| baz | alef |

| foo | bar  |
|-----|------|
  | baz | alef |

| foo | bar  |
|-----|------|
| baz | alef |

| foo | bar  |
  |-----|------|
| baz | alef |

    | foo | bar  |
    |-----|------|
    | baz | alef |

| foo | bar  |
    |-----|------|
| baz | alef |

	| foo | bar  |
	|-----|------|
	| baz | alef |

| foo | bar  |
	|-----|------|
| baz | alef |
"##;
    let expected = r##"<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<table><thead><tr><th>foo</th><th>bar</th></tr></thead>
<tbody><tr><td>baz</td><td>alef</td></tr></tbody>
</table>
<pre><code>| foo | bar  |
|-----|------|
| baz | alef |
</code></pre>
<p>| foo | bar  |
|-----|------|
| baz | alef |</p>
<pre><code>| foo | bar  |
|-----|------|
| baz | alef |
</code></pre>
<p>| foo | bar  |
|-----|------|
| baz | alef |</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_84() {
    let original = r##"### ###
"##;
    let expected = r##"<h3></h3>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_85() {
    let original = r##"### 
"##;
    let expected = r##"<h3></h3>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_86() {
    let original = r##"<!doctype html>
"##;
    let expected = r##"<!doctype html>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_87() {
    let original = r##"| A | table    |
| ------ | ---- |
| not   |  in  |
| a     | list|

* A blockquote:
  > inside a list item
* A Heading:
  # inside a list item
* A table:

  | inside | a       |
  | ------ | ------- |
  | list   | item    |
  | with   | leading |
  | empty  | lines   |
* A table:
  | inside  | a       |
  | ------- | ------- |
  | list    | item    |
  | without | leading |
  | empty   | lines   |
"##;
    let expected = r##"<table><thead><tr><th>A</th><th>table</th></tr></thead><tbody>
<tr><td>not</td><td>in</td></tr>
<tr><td>a</td><td>list</td></tr>
</tbody></table>
<ul>
<li>
<p>A blockquote:</p>
<blockquote>
<p>inside a list item</p>
</blockquote>
</li>
<li>
<p>A Heading:</p>
<h1>inside a list item</h1>
</li>
<li>
<p>A table:</p>
<table><thead><tr><th>inside</th><th>a</th></tr></thead><tbody>
<tr><td>list</td><td>item</td></tr>
<tr><td>with</td><td>leading</td></tr>
<tr><td>empty</td><td>lines</td></tr>
</tbody></table>
</li>
<li>
<p>A table:</p>
<table><thead><tr><th>inside</th><th>a</th></tr></thead><tbody>
<tr><td>list</td><td>item</td></tr>
<tr><td>without</td><td>leading</td></tr>
<tr><td>empty</td><td>lines</td></tr>
</tbody></table>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_88() {
    let original = r##"a\

b
"##;
    let expected = r##"<p>a\</p>
<p>b</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_89() {
    let original = r##"a\
* b
"##;
    let expected = r##"<p>a\</p>
<ul>
<li>b</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_90() {
    let original = r##"a\
> b
"##;
    let expected = r##"<p>a\</p>
<blockquote>
<p>b</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_91() {
    let original = r##"a\
# b
"##;
    let expected = r##"<p>a\</p>
<h1>b</h1>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_92() {
    let original = r##"a\
==
"##;
    let expected = r##"<h1>a\</h1>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_93() {
    let original = r##"> a\
>
"##;
    let expected = r##"<blockquote>
<p>a\</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_94() {
    let original = r##"<a
>
"##;
    let expected = r##"<p>&lt;a</p>
<blockquote></blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_95() {
    let original = r##"<div
>
"##;
    let expected = r##"<div
>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_96() {
    let original = r##"<a
> quote
"##;
    let expected = r##"<p>&lt;a</p>
<blockquote><p>quote</p></blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_97() {
    let original = r##"<div
> not quote
"##;
    let expected = r##"<div
> not quote
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_98() {
    let original = r##"<a
>quote
"##;
    let expected = r##"<p>&lt;a</p>
<blockquote><p>quote</p></blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_99() {
    let original = r##"<div
>not quote
"##;
    let expected = r##"<div
>not quote
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_100() {
    let original = r##"> alpha
> | a | b |
> |---|---|
> | c | d |
"##;
    let expected = r##"<blockquote>
<p>alpha</p>
<table>
<thead><tr><th>a</th><th>b</th></tr></thead><tbody>
<tr><td>c</td><td>d</td></tr>
</tbody></table>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_101() {
    let original = r##"***R]*-*
"##;
    let expected = r##"<p>*<em><em>R]</em>-</em></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_102() {
    let original = r##"****foo*bar*baz****
"##;
    let expected = r##"<p><strong><em><em>foo</em>bar</em>baz</strong>**</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_103() {
    let original = r##";
*
%
"##;
    let expected = r##"<p>;
*
%</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_104() {
    let original = r##";
* 
%
"##;
    let expected = r##"<p>;
*
%</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_105() {
    let original = r##"<@1>
"##;
    let expected = r##"<p>&lt;@1&gt;</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_106() {
    let original = r##"---
anything:
    indented4Spaces: true
---
Things
"##;
    let expected = r##"<p>Things</p>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_107() {
    let original = r##"---
something:
  nested:
    twice: true
---
Things
"##;
    let expected = r##"<p>Things</p>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_108() {
    let original = r##"---
lists:
    - indented 4 spaces
---
Things
"##;
    let expected = r##"<p>Things</p>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_109() {
    let original = r##"-

-


-



-
"##;
    let expected = r##"<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_110() {
    let original = r##"-

  -  .
"##;
    let expected = r##"<ul>
<li></li>
<li><p>.</p></li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_111() {
    let original = r##"j***5*=*
"##;
    let expected = r##"<p>j*<em><em>5</em>=</em></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_112() {
    let original = r##"Not enough table

|
|

Not enough table

|x
|

Not enough table

|
|-

Table

|x
|-

Not enough table
| col1 | col2 |
|      | ---- |

Not enough table
| col1 | col2 |
| :    | ---- |

Table
| col1 | col2 |
| ---- | ---- |
"##;
    let expected = r##"<p>Not enough table</p>
<p>|
|</p>
<p>Not enough table</p>
<p>|x
|</p>
<p>Not enough table</p>
<p>|
|-</p>
<p>Table</p>
<table>
<thead><tr><th>x</th></tr></thead>
<tbody>
</tbody>
</table>
<p>Not enough table
| col1 | col2 |
|      | ---- |</p>
<p>Not enough table
| col1 | col2 |
| :    | ---- |</p>
<p>Table</p>
<table>
<thead><tr><th>col1</th><th>col2</th></tr></thead>
<tbody>
</tbody>
</table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_113() {
    let original = r##"[x] is not a valid link definition, because parens aren't balanced.

[x]: (
"##;
    let expected = r##"<p>[x] is not a valid link definition, because parens aren't balanced.</p>
<p>[x]: (</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_114() {
    let original = r##"Both of these two paragraphs are structurally the same, but the first one has
an unmatched asterisk.

_*_
*{*{

_x_
*{*{
"##;
    let expected = r##"<p>Both of these two paragraphs are structurally the same, but the first one has
an unmatched asterisk.</p>
<p><em>*</em>
<em>{</em>{</p>
<p><em>x</em>
<em>{</em>{</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_115() {
    let original = r##"**a.*.**a*.**.
"##;
    let expected = r##"<p>*<em>a.*.<em><em>a</em>.</em></em>.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_116() {
    let original = r##"_*__*_*

_*xx*_*

_*__-_-

_*xx-_-
"##;
    let expected = r##"<p><em><em>__</em></em>*</p>
<p><em><em>xx</em></em>*</p>
<p><em>*__-</em>-</p>
<p><em>*xx-</em>-</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_117() {
    let original = r##"-

	-


- x

	-
"##;
    let expected = r##"<ul>
<li></li>
</ul>
<pre><code>-
</code></pre>
<ul>
<li>
<p>x</p>
<ul>
<li></li>
</ul>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_118() {
    let original = r##"-

    -


- x

    -
"##;
    let expected = r##"<ul>
<li></li>
</ul>
<pre><code>-
</code></pre>
<ul>
<li>
<p>x</p>
<ul>
<li></li>
</ul>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_119() {
    let original = r##"[x\

]: https://rust-lang.org
"##;
    let expected = r##"<p>[x\</p>
<p>]: https://rust-lang.org</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_120() {
    let original = r##">>**#*
>
>**#*

**#*

|**#*|
|----|
|**#*|
|**#*
**#*|
**#*
"##;
    let expected = r##"<blockquote>
<blockquote>
<p>*<em>#</em></p>
</blockquote>
<p>*<em>#</em></p>
</blockquote>
<p>*<em>#</em></p>
<table><thead><tr><th>*<em>#</em></th></tr></thead><tbody>
<tr><td>*<em>#</em></td></tr>
<tr><td>*<em>#</em></td></tr>
<tr><td>*<em>#</em></td></tr>
<tr><td>*<em>#</em></td></tr>
</tbody></table>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_121() {
    let original = r##"The second hyphen should parse the same way in both samples.

 - >*

   -

The second hyphen should parse the same way in both samples.

 - >x

   -
"##;
    let expected = r##"<p>The second hyphen should parse the same way in both samples.</p>
<ul>
<li>
<blockquote>
<ul>
<li></li>
</ul>
</blockquote>
<ul>
<li></li>
</ul>
</li>
</ul>
<p>The second hyphen should parse the same way in both samples.</p>
<ul>
<li>
<blockquote>
<p>x</p>
</blockquote>
<ul>
<li></li>
</ul>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_122() {
    let original = r##"> Rewriting it in [Rust] is usually a bad idea.
>
> [Rust]:
https://rust-lang.org
"##;
    let expected = r##"<blockquote>
<p>Rewriting it in <a href="https://rust-lang.org">Rust</a> is usually a bad idea.</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_123() {
    let original = r##"[First try
----------
Second try]: https://rust-lang.org
"##;
    let expected = r##"<h2>[First try</h2>
<p>Second try]: https://rust-lang.org</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_124() {
    let original = r##"[^foo][]

[^foo][baz]

[baz][^foo]

[^foo]: bar

[baz]: https://rust-lang.org
"##;
    let expected = r##"<p><sup class="footnote-reference"><a href="#foo">1</a></sup>[]</p>
<p><a href="https://rust-lang.org">^foo</a></p>
<p><a href="https://rust-lang.org">baz</a><sup class="footnote-reference"><a href="#foo">1</a></sup></p>
<div class="footnote-definition" id="foo"><sup class="footnote-definition-label">1</sup>
<p>bar</p>
</div>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_125() {
    let original = r##"# foo \
bar \
"##;
    let expected = r##"<h1>foo \</h1>
<p>bar \</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_126() {
    let original = r##"[third try]:
-

[third try]
"##;
    let expected = r##"<h2>[third try]:</h2>
<p>[third try]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_127() {
    let original = r##"- [foo]: test
bar

> [bar]: test
[baz]: rstr
[bar]
"##;
    let expected = r##"<ul>
<li>bar</li>
</ul>
<blockquote>
<p><a href="test">bar</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_128() {
    let original = r##"> - [foo]: test
> bar
> 
> > [bar]: test
> [baz]: rstr
> [bar]
"##;
    let expected = r##"<blockquote>
<ul>
<li>bar</li>
</ul>
<blockquote>
<p><a href="test">bar</a></p>
</blockquote>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_129() {
    let original = r##"[bar]: test
-
"##;
    let expected = r##"<p>-</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_130() {
    let original = r##"[link](
foo)

> [link](
> foo)
"##;
    let expected = r##"<p><a href="foo">link</a></p>
<blockquote>
<p><a href="foo">link</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_131() {
    let original = r##"[link](foo
)

> [link](foo
> )
"##;
    let expected = r##"<p><a href="foo">link</a></p>
<blockquote>
<p><a href="foo">link</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_132() {
    let original = r##"[link](foo
"bar"
)

> [link](foo
> "bar"
> )
"##;
    let expected = r##"<p><a href="foo" title="bar">link</a></p>
<blockquote>
<p><a href="foo" title="bar">link</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_133() {
    let original = r##"[link](	
	foo	
	"bar"	
	)

> [link](	
> 	foo	
> 	"bar"	
> 	)
"##;
    let expected = r##"<p><a href="foo" title="bar">link</a></p>
<blockquote>
<p><a href="foo" title="bar">link</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_134() {
    let original = r##"[linkme]: foo
    - baz
"##;
    let expected = r##"<p>- baz</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_135() {
    let original = r##"[linkme-3]:
   [^foo]:

[linkme-4]:
    [^bar]:

GFM footnotes can interrupt link defs if they have three spaces, but not four.
"##;
    let expected = r##"<p>[linkme-3]:</p>
<div class="footnote-definition" id="foo"><sup class="footnote-definition-label">1</sup></div>
<p>GFM footnotes can interrupt link defs if they have three spaces, but not four.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_136() {
    let original = r##"[linkme-3]:
   ===

[linkme-4]:
    ===

Setext heading can interrupt link def if it has three spaces, but not four.
"##;
    let expected = r##"<h1>[linkme-3]:</h1>
<p>Setext heading can interrupt link def if it has three spaces, but not four.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_137() {
    let original = r##"[linkme-3]: a
   - a

[linkme-4]: a
    - b

List can interrupt the paragraph at the start of a link definition if it starts with three spaces, but not four.
"##;
    let expected = r##"<ul>
<li>a</li>
</ul>
<p>- b</p>
<p>List can interrupt the paragraph at the start of a link definition if it starts with three spaces, but not four.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_138() {
    let original = r##"[first
-
second]: https://example.com

[first
-
second]
"##;
    let expected = r##"<h2>[first</h2>
<p>second]: https://example.com</p>
<h2>[first</h2>
<p>second]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_139() {
    let original = r##"[first
    -
second]: https://example.com

[first
    -
second]
"##;
    let expected = r##"<p><a href="https://example.com">first
-
second</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_140() {
    let original = r##"[first]: https://example.com
"
-
"

[first]
"##;
    let expected = r##"<h2>"</h2>
<p>"</p>
<p><a href="https://example.com">first</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_141() {
    let original = r##"[first]: https://example.com
"
    -
"

[first]
"##;
    let expected = r##"<p><a href="https://example.com" title="
-
">first</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_142() {
    let original = r##"> [first]: https://example.com
> "
> -
> "
>
> [first]
"##;
    let expected = r##"<blockquote>
<h2>"</h2>
<p>"</p>
<p><a href="https://example.com">first</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_143() {
    let original = r##"> ```
> code

> text
"##;
    let expected = r##"<blockquote>
<pre><code>code
</code></pre>
</blockquote>
<blockquote>
<p>text</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_144() {
    let original = r##"> [first]: https://example.com
> "
>     -
> "
>
> [first]
"##;
    let expected = r##"<blockquote>
<p><a href="https://example.com" title="
-
">first</a></p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_145() {
    let original = r##"[first]: https://example.com
"
\
"

[first]
"##;
    let expected = r##"<p><a href="https://example.com" title="
\
">first</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_146() {
    let original = r##"[first]: https://example.com
"
\

"

[first]
"##;
    let expected = r##"<p>"
\</p>
<p>"</p>
<p><a href="https://example.com">first</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_147() {
    let original = r##"[foo]: https://example.com
'[foo]'bar
"##;
    let expected = r##"<p>'<a href="https://example.com">foo</a>'bar</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_148() {
    let original = r##"- [foo]: https://example.com
'[foo]'
[foo]
"##;
    let expected = r##"<ul>
<li>
<a href="https://example.com" title="[foo]">foo</a>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_149() {
    let original = r##"[
a]: https://example.com

[b
]: https://example.com

[a] [b]
"##;
    let expected = r##"<p><a href="https://example.com">a</a> <a href="https://example.com">b</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_150() {
    let original = r##"> > ```
> > code
>
> > text
"##;
    let expected = r##"<blockquote>
<blockquote>
<pre><code>code
</code></pre>
</blockquote>
<blockquote>
<p>text</p>
</blockquote>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_151() {
    let original = r##"- *foo
  - - 
  baz*
"##;
    let expected = r##"<ul>
<li>*foo
<ul>
<li>
<ul>
<li></li>
</ul>
</li>
</ul>
baz*</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_152() {
    let original = r##"- `foo
  - - 
  baz`
"##;
    let expected = r##"<ul>
<li>`foo
<ul>
<li>
<ul>
<li></li>
</ul>
</li>
</ul>
baz`</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_153() {
    let original = r##"- [foo
  - - 
  baz](https://example.com)
"##;
    let expected = r##"<ul>
<li>[foo
<ul>
<li>
<ul>
<li></li>
</ul>
</li>
</ul>
baz](https://example.com)</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_154() {
    let original = r##"[mylink]

[mylink]: https://example.com
'
part of the title'
"##;
    let expected = r##"<p><a href="https://example.com" title="
part of the title">mylink</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_155() {
    let original = r##"1.
      pulldown-cmark used to think this was code, but commonmark.js and commonmark-hs didn't.
      The dot in the list marker is at column two, so the child paragraph actually
      starts in column *three*.
"##;
    let expected = r##"<ol>
<li>pulldown-cmark used to think this was code, but commonmark.js and commonmark-hs didn't.
The dot in the list marker is at column two, so the child paragraph actually
starts in column <em>three</em>.</li>
</ol>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_156() {
    let original = r##"1.
  This is not in the list at all. It's a paragraph after it.
"##;
    let expected = r##"<ol>
<li></li>
</ol>
<p>This is not in the list at all. It's a paragraph after it.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_157() {
    let original = r##"`\!\&quot;\#\$\%\&
\!\&quot;\#\$\%\&
\!\&quot;\#\$\%\&`
"##;
    let expected = r##"<p><code>\!\&amp;quot;\#\$\%\&amp; \!\&amp;quot;\#\$\%\&amp; \!\&amp;quot;\#\$\%\&amp;</code></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_158() {
    let original = r##"|
-|- *
"##;
    let expected = r##"<p>|
-|- *</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_159() {
    let original = r##" A paragraph is a paragraph and spaces must be removed. 

   Another paragraph whose spaces must be removed.  
"##;
    let expected = r##"<p>A paragraph is a paragraph and spaces must be removed.</p>
<p>Another paragraph whose spaces must be removed.</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_160() {
    let original = r##"![^1]

[^1]: foo
"##;
    let expected = r##"<p>!<sup class="footnote-reference"><a href="#1">1</a></sup></p>
<div class="footnote-definition" id="1"><sup class="footnote-definition-label">1</sup>
<p>foo</p>
</div>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_161() {
    let original = r##"First ![^1][] Second

[^1]: foo
"##;
    let expected = r##"<p>First !<sup class="footnote-reference"><a href="#1">1</a></sup>[] Second</p>
<div class="footnote-definition" id="1"><sup class="footnote-definition-label">1</sup>
<p>foo</p>
</div>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_162() {
    let original = r##"&#00000000; &#x0000000;
"##;
    let expected = r##"<p>&amp;#00000000; &amp;#x0000000;</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_163() {
    let original = r##"&#5307530;
"##;
    let expected = r##"<p>�</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_164() {
    let original = r##"- _t
  # test
  t_
"##;
    let expected = r##"<ul>
<li>_t
<h1>test</h1>
t_</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_165() {
    let original = r##"* *_
  #
  N*
"##;
    let expected = r##"<ul>
<li>*_
<h1></h1>
N*</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_166() {
    let original = r##"
 <foo>
"##;
    let expected = r##" <foo>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_167() {
    let original = r##"
<foo>
"##;
    let expected = r##"<foo>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_168() {
    let original = r##"
   <foo>
"##;
    let expected = r##"   <foo>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_169() {
    let original = r##"* <foo>
	<bar>
"##;
    let expected = r##"<ul>
<li>
<foo>
  <bar>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_170() {
    let original = r##"* test

	 <foo>
	<bar>
"##;
    let expected = r##"<ul>
<li>
<p>test</p>
   <foo>
  <bar>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_171() {
    let original = r##"*
	 <div>
	 <div>
"##;
    let expected = r##"<ul>
<li>   <div>
   <div>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_172() {
    let original = r##"*
	<div>
	<div>
"##;
    let expected = r##"<ul>
<li>  <div>
  <div>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_173() {
    let original = r##"*
     <div>
  <div>
"##;
    let expected = r##"<ul>
<li>   <div>
<div>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_174() {
    let original = r##"*
     <div>
   <div>
"##;
    let expected = r##"<ul>
<li>   <div>
 <div>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_175() {
    let original = r##"*
      <div>
     <div>
"##;
    let expected = r##"<ul>
<li>
<pre><code>&lt;div&gt;
</code></pre>
   <div>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_176() {
    let original = r##"[link]: test (()

[link]
"##;
    let expected = r##"<p>[link]: test (()</p>
<p>[link]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_177() {
    let original = r##"[link]: test (())

[link]
"##;
    let expected = r##"<p>[link]: test (())</p>
<p>[link]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_178() {
    let original = r##"[link]: test (\(\))

[link]
"##;
    let expected = r##"<p><a href="test" title="()">link</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_179() {
    let original = r##"[link]: test """

[link]
"##;
    let expected = r##"<p>[link]: test """</p>
<p>[link]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_180() {
    let original = r##"[link]: test "\""

[link]
"##;
    let expected = r##"<p><a href="test" title="&quot;">link</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_181() {
    let original = r##"[link]: test '''

[link]
"##;
    let expected = r##"<p>[link]: test '''</p>
<p>[link]</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_182() {
    let original = r##"[link]: test '\''

[link]
"##;
    let expected = r##"<p><a href="test" title="&#39;">link</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_183() {
    let original = r##"-     test

  test2
"##;
    let expected = r##"<ul>
<li>
<pre><code>test
</code></pre>
<p>test2</p>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_184() {
    let original = r##"    test

test2
"##;
    let expected = r##"<pre><code>test
</code></pre>
<p>test2</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_185() {
    let original = r##"-     test
  test2
"##;
    let expected = r##"<ul>
<li>
<pre><code>test
</code></pre>
test2</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_186() {
    let original = r##"-     test
- test2
"##;
    let expected = r##"<ul>
<li>
<pre><code>test
</code></pre>
</li>
<li>test2</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_187() {
    let original = r##"-     test

- test2
"##;
    let expected = r##"<ul>
<li>
<pre><code>test
</code></pre>
</li>
<li>
<p>test2</p>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_188() {
    let original = r##"<!p>

<\!p>
"##;
    let expected = r##"<!p>
<p>&lt;!p&gt;</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_189() {
    let original = r##"[linky]

[linky]: ((()))
"##;
    let expected = r##"<p><a href="((()))">linky</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_190() {
    let original = r##"><span
title
>junk
"##;
    let expected = r##"<blockquote>
<p>&lt;span
title
junk</p>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_191() {
    let original = r##" ~~~
    ~~~
"##;
    let expected = r##"<pre><code>   ~~~
</code></pre>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_192() {
    let original = r##" ~~~
   ~~~
"##;
    let expected = r##"<pre><code></code></pre>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_193() {
    let original = r##"[link]: destination "
          text          "

[link]
"##;
    let expected = r##"<p><a href="destination" title="
text          ">link</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_194() {
    let original = r##"* _
_**
  ___
  ^_
"##;
    let expected = r##"<ul>
<li>_
_**
<hr />
^_</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_195() {
    let original = r##"> [!Note]
> - Foo
"##;
    let expected = r##"<blockquote class="markdown-alert-note">
<ul>
<li>Foo</li>
</ul>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_196() {
    let original = r##" ---
--
---
"##;
    let expected = r##"<hr />
<h2>--</h2>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_197() {
    let original = r##"[30](https://rust.org/something%3A((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))
[40](https://rust.org/something%3A((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))
"##;
    let expected = r##"<p><a href="https://rust.org/something%3A((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))">30</a>
[40](https://rust.org/something%3A((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))</p>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_198() {
    let original = r##"- [x]		
\
-
"##;
    let expected = r##"<ul>
<li><input disabled="" type="checkbox" checked=""/></li>
</ul>
<h2>\</h2>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_199() {
    let original = r##"* [ ] 
---
bar
"##;
    let expected = r##"<ul>
<li><input disabled="" type="checkbox"/></li>
</ul>
<hr />
<p>bar</p>
"##;

    test_markdown_html(original, expected, false, true, false, false, false);
}

#[test]
fn regression_test_200() {
    let original = r##"`
`
"##;
    let expected = r##"<p><code> </code></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_201() {
    let original = r##"* def this
  : def text def text
"##;
    let expected = r##"<ul>
<li>
<dl>
<dt>def this</dt>
<dd>def text def text</dd>
</dl>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_202() {
    let original = r##"* def this

  : def text def text
"##;
    let expected = r##"<ul>
<li>
<dl>
<dt>def this</dt>
<dd><p>def text def text</p></dd>
</dl>
</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_203() {
    let original = r##"**A:**

> B C
> I J :x: K
> :x: L M
> N O _P_ Q R. (S
> T U, V W
> :x:,:x:,:x:, and :x: but no :x: or
> :x:.)
"##;
    let expected = r##"<p><strong>A:</strong></p><blockquote>
<dl><dt>B C
I J :x: K</dt><dd>x: L M
N O <em>P</em> Q R. (S
T U, V W</dd>
<dd>x:,:x:,:x:, and :x: but no :x: or</dd>
<dd>x:.)</dd></dl></blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_204() {
    let original = r##"[abc] check `foobar_raz`
 Some preamble `foobar_raz`, not `barfoo_raz`
 :D
 
 This should fix:
 
 &gt; Something is wrong!
"##;
    let expected = r##"<dl>
<dt>[abc] check <code>foobar_raz</code>
Some preamble <code>foobar_raz</code>, not <code>barfoo_raz</code></dt>
<dd>D</dd>
</dl>
<p>This should fix:</p>
<p>&gt; Something is wrong!</p>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_205() {
    let original = r##"- Item definition [it
  ```rust
  ```
  stuff](https://example.com)
"##;
    let expected = r##"<ul>
<li>Item definition [it
<pre><code class="language-rust"></code></pre>
stuff](https://example.com)</li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_206() {
    let original = r##"foo
{.class}
===

> foo
> {.class}
> ===
>
> > foo
> > {.class}
> > ===

* > foo
  > {.class}
  > ===

> foo
>	{.class}
>	===
"##;
    let expected = r##"<h1 class="class">foo
</h1>
<blockquote>
<h1 class="class">foo
</h1>
<blockquote>
<h1 class="class">foo
</h1>
</blockquote>
</blockquote>
<ul>
<li>
<blockquote>
<h1 class="class">foo
</h1>
</blockquote>
</li>
</ul>
<blockquote>
<h1 class="class">foo
</h1>
</blockquote>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_207() {
    let original = r##"the trailing space after the &gt; should be stripped
    > {.bar}
===
"##;
    let expected = r##"<h1 class="bar">the trailing space after the &gt; should be stripped
&gt;</h1>
"##;

    test_markdown_html(original, expected, false, false, false, false, false);
}

#[test]
fn regression_test_208() {
    let original = r##"[[Wiki<|Link]]
"##;
    let expected = r##"<p><a href="Wiki%3C">Link</a></p>
"##;

    test_markdown_html(original, expected, false, false, false, false, true);
}

#[test]
fn regression_test_209() {
    let original = r##"* <c
  >
"##;
    let expected = r##"<ul>
<li>&lt;c
<blockquote></blockquote></li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, true);
}

#[test]
fn regression_test_210() {
    let original = r##"- [x] * some text
- [ ] > some text
- [x]
  * some text
- [ ]
  > some text
"##;
    let expected = r##"<ul>
<li><input disabled="" type="checkbox" checked=""/>
* some text</li>
<li><input disabled="" type="checkbox"/>
&gt; some text</li>
<li><input disabled="" type="checkbox" checked=""/>
<ul>
<li>some text</li>
</ul></li>
<li><input disabled="" type="checkbox"/>
<blockquote>
<p>some text</p>
</blockquote></li>
</ul>
"##;

    test_markdown_html(original, expected, false, false, false, false, true);
}
