aboutsummaryrefslogtreecommitdiffstats
path: root/tests/commonmark.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
commitec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch)
tree2da4be3be22c2324c48cb17133b3f4b26b9139d2 /tests/commonmark.rs
parent861af95c119721e814460fa7dc32bd3d74b38484 (diff)
downloadmarkdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip
Rename crate to `markdown`
Diffstat (limited to 'tests/commonmark.rs')
-rw-r--r--tests/commonmark.rs1308
1 files changed, 654 insertions, 654 deletions
diff --git a/tests/commonmark.rs b/tests/commonmark.rs
index cc3d69a..7d62016 100644
--- a/tests/commonmark.rs
+++ b/tests/commonmark.rs
@@ -3,8 +3,8 @@
// > 👉 **Important**: this module is generated by `build.rs`.
// > It is generate from the latest CommonMark website.
-extern crate micromark;
-use micromark::{micromark_with_options, CompileOptions, Options};
+extern crate markdown;
+use markdown::{to_html_with_options, CompileOptions, Options};
use pretty_assertions::assert_eq;
#[rustfmt::skip]
@@ -20,7 +20,7 @@ fn commonmark() -> Result<(), String> {
};
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo baz bim
"###,
&danger
@@ -32,7 +32,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo baz bim
"###,
&danger
@@ -44,7 +44,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" a a
ὐ a
"###,
@@ -58,7 +58,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - foo
bar
@@ -76,7 +76,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
bar
@@ -95,7 +95,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
"###,
&danger
@@ -109,7 +109,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
"###,
&danger
@@ -125,7 +125,7 @@ fn commonmark() -> Result<(), String> {
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
bar
"###,
@@ -139,7 +139,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - foo
- bar
- baz
@@ -162,7 +162,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# Foo
"###,
&danger
@@ -173,7 +173,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* * *
"###,
&danger
@@ -184,7 +184,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
"###,
&danger
@@ -195,7 +195,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\ \A\a\ \3\φ\«
"###,
&danger
@@ -206,7 +206,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\*not emphasized*
\<br/> not a tag
\[not a link](/foo)
@@ -233,7 +233,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\\*emphasis*
"###,
&danger
@@ -244,7 +244,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
bar
"###,
@@ -257,7 +257,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`` \[\` ``
"###,
&danger
@@ -268,7 +268,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" \[\]
"###,
&danger
@@ -280,7 +280,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~
\[\]
~~~
@@ -294,7 +294,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://example.com?find=\*>
"###,
&danger
@@ -305,7 +305,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="/bar\/)">
"###,
&danger
@@ -316,7 +316,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo](/bar\* "ti\*tle")
"###,
&danger
@@ -327,7 +327,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: /bar\* "ti\*tle"
@@ -340,7 +340,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``` foo\+bar
foo
```
@@ -354,7 +354,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&nbsp; &amp; &copy; &AElig; &Dcaron;
&frac34; &HilbertSpace; &DifferentialD;
&ClockwiseContourIntegral; &ngE;
@@ -369,7 +369,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&#35; &#1234; &#992; &#0;
"###,
&danger
@@ -380,7 +380,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&#X22; &#XD06; &#xcab;
"###,
&danger
@@ -391,7 +391,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&nbsp &x; &#; &#x;
&#87654321;
&#abcdef0;
@@ -408,7 +408,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&copy
"###,
&danger
@@ -419,7 +419,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&MadeUpEntity;
"###,
&danger
@@ -430,7 +430,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="&ouml;&ouml;.html">
"###,
&danger
@@ -441,7 +441,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo](/f&ouml;&ouml; "f&ouml;&ouml;")
"###,
&danger
@@ -452,7 +452,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: /f&ouml;&ouml; "f&ouml;&ouml;"
@@ -465,7 +465,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``` f&ouml;&ouml;
foo
```
@@ -479,7 +479,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`f&ouml;&ouml;`
"###,
&danger
@@ -490,7 +490,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" f&ouml;f&ouml;
"###,
&danger
@@ -502,7 +502,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&#42;foo&#42;
*foo*
"###,
@@ -515,7 +515,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&#42; foo
* foo
@@ -531,7 +531,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo&#10;&#10;bar
"###,
&danger
@@ -544,7 +544,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"&#9;foo
"###,
&danger
@@ -555,7 +555,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[a](url &quot;tit&quot;)
"###,
&danger
@@ -566,7 +566,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- `one
- two`
"###,
@@ -581,7 +581,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***
---
___
@@ -596,7 +596,7 @@ ___
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"+++
"###,
&danger
@@ -607,7 +607,7 @@ ___
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"===
"###,
&danger
@@ -618,7 +618,7 @@ ___
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"--
**
__
@@ -633,7 +633,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ***
***
***
@@ -648,7 +648,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ***
"###,
&danger
@@ -660,7 +660,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
***
"###,
@@ -673,7 +673,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_____________________________________
"###,
&danger
@@ -684,7 +684,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - - -
"###,
&danger
@@ -695,7 +695,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ** * ** * ** * **
"###,
&danger
@@ -706,7 +706,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- - - -
"###,
&danger
@@ -717,7 +717,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- - - -
"###,
&danger
@@ -728,7 +728,7 @@ __</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_ _ _ _ a
a------
@@ -745,7 +745,7 @@ a------
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" *-*
"###,
&danger
@@ -756,7 +756,7 @@ a------
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
***
- bar
@@ -775,7 +775,7 @@ a------
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
***
bar
@@ -790,7 +790,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
---
bar
@@ -804,7 +804,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* Foo
* * *
* Bar
@@ -823,7 +823,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- Foo
- * * *
"###,
@@ -840,7 +840,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# foo
## foo
### foo
@@ -861,7 +861,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"####### foo
"###,
&danger
@@ -872,7 +872,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"#5 bolt
#hashtag
@@ -886,7 +886,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\## foo
"###,
&danger
@@ -897,7 +897,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# foo *bar* \*baz\*
"###,
&danger
@@ -908,7 +908,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# foo
"###,
&danger
@@ -919,7 +919,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ### foo
## foo
# foo
@@ -934,7 +934,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" # foo
"###,
&danger
@@ -946,7 +946,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
# bar
"###,
@@ -959,7 +959,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"## foo ##
### bar ###
"###,
@@ -972,7 +972,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# foo ##################################
##### foo ##
"###,
@@ -985,7 +985,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo ###
"###,
&danger
@@ -996,7 +996,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo ### b
"###,
&danger
@@ -1007,7 +1007,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# foo#
"###,
&danger
@@ -1018,7 +1018,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo \###
## foo #\##
# foo \#
@@ -1033,7 +1033,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"****
## foo
****
@@ -1048,7 +1048,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo bar
# baz
Bar foo
@@ -1063,7 +1063,7 @@ Bar foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"##
#
### ###
@@ -1078,7 +1078,7 @@ Bar foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo *bar*
=========
@@ -1094,7 +1094,7 @@ Foo *bar*
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo *bar
baz*
====
@@ -1108,7 +1108,7 @@ baz</em></h1>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" Foo *bar
baz*
====
@@ -1122,7 +1122,7 @@ baz</em></h1>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
-------------------------
@@ -1138,7 +1138,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" Foo
---
@@ -1158,7 +1158,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" Foo
---
@@ -1178,7 +1178,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
----
"###,
@@ -1190,7 +1190,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
---
"###,
@@ -1203,7 +1203,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
= =
@@ -1221,7 +1221,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
-----
"###,
@@ -1233,7 +1233,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo\
----
"###,
@@ -1245,7 +1245,7 @@ Foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`Foo
----
`
@@ -1265,7 +1265,7 @@ of dashes"/>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> Foo
---
"###,
@@ -1280,7 +1280,7 @@ of dashes"/>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
bar
===
@@ -1297,7 +1297,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- Foo
---
"###,
@@ -1312,7 +1312,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
Bar
---
@@ -1326,7 +1326,7 @@ Bar</h2>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"---
Foo
---
@@ -1345,7 +1345,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
====
"###,
@@ -1357,7 +1357,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"---
---
"###,
@@ -1370,7 +1370,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
-----
"###,
@@ -1385,7 +1385,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
---
"###,
@@ -1399,7 +1399,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
-----
"###,
@@ -1414,7 +1414,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\> foo
------
"###,
@@ -1426,7 +1426,7 @@ Baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
bar
@@ -1443,7 +1443,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
bar
@@ -1462,7 +1462,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
bar
* * *
@@ -1479,7 +1479,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
bar
\---
@@ -1496,7 +1496,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" a simple
indented code block
"###,
@@ -1510,7 +1510,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - foo
bar
@@ -1528,7 +1528,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
- bar
@@ -1548,7 +1548,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" <a/>
*hi*
@@ -1566,7 +1566,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" chunk1
chunk2
@@ -1590,7 +1590,7 @@ chunk3
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" chunk1
chunk2
@@ -1606,7 +1606,7 @@ chunk3
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
bar
@@ -1620,7 +1620,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
bar
"###,
@@ -1634,7 +1634,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# Heading
foo
Heading
@@ -1656,7 +1656,7 @@ Heading
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
bar
"###,
@@ -1670,7 +1670,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
foo
@@ -1686,7 +1686,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
"###,
&danger
@@ -1698,7 +1698,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
<
>
@@ -1714,7 +1714,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~
<
>
@@ -1730,7 +1730,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``
foo
``
@@ -1743,7 +1743,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
aaa
~~~
@@ -1759,7 +1759,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~
aaa
```
@@ -1775,7 +1775,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"````
aaa
```
@@ -1791,7 +1791,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~~
aaa
~~~
@@ -1807,7 +1807,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
"###,
&danger
@@ -1818,7 +1818,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`````
```
@@ -1835,7 +1835,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> ```
> aaa
@@ -1853,7 +1853,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
@@ -1869,7 +1869,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
```
"###,
@@ -1881,7 +1881,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ```
aaa
aaa
@@ -1897,7 +1897,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ```
aaa
aaa
@@ -1915,7 +1915,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ```
aaa
aaa
@@ -1933,7 +1933,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ```
aaa
```
@@ -1949,7 +1949,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
aaa
```
@@ -1963,7 +1963,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" ```
aaa
```
@@ -1977,7 +1977,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
aaa
```
@@ -1992,7 +1992,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``` ```
aaa
"###,
@@ -2005,7 +2005,7 @@ aaa</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~~~~
aaa
~~~ ~~
@@ -2020,7 +2020,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
```
bar
@@ -2038,7 +2038,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
---
~~~
@@ -2057,7 +2057,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```ruby
def foo(x)
return 3
@@ -2075,7 +2075,7 @@ end
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~~ ruby startline=3 $%@#$
def foo(x)
return 3
@@ -2093,7 +2093,7 @@ end
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"````;
````
"###,
@@ -2105,7 +2105,7 @@ end
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``` aa ```
foo
"###,
@@ -2118,7 +2118,7 @@ foo</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"~~~ aa ``` ~~~
foo
~~~
@@ -2132,7 +2132,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
``` aaa
```
@@ -2146,7 +2146,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<table><tr><td>
<pre>
**Hello**,
@@ -2168,7 +2168,7 @@ _world_.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<table>
<tr>
<td>
@@ -2194,7 +2194,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" <div>
*hello*
<foo><a>
@@ -2209,7 +2209,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"</div>
*foo*
"###,
@@ -2222,7 +2222,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<DIV CLASS="foo">
*Markdown*
@@ -2239,7 +2239,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div id="foo"
class="bar">
</div>
@@ -2254,7 +2254,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div id="foo" class="bar
baz">
</div>
@@ -2269,7 +2269,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div>
*foo*
@@ -2285,7 +2285,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div id="foo"
*hi*
"###,
@@ -2298,7 +2298,7 @@ okay.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div class
foo
"###,
@@ -2311,7 +2311,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div *???-&&&-<---
*foo*
"###,
@@ -2324,7 +2324,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div><a href="bar">*foo*</a></div>
"###,
&danger
@@ -2335,7 +2335,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<table><tr><td>
foo
</td></tr></table>
@@ -2350,7 +2350,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div></div>
``` c
int x = 33;
@@ -2367,7 +2367,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="foo">
*bar*
</a>
@@ -2382,7 +2382,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<Warning>
*bar*
</Warning>
@@ -2397,7 +2397,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<i class="foo">
*bar*
</i>
@@ -2412,7 +2412,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"</ins>
*bar*
"###,
@@ -2425,7 +2425,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<del>
*foo*
</del>
@@ -2440,7 +2440,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<del>
*foo*
@@ -2457,7 +2457,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<del>*foo*</del>
"###,
&danger
@@ -2468,7 +2468,7 @@ int x = 33;
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<pre language="haskell"><code>
import Text.HTML.TagSoup
@@ -2491,7 +2491,7 @@ main = print $ parseTags tags
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<script type="text/javascript">
// JavaScript example
@@ -2512,7 +2512,7 @@ document.getElementById("demo").innerHTML = "Hello JavaScript!";
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<textarea>
*foo*
@@ -2535,7 +2535,7 @@ _bar_
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<style
type="text/css">
h1 {color:red;}
@@ -2558,7 +2558,7 @@ p {color:blue;}
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<style
type="text/css">
@@ -2575,7 +2575,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> <div>
> foo
@@ -2593,7 +2593,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- <div>
- foo
"###,
@@ -2610,7 +2610,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<style>p{color:red;}</style>
*foo*
"###,
@@ -2623,7 +2623,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<!-- foo -->*bar*
*baz*
"###,
@@ -2636,7 +2636,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<script>
foo
</script>1. *bar*
@@ -2651,7 +2651,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<!-- Foo
bar
@@ -2670,7 +2670,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<?php
echo '>';
@@ -2691,7 +2691,7 @@ okay
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<!DOCTYPE html>
"###,
&danger
@@ -2702,7 +2702,7 @@ okay
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<![CDATA[
function matchwo(a,b)
{
@@ -2737,7 +2737,7 @@ function matchwo(a,b)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" <!-- foo -->
<!-- foo -->
@@ -2752,7 +2752,7 @@ function matchwo(a,b)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" <div>
<div>
@@ -2767,7 +2767,7 @@ function matchwo(a,b)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
<div>
bar
@@ -2784,7 +2784,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div>
bar
</div>
@@ -2801,7 +2801,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
<a href="bar">
baz
@@ -2816,7 +2816,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div>
*Emphasized* text.
@@ -2833,7 +2833,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<div>
*Emphasized* text.
</div>
@@ -2848,7 +2848,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<table>
<tr>
@@ -2875,7 +2875,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<table>
<tr>
@@ -2903,7 +2903,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url "title"
[foo]
@@ -2916,7 +2916,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" [foo]:
/url
'the title'
@@ -2931,7 +2931,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo*bar\]]:my_(url) 'title (with parens)'
[Foo*bar\]]
@@ -2944,7 +2944,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo bar]:
<my url>
'title'
@@ -2959,7 +2959,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url '
title
line1
@@ -2980,7 +2980,7 @@ line2
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url 'title
with blank line'
@@ -2997,7 +2997,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]:
/url
@@ -3011,7 +3011,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]:
[foo]
@@ -3025,7 +3025,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: <>
[foo]
@@ -3038,7 +3038,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: <bar>(baz)
[foo]
@@ -3052,7 +3052,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url\bar\*baz "foo\"bar\baz"
[foo]
@@ -3065,7 +3065,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: url
@@ -3078,7 +3078,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: first
@@ -3092,7 +3092,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[FOO]: /url
[Foo]
@@ -3105,7 +3105,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[ΑΓΩ]: /φου
[αγω]
@@ -3118,7 +3118,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url
"###,
&danger
@@ -3128,7 +3128,7 @@ with blank line'
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[
foo
]: /url
@@ -3142,7 +3142,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url "title" ok
"###,
&danger
@@ -3153,7 +3153,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url
"title" ok
"###,
@@ -3165,7 +3165,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" [foo]: /url "title"
[foo]
@@ -3180,7 +3180,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```
[foo]: /url
```
@@ -3197,7 +3197,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
[bar]: /baz
@@ -3213,7 +3213,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"# [Foo]
[foo]: /url
> bar
@@ -3229,7 +3229,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url
bar
===
@@ -3244,7 +3244,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url
===
[foo]
@@ -3258,7 +3258,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /foo-url "foo"
[bar]: /bar-url
"bar"
@@ -3278,7 +3278,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
> [foo]: /url
@@ -3293,7 +3293,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
bbb
@@ -3307,7 +3307,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
bbb
@@ -3325,7 +3325,7 @@ ddd</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
@@ -3340,7 +3340,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" aaa
bbb
"###,
@@ -3353,7 +3353,7 @@ bbb</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
bbb
ccc
@@ -3368,7 +3368,7 @@ ccc</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" aaa
bbb
"###,
@@ -3381,7 +3381,7 @@ bbb</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" aaa
bbb
"###,
@@ -3395,7 +3395,7 @@ bbb
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
bbb
"###,
@@ -3408,7 +3408,7 @@ bbb</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
aaa
@@ -3427,7 +3427,7 @@ aaa
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> # Foo
> bar
> baz
@@ -3444,7 +3444,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"># Foo
>bar
> baz
@@ -3461,7 +3461,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > # Foo
> bar
> baz
@@ -3478,7 +3478,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > # Foo
> bar
> baz
@@ -3494,7 +3494,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> # Foo
> bar
baz
@@ -3511,7 +3511,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
baz
> foo
@@ -3528,7 +3528,7 @@ foo</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
---
"###,
@@ -3543,7 +3543,7 @@ foo</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> - foo
- bar
"###,
@@ -3562,7 +3562,7 @@ foo</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
bar
"###,
@@ -3579,7 +3579,7 @@ foo</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> ```
foo
```
@@ -3596,7 +3596,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
- bar
"###,
@@ -3611,7 +3611,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">
"###,
&danger
@@ -3623,7 +3623,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">
>
>
@@ -3637,7 +3637,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">
> foo
>
@@ -3652,7 +3652,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
> bar
@@ -3670,7 +3670,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
> bar
"###,
@@ -3685,7 +3685,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
>
> bar
@@ -3701,7 +3701,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
> bar
"###,
@@ -3716,7 +3716,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> aaa
***
> bbb
@@ -3735,7 +3735,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
baz
"###,
@@ -3750,7 +3750,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
baz
@@ -3766,7 +3766,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
>
baz
@@ -3782,7 +3782,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> > > foo
bar
"###,
@@ -3801,7 +3801,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">>> foo
> bar
>>baz
@@ -3822,7 +3822,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> code
> not code
@@ -3841,7 +3841,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"A paragraph
with two lines.
@@ -3863,7 +3863,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. A paragraph
with two lines.
@@ -3889,7 +3889,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- one
two
@@ -3905,7 +3905,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- one
two
@@ -3923,7 +3923,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - one
two
@@ -3940,7 +3940,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - one
two
@@ -3958,7 +3958,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > > 1. one
>>
>> two
@@ -3980,7 +3980,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">>- one
>>
> > two
@@ -4000,7 +4000,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-one
2.two
@@ -4014,7 +4014,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
@@ -4033,7 +4033,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
```
@@ -4062,7 +4062,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- Foo
bar
@@ -4087,7 +4087,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"123456789. ok
"###,
&danger
@@ -4100,7 +4100,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1234567890. not ok
"###,
&danger
@@ -4111,7 +4111,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"0. ok
"###,
&danger
@@ -4124,7 +4124,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"003. ok
"###,
&danger
@@ -4137,7 +4137,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-1. not ok
"###,
&danger
@@ -4148,7 +4148,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
bar
@@ -4167,7 +4167,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 10. foo
bar
@@ -4186,7 +4186,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" indented code
paragraph
@@ -4205,7 +4205,7 @@ paragraph
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. indented code
paragraph
@@ -4228,7 +4228,7 @@ paragraph
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. indented code
paragraph
@@ -4251,7 +4251,7 @@ paragraph
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" foo
bar
@@ -4265,7 +4265,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
bar
@@ -4281,7 +4281,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
bar
@@ -4299,7 +4299,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-
foo
-
@@ -4327,7 +4327,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-
foo
"###,
@@ -4341,7 +4341,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-
foo
@@ -4357,7 +4357,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
-
- bar
@@ -4374,7 +4374,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
-
- bar
@@ -4391,7 +4391,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
2.
3. bar
@@ -4408,7 +4408,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*
"###,
&danger
@@ -4421,7 +4421,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
*
@@ -4439,7 +4439,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4465,7 +4465,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4491,7 +4491,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4517,7 +4517,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4539,7 +4539,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4565,7 +4565,7 @@ with two lines.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
"###,
@@ -4580,7 +4580,7 @@ with two lines.</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> 1. > Blockquote
continued here.
"###,
@@ -4601,7 +4601,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> 1. > Blockquote
> continued here.
"###,
@@ -4622,7 +4622,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4650,7 +4650,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4669,7 +4669,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"10) foo
- bar
"###,
@@ -4687,7 +4687,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"10) foo
- bar
"###,
@@ -4704,7 +4704,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- - foo
"###,
&danger
@@ -4721,7 +4721,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. - 2. foo
"###,
&danger
@@ -4742,7 +4742,7 @@ continued here.</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- # Foo
- Bar
---
@@ -4763,7 +4763,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
+ baz
@@ -4782,7 +4782,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
2. bar
3) baz
@@ -4801,7 +4801,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
- bar
- baz
@@ -4818,7 +4818,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"The number of windows in my house is
14. The number of doors is 6.
"###,
@@ -4831,7 +4831,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"The number of windows in my house is
1. The number of doors is 6.
"###,
@@ -4846,7 +4846,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
@@ -4872,7 +4872,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4901,7 +4901,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
@@ -4926,7 +4926,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
notcode
@@ -4956,7 +4956,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -4981,7 +4981,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. a
2. b
@@ -5006,7 +5006,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -5027,7 +5027,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. a
2. b
@@ -5051,7 +5051,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5075,7 +5075,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* a
*
@@ -5097,7 +5097,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5123,7 +5123,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5148,7 +5148,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- ```
b
@@ -5174,7 +5174,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5199,7 +5199,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* a
> b
>
@@ -5220,7 +5220,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
> b
```
@@ -5245,7 +5245,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
"###,
&danger
@@ -5258,7 +5258,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
"###,
@@ -5276,7 +5276,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. ```
foo
```
@@ -5297,7 +5297,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* foo
* bar
@@ -5319,7 +5319,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -5351,7 +5351,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`hi`lo`
"###,
&danger
@@ -5362,7 +5362,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo`
"###,
&danger
@@ -5373,7 +5373,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`` foo ` bar ``
"###,
&danger
@@ -5384,7 +5384,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `` `
"###,
&danger
@@ -5395,7 +5395,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `` `
"###,
&danger
@@ -5406,7 +5406,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` a`
"###,
&danger
@@ -5417,7 +5417,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` b `
"###,
&danger
@@ -5428,7 +5428,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `
` `
"###,
@@ -5441,7 +5441,7 @@ baz</li>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``
foo
bar
@@ -5456,7 +5456,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``
foo
``
@@ -5469,7 +5469,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo bar
baz`
"###,
@@ -5481,7 +5481,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo\`bar`
"###,
&danger
@@ -5492,7 +5492,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``foo`bar``
"###,
&danger
@@ -5503,7 +5503,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` foo `` bar `
"###,
&danger
@@ -5514,7 +5514,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo`*`
"###,
&danger
@@ -5525,7 +5525,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[not a `link](/foo`)
"###,
&danger
@@ -5536,7 +5536,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`<a href="`">`
"###,
&danger
@@ -5547,7 +5547,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="`">`
"###,
&danger
@@ -5558,7 +5558,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`<http://foo.bar.`baz>`
"###,
&danger
@@ -5569,7 +5569,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://foo.bar.`baz>`
"###,
&danger
@@ -5580,7 +5580,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"```foo``
"###,
&danger
@@ -5591,7 +5591,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo
"###,
&danger
@@ -5602,7 +5602,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo``bar``
"###,
&danger
@@ -5613,7 +5613,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo bar*
"###,
&danger
@@ -5624,7 +5624,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a * foo bar*
"###,
&danger
@@ -5635,7 +5635,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a*"foo"*
"###,
&danger
@@ -5646,7 +5646,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* a *
"###,
&danger
@@ -5657,7 +5657,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo*bar*
"###,
&danger
@@ -5668,7 +5668,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"5*6*78
"###,
&danger
@@ -5679,7 +5679,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo bar_
"###,
&danger
@@ -5690,7 +5690,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_ foo bar_
"###,
&danger
@@ -5701,7 +5701,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a_"foo"_
"###,
&danger
@@ -5712,7 +5712,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo_bar_
"###,
&danger
@@ -5723,7 +5723,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"5_6_78
"###,
&danger
@@ -5734,7 +5734,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"пристаням_стремятся_
"###,
&danger
@@ -5745,7 +5745,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aa_"bb"_cc
"###,
&danger
@@ -5756,7 +5756,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo-_(bar)_
"###,
&danger
@@ -5767,7 +5767,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo*
"###,
&danger
@@ -5778,7 +5778,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo bar *
"###,
&danger
@@ -5789,7 +5789,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo bar
*
"###,
@@ -5802,7 +5802,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*(*foo)
"###,
&danger
@@ -5813,7 +5813,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*(*foo*)*
"###,
&danger
@@ -5824,7 +5824,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo*bar
"###,
&danger
@@ -5835,7 +5835,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo bar _
"###,
&danger
@@ -5846,7 +5846,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_(_foo)
"###,
&danger
@@ -5857,7 +5857,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_(_foo_)_
"###,
&danger
@@ -5868,7 +5868,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo_bar
"###,
&danger
@@ -5879,7 +5879,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_пристаням_стремятся
"###,
&danger
@@ -5890,7 +5890,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo_bar_baz_
"###,
&danger
@@ -5901,7 +5901,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_(bar)_.
"###,
&danger
@@ -5912,7 +5912,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo bar**
"###,
&danger
@@ -5923,7 +5923,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"** foo bar**
"###,
&danger
@@ -5934,7 +5934,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a**"foo"**
"###,
&danger
@@ -5945,7 +5945,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo**bar**
"###,
&danger
@@ -5956,7 +5956,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo bar__
"###,
&danger
@@ -5967,7 +5967,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__ foo bar__
"###,
&danger
@@ -5978,7 +5978,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__
foo bar__
"###,
@@ -5991,7 +5991,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a__"foo"__
"###,
&danger
@@ -6002,7 +6002,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo__bar__
"###,
&danger
@@ -6013,7 +6013,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"5__6__78
"###,
&danger
@@ -6024,7 +6024,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"пристаням__стремятся__
"###,
&danger
@@ -6035,7 +6035,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo, __bar__, baz__
"###,
&danger
@@ -6046,7 +6046,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo-__(bar)__
"###,
&danger
@@ -6057,7 +6057,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo bar **
"###,
&danger
@@ -6068,7 +6068,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**(**foo)
"###,
&danger
@@ -6079,7 +6079,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*(**foo**)*
"###,
&danger
@@ -6090,7 +6090,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
*Asclepias physocarpa*)**
"###,
@@ -6103,7 +6103,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo "*bar*" foo**
"###,
&danger
@@ -6114,7 +6114,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo**bar
"###,
&danger
@@ -6125,7 +6125,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo bar __
"###,
&danger
@@ -6136,7 +6136,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__(__foo)
"###,
&danger
@@ -6147,7 +6147,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_(__foo__)_
"###,
&danger
@@ -6158,7 +6158,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__bar
"###,
&danger
@@ -6169,7 +6169,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__пристаням__стремятся
"###,
&danger
@@ -6180,7 +6180,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__bar__baz__
"###,
&danger
@@ -6191,7 +6191,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__(bar)__.
"###,
&danger
@@ -6202,7 +6202,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [bar](/url)*
"###,
&danger
@@ -6213,7 +6213,7 @@ foo bar__</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo
bar*
"###,
@@ -6226,7 +6226,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo __bar__ baz_
"###,
&danger
@@ -6237,7 +6237,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo _bar_ baz_
"###,
&danger
@@ -6248,7 +6248,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo_ bar_
"###,
&danger
@@ -6259,7 +6259,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo *bar**
"###,
&danger
@@ -6270,7 +6270,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar** baz*
"###,
&danger
@@ -6281,7 +6281,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar**baz*
"###,
&danger
@@ -6292,7 +6292,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar*
"###,
&danger
@@ -6303,7 +6303,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo** bar*
"###,
&danger
@@ -6314,7 +6314,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar***
"###,
&danger
@@ -6325,7 +6325,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar***
"###,
&danger
@@ -6336,7 +6336,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo***bar***baz
"###,
&danger
@@ -6347,7 +6347,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo******bar*********baz
"###,
&danger
@@ -6358,7 +6358,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar *baz* bim** bop*
"###,
&danger
@@ -6369,7 +6369,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [*bar*](/url)*
"###,
&danger
@@ -6380,7 +6380,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"** is not an empty emphasis
"###,
&danger
@@ -6391,7 +6391,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**** is not an empty strong emphasis
"###,
&danger
@@ -6402,7 +6402,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo [bar](/url)**
"###,
&danger
@@ -6413,7 +6413,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo
bar**
"###,
@@ -6426,7 +6426,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo _bar_ baz__
"###,
&danger
@@ -6437,7 +6437,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo __bar__ baz__
"###,
&danger
@@ -6448,7 +6448,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo__ bar__
"###,
&danger
@@ -6459,7 +6459,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo **bar****
"###,
&danger
@@ -6470,7 +6470,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar* baz**
"###,
&danger
@@ -6481,7 +6481,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo*bar*baz**
"###,
&danger
@@ -6492,7 +6492,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo* bar**
"###,
&danger
@@ -6503,7 +6503,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar***
"###,
&danger
@@ -6514,7 +6514,7 @@ bar</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar **baz**
bim* bop**
"###,
@@ -6527,7 +6527,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo [*bar*](/url)**
"###,
&danger
@@ -6538,7 +6538,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__ is not an empty emphasis
"###,
&danger
@@ -6549,7 +6549,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____ is not an empty strong emphasis
"###,
&danger
@@ -6560,7 +6560,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo ***
"###,
&danger
@@ -6571,7 +6571,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *\**
"###,
&danger
@@ -6582,7 +6582,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *_*
"###,
&danger
@@ -6593,7 +6593,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *****
"###,
&danger
@@ -6604,7 +6604,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo **\***
"###,
&danger
@@ -6615,7 +6615,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo **_**
"###,
&danger
@@ -6626,7 +6626,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo*
"###,
&danger
@@ -6637,7 +6637,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**
"###,
&danger
@@ -6648,7 +6648,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo**
"###,
&danger
@@ -6659,7 +6659,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"****foo*
"###,
&danger
@@ -6670,7 +6670,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo***
"###,
&danger
@@ -6681,7 +6681,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo****
"###,
&danger
@@ -6692,7 +6692,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo ___
"###,
&danger
@@ -6703,7 +6703,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _\__
"###,
&danger
@@ -6714,7 +6714,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _*_
"###,
&danger
@@ -6725,7 +6725,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _____
"###,
&danger
@@ -6736,7 +6736,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo __\___
"###,
&danger
@@ -6747,7 +6747,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo __*__
"###,
&danger
@@ -6758,7 +6758,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo_
"###,
&danger
@@ -6769,7 +6769,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo__
"###,
&danger
@@ -6780,7 +6780,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"___foo__
"###,
&danger
@@ -6791,7 +6791,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo_
"###,
&danger
@@ -6802,7 +6802,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo___
"###,
&danger
@@ -6813,7 +6813,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo____
"###,
&danger
@@ -6824,7 +6824,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo**
"###,
&danger
@@ -6835,7 +6835,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*_foo_*
"###,
&danger
@@ -6846,7 +6846,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__
"###,
&danger
@@ -6857,7 +6857,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_*foo*_
"###,
&danger
@@ -6868,7 +6868,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"****foo****
"###,
&danger
@@ -6879,7 +6879,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo____
"###,
&danger
@@ -6890,7 +6890,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"******foo******
"###,
&danger
@@ -6901,7 +6901,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo***
"###,
&danger
@@ -6912,7 +6912,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_____foo_____
"###,
&danger
@@ -6923,7 +6923,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo _bar* baz_
"###,
&danger
@@ -6934,7 +6934,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo __bar *baz bim__ bam*
"###,
&danger
@@ -6945,7 +6945,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo **bar baz**
"###,
&danger
@@ -6956,7 +6956,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo *bar baz*
"###,
&danger
@@ -6967,7 +6967,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[bar*](/url)
"###,
&danger
@@ -6978,7 +6978,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo [bar_](/url)
"###,
&danger
@@ -6989,7 +6989,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*<img src="foo" title="*"/>
"###,
&danger
@@ -7000,7 +7000,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**<a href="**">
"###,
&danger
@@ -7011,7 +7011,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__<a href="__">
"###,
&danger
@@ -7022,7 +7022,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*a `*`*
"###,
&danger
@@ -7033,7 +7033,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_a `_`_
"###,
&danger
@@ -7044,7 +7044,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**a<http://foo.bar/?q=**>
"###,
&danger
@@ -7055,7 +7055,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__a<http://foo.bar/?q=__>
"###,
&danger
@@ -7066,7 +7066,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/uri "title")
"###,
&danger
@@ -7077,7 +7077,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/uri)
"###,
&danger
@@ -7088,7 +7088,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[](./target.md)
"###,
&danger
@@ -7099,7 +7099,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
&danger
@@ -7110,7 +7110,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](<>)
"###,
&danger
@@ -7121,7 +7121,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[]()
"###,
&danger
@@ -7132,7 +7132,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/my uri)
"###,
&danger
@@ -7143,7 +7143,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](</my uri>)
"###,
&danger
@@ -7154,7 +7154,7 @@ bim</em> bop</strong></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo
bar)
"###,
@@ -7167,7 +7167,7 @@ bar)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](<foo
bar>)
"###,
@@ -7180,7 +7180,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[a](<b)c>)
"###,
&danger
@@ -7191,7 +7191,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](<foo\>)
"###,
&danger
@@ -7202,7 +7202,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[a](<b)c
[a](<b)c>
[a](<b>c)
@@ -7217,7 +7217,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](\(foo\))
"###,
&danger
@@ -7228,7 +7228,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo(and(bar)))
"###,
&danger
@@ -7239,7 +7239,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo(and(bar))
"###,
&danger
@@ -7250,7 +7250,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\(and\(bar\))
"###,
&danger
@@ -7261,7 +7261,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](<foo(and(bar)>)
"###,
&danger
@@ -7272,7 +7272,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\)\:)
"###,
&danger
@@ -7283,7 +7283,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](#fragment)
[link](http://example.com#fragment)
@@ -7300,7 +7300,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\bar)
"###,
&danger
@@ -7311,7 +7311,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo%20b&auml;)
"###,
&danger
@@ -7322,7 +7322,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]("title")
"###,
&danger
@@ -7333,7 +7333,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title")
[link](/url 'title')
[link](/url (title))
@@ -7348,7 +7348,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title \"&quot;")
"###,
&danger
@@ -7359,7 +7359,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title")
"###,
&danger
@@ -7370,7 +7370,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title "and" title")
"###,
&danger
@@ -7381,7 +7381,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url 'title "and" title')
"###,
&danger
@@ -7392,7 +7392,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]( /uri
"title" )
"###,
@@ -7404,7 +7404,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link] (/uri)
"###,
&danger
@@ -7415,7 +7415,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [foo [bar]]](/uri)
"###,
&danger
@@ -7426,7 +7426,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link] bar](/uri)
"###,
&danger
@@ -7437,7 +7437,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [bar](/uri)
"###,
&danger
@@ -7448,7 +7448,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link \[bar](/uri)
"###,
&danger
@@ -7459,7 +7459,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link *foo **bar** `#`*](/uri)
"###,
&danger
@@ -7470,7 +7470,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[![moon](moon.jpg)](/uri)
"###,
&danger
@@ -7481,7 +7481,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo [bar](/uri)](/uri)
"###,
&danger
@@ -7492,7 +7492,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *[bar [baz](/uri)](/uri)*](/uri)
"###,
&danger
@@ -7503,7 +7503,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![[[foo](uri1)](uri2)](uri3)
"###,
&danger
@@ -7514,7 +7514,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[foo*](/uri)
"###,
&danger
@@ -7525,7 +7525,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar](baz*)
"###,
&danger
@@ -7536,7 +7536,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [bar* baz]
"###,
&danger
@@ -7547,7 +7547,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo <bar attr="](baz)">
"###,
&danger
@@ -7558,7 +7558,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo`](/uri)`
"###,
&danger
@@ -7569,7 +7569,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo<http://example.com/?search=](uri)>
"###,
&danger
@@ -7580,7 +7580,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar]
[bar]: /url "title"
@@ -7593,7 +7593,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [foo [bar]]][ref]
[ref]: /uri
@@ -7606,7 +7606,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link \[bar][ref]
[ref]: /uri
@@ -7619,7 +7619,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link *foo **bar** `#`*][ref]
[ref]: /uri
@@ -7632,7 +7632,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[![moon](moon.jpg)][ref]
[ref]: /uri
@@ -7645,7 +7645,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo [bar](/uri)][ref]
[ref]: /uri
@@ -7658,7 +7658,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar [baz][ref]*][ref]
[ref]: /uri
@@ -7671,7 +7671,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[foo*][ref]
[ref]: /uri
@@ -7684,7 +7684,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar][ref]*
[ref]: /uri
@@ -7697,7 +7697,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo <bar attr="][ref]">
[ref]: /uri
@@ -7710,7 +7710,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo`][ref]`
[ref]: /uri
@@ -7723,7 +7723,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo<http://example.com/?search=][ref]>
[ref]: /uri
@@ -7736,7 +7736,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][BaR]
[bar]: /url "title"
@@ -7749,7 +7749,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[ẞ]
[SS]: /url
@@ -7762,7 +7762,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo
bar]: /url
@@ -7776,7 +7776,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo] [bar]
[bar]: /url "title"
@@ -7789,7 +7789,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[bar]
@@ -7804,7 +7804,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url1
[foo]: /url2
@@ -7819,7 +7819,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[bar][foo\!]
[foo!]: /url
@@ -7832,7 +7832,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref[]
[ref[]: /uri
@@ -7846,7 +7846,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref[bar]]
[ref[bar]]: /uri
@@ -7860,7 +7860,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[[foo]]]
[[[foo]]]: /url
@@ -7874,7 +7874,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref\[]
[ref\[]: /uri
@@ -7887,7 +7887,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[bar\\]: /uri
[bar\\]
@@ -7900,7 +7900,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[]
[]: /uri
@@ -7914,7 +7914,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[
]
@@ -7932,7 +7932,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][]
[foo]: /url "title"
@@ -7945,7 +7945,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[*foo* bar][]
[*foo* bar]: /url "title"
@@ -7958,7 +7958,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo][]
[foo]: /url "title"
@@ -7971,7 +7971,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[]
@@ -7986,7 +7986,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: /url "title"
@@ -7999,7 +7999,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[*foo* bar]
[*foo* bar]: /url "title"
@@ -8012,7 +8012,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[*foo* bar]]
[*foo* bar]: /url "title"
@@ -8025,7 +8025,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[bar [foo]
[foo]: /url
@@ -8038,7 +8038,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo]
[foo]: /url "title"
@@ -8051,7 +8051,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo] bar
[foo]: /url
@@ -8064,7 +8064,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\[foo]
[foo]: /url "title"
@@ -8077,7 +8077,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo*]: /url
*[foo*]
@@ -8090,7 +8090,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar]
[foo]: /url1
@@ -8104,7 +8104,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][]
[foo]: /url1
@@ -8117,7 +8117,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]()
[foo]: /url1
@@ -8130,7 +8130,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo](not a link)
[foo]: /url1
@@ -8143,7 +8143,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url
@@ -8156,7 +8156,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
@@ -8170,7 +8170,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
@@ -8184,7 +8184,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo](/url "title")
"###,
&danger
@@ -8195,7 +8195,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*]
[foo *bar*]: train.jpg "train & tracks"
@@ -8208,7 +8208,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo ![bar](/url)](/url2)
"###,
&danger
@@ -8219,7 +8219,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo [bar](/url)](/url2)
"###,
&danger
@@ -8230,7 +8230,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*][]
[foo *bar*]: train.jpg "train & tracks"
@@ -8243,7 +8243,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*][foobar]
[FOOBAR]: train.jpg "train & tracks"
@@ -8256,7 +8256,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo](train.jpg)
"###,
&danger
@@ -8267,7 +8267,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"My ![foo bar](/path/to/train.jpg "title" )
"###,
&danger
@@ -8278,7 +8278,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo](<url>)
"###,
&danger
@@ -8289,7 +8289,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![](/url)
"###,
&danger
@@ -8300,7 +8300,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][bar]
[bar]: /url
@@ -8313,7 +8313,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][bar]
[BAR]: /url
@@ -8326,7 +8326,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][]
[foo]: /url "title"
@@ -8339,7 +8339,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![*foo* bar][]
[*foo* bar]: /url "title"
@@ -8352,7 +8352,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![Foo][]
[foo]: /url "title"
@@ -8365,7 +8365,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo]
[]
@@ -8380,7 +8380,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo]
[foo]: /url "title"
@@ -8393,7 +8393,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![*foo* bar]
[*foo* bar]: /url "title"
@@ -8406,7 +8406,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![[foo]]
[[foo]]: /url "title"
@@ -8420,7 +8420,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![Foo]
[foo]: /url "title"
@@ -8433,7 +8433,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"!\[foo]
[foo]: /url "title"
@@ -8446,7 +8446,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\![foo]
[foo]: /url "title"
@@ -8459,7 +8459,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://foo.bar.baz>
"###,
&danger
@@ -8470,7 +8470,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://foo.bar.baz/test?q=hello&id=22&boolean>
"###,
&danger
@@ -8481,7 +8481,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<irc://foo.bar:2233/baz>
"###,
&danger
@@ -8492,7 +8492,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<MAILTO:FOO@BAR.BAZ>
"###,
&danger
@@ -8503,7 +8503,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a+b+c:d>
"###,
&danger
@@ -8514,7 +8514,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<made-up-scheme://foo,bar>
"###,
&danger
@@ -8525,7 +8525,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://../>
"###,
&danger
@@ -8536,7 +8536,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<localhost:5001/foo>
"###,
&danger
@@ -8547,7 +8547,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://foo.bar/baz bim>
"###,
&danger
@@ -8558,7 +8558,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<http://example.com/\[\>
"###,
&danger
@@ -8569,7 +8569,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<foo@bar.example.com>
"###,
&danger
@@ -8580,7 +8580,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<foo+special@Bar.baz-bar0.com>
"###,
&danger
@@ -8591,7 +8591,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<foo\+@bar.example.com>
"###,
&danger
@@ -8602,7 +8602,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<>
"###,
&danger
@@ -8613,7 +8613,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"< http://foo.bar >
"###,
&danger
@@ -8624,7 +8624,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<m:abc>
"###,
&danger
@@ -8635,7 +8635,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<foo.bar.baz>
"###,
&danger
@@ -8646,7 +8646,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"http://example.com
"###,
&danger
@@ -8657,7 +8657,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo@bar.example.com
"###,
&danger
@@ -8668,7 +8668,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a><bab><c2c>
"###,
&danger
@@ -8679,7 +8679,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a/><b2/>
"###,
&danger
@@ -8690,7 +8690,7 @@ bar>)</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a /><b2
data="foo" >
"###,
@@ -8703,7 +8703,7 @@ data="foo" ></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a foo="bar" bam = 'baz <em>"</em>'
_boolean zoop:33=zoop:33 />
"###,
@@ -8716,7 +8716,7 @@ _boolean zoop:33=zoop:33 /></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo <responsive-image src="foo.jpg" />
"###,
&danger
@@ -8727,7 +8727,7 @@ _boolean zoop:33=zoop:33 /></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<33> <__>
"###,
&danger
@@ -8738,7 +8738,7 @@ _boolean zoop:33=zoop:33 /></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a h*#ref="hi">
"###,
&danger
@@ -8749,7 +8749,7 @@ _boolean zoop:33=zoop:33 /></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="hi'> <a href=hi'>
"###,
&danger
@@ -8760,7 +8760,7 @@ _boolean zoop:33=zoop:33 /></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"< a><
foo><bar/ >
<foo bar=baz
@@ -8777,7 +8777,7 @@ bim!bop /&gt;</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href='bar'title=title>
"###,
&danger
@@ -8788,7 +8788,7 @@ bim!bop /&gt;</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"</a></foo >
"###,
&danger
@@ -8799,7 +8799,7 @@ bim!bop /&gt;</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"</a href="foo">
"###,
&danger
@@ -8810,7 +8810,7 @@ bim!bop /&gt;</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <!-- this is a
comment - with hyphen -->
"###,
@@ -8823,7 +8823,7 @@ comment - with hyphen --></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <!-- not a comment -- two hyphens -->
"###,
&danger
@@ -8834,7 +8834,7 @@ comment - with hyphen --></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <!--> foo -->
foo <!-- foo--->
@@ -8848,7 +8848,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <?php echo $a; ?>
"###,
&danger
@@ -8859,7 +8859,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <!ELEMENT br EMPTY>
"###,
&danger
@@ -8870,7 +8870,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <![CDATA[>&<]]>
"###,
&danger
@@ -8881,7 +8881,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <a href="&ouml;">
"###,
&danger
@@ -8892,7 +8892,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo <a href="\*">
"###,
&danger
@@ -8903,7 +8903,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="\"">
"###,
&danger
@@ -8914,7 +8914,7 @@ foo <!-- foo--->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -8927,7 +8927,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
baz
"###,
@@ -8940,7 +8940,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -8953,7 +8953,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
bar
"###,
@@ -8966,7 +8966,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
bar
"###,
@@ -8979,7 +8979,7 @@ bar</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo
bar*
"###,
@@ -8992,7 +8992,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo\
bar*
"###,
@@ -9005,7 +9005,7 @@ bar</em></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`code
span`
"###,
@@ -9017,7 +9017,7 @@ span`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`code\
span`
"###,
@@ -9029,7 +9029,7 @@ span`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="foo
bar">
"###,
@@ -9042,7 +9042,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<a href="foo\
bar">
"###,
@@ -9055,7 +9055,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
"###,
&danger
@@ -9066,7 +9066,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -9077,7 +9077,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo\
"###,
&danger
@@ -9088,7 +9088,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo
"###,
&danger
@@ -9099,7 +9099,7 @@ bar"></p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -9112,7 +9112,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -9125,7 +9125,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"hello $.;'there
"###,
&danger
@@ -9136,7 +9136,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo χρῆν
"###,
&danger
@@ -9147,7 +9147,7 @@ baz</p>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Multiple spaces
"###,
&danger