*Emphasized* text.
@@ -2833,7 +2833,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
*Emphasized* text.
@@ -2848,7 +2848,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
@@ -2875,7 +2875,7 @@ Hi
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
@@ -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]:
'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]: (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
);
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
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"aaa
bbb
ccc
@@ -3368,7 +3368,7 @@ ccc
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" aaa
bbb
"###,
@@ -3381,7 +3381,7 @@ bbb
);
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
);
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
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"># Foo
>bar
> baz
@@ -3461,7 +3461,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > # Foo
> bar
> baz
@@ -3478,7 +3478,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > # Foo
> bar
> baz
@@ -3494,7 +3494,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> # Foo
> bar
baz
@@ -3511,7 +3511,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
baz
> foo
@@ -3528,7 +3528,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
---
"###,
@@ -3543,7 +3543,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> - foo
- bar
"###,
@@ -3562,7 +3562,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
bar
"###,
@@ -3579,7 +3579,7 @@ foo
);
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
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> foo
>
> bar
@@ -3701,7 +3701,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
> bar
"###,
@@ -3716,7 +3716,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> aaa
***
> bbb
@@ -3735,7 +3735,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> bar
baz
"###,
@@ -3750,7 +3750,7 @@ baz
);
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
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">>> foo
> bar
>>baz
@@ -3822,7 +3822,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> code
> not code
@@ -3841,7 +3841,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"A paragraph
with two lines.
@@ -3863,7 +3863,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. A paragraph
with two lines.
@@ -3889,7 +3889,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- one
two
@@ -3905,7 +3905,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- one
two
@@ -3923,7 +3923,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - one
two
@@ -3940,7 +3940,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" - one
two
@@ -3958,7 +3958,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" > > 1. one
>>
>> two
@@ -3980,7 +3980,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###">>- one
>>
> > two
@@ -4000,7 +4000,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"-one
2.two
@@ -4014,7 +4014,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
@@ -4033,7 +4033,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
```
@@ -4062,7 +4062,7 @@ with two lines.
);
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.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4491,7 +4491,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4517,7 +4517,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4539,7 +4539,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
@@ -4565,7 +4565,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###" 1. A paragraph
with two lines.
"###,
@@ -4580,7 +4580,7 @@ with two lines.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> 1. > Blockquote
continued here.
"###,
@@ -4601,7 +4601,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"> 1. > Blockquote
> continued here.
"###,
@@ -4622,7 +4622,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4650,7 +4650,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4669,7 +4669,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"10) foo
- bar
"###,
@@ -4687,7 +4687,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"10) foo
- bar
"###,
@@ -4704,7 +4704,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- - foo
"###,
&danger
@@ -4721,7 +4721,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. - 2. foo
"###,
&danger
@@ -4742,7 +4742,7 @@ continued here.
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- # Foo
- Bar
---
@@ -4763,7 +4763,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
+ baz
@@ -4782,7 +4782,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. foo
2. bar
3) baz
@@ -4801,7 +4801,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
- bar
- baz
@@ -4818,7 +4818,7 @@ baz
);
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
);
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
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
@@ -4872,7 +4872,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
- baz
@@ -4901,7 +4901,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
- bar
@@ -4926,7 +4926,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- foo
notcode
@@ -4956,7 +4956,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -4981,7 +4981,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. a
2. b
@@ -5006,7 +5006,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -5027,7 +5027,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. a
2. b
@@ -5051,7 +5051,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5075,7 +5075,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* a
*
@@ -5097,7 +5097,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5123,7 +5123,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5148,7 +5148,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- ```
b
@@ -5174,7 +5174,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
@@ -5199,7 +5199,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* a
> b
>
@@ -5220,7 +5220,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
> b
```
@@ -5245,7 +5245,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
"###,
&danger
@@ -5258,7 +5258,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
"###,
@@ -5276,7 +5276,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"1. ```
foo
```
@@ -5297,7 +5297,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"* foo
* bar
@@ -5319,7 +5319,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"- a
- b
- c
@@ -5351,7 +5351,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`hi`lo`
"###,
&danger
@@ -5362,7 +5362,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`foo`
"###,
&danger
@@ -5373,7 +5373,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`` foo ` bar ``
"###,
&danger
@@ -5384,7 +5384,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `` `
"###,
&danger
@@ -5395,7 +5395,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `` `
"###,
&danger
@@ -5406,7 +5406,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` a`
"###,
&danger
@@ -5417,7 +5417,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` b `
"###,
&danger
@@ -5428,7 +5428,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"` `
` `
"###,
@@ -5441,7 +5441,7 @@ baz
);
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###"``
"###,
&danger
@@ -5547,7 +5547,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`
"###,
&danger
@@ -5558,7 +5558,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"``
"###,
&danger
@@ -5569,7 +5569,7 @@ baz`
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"`
"###,
&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__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"a__"foo"__
"###,
&danger
@@ -6002,7 +6002,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo__bar__
"###,
&danger
@@ -6013,7 +6013,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"5__6__78
"###,
&danger
@@ -6024,7 +6024,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"пристаням__стремятся__
"###,
&danger
@@ -6035,7 +6035,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo, __bar__, baz__
"###,
&danger
@@ -6046,7 +6046,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo-__(bar)__
"###,
&danger
@@ -6057,7 +6057,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo bar **
"###,
&danger
@@ -6068,7 +6068,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**(**foo)
"###,
&danger
@@ -6079,7 +6079,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*(**foo**)*
"###,
&danger
@@ -6090,7 +6090,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
*Asclepias physocarpa*)**
"###,
@@ -6103,7 +6103,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo "*bar*" foo**
"###,
&danger
@@ -6114,7 +6114,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo**bar
"###,
&danger
@@ -6125,7 +6125,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo bar __
"###,
&danger
@@ -6136,7 +6136,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__(__foo)
"###,
&danger
@@ -6147,7 +6147,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_(__foo__)_
"###,
&danger
@@ -6158,7 +6158,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__bar
"###,
&danger
@@ -6169,7 +6169,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__пристаням__стремятся
"###,
&danger
@@ -6180,7 +6180,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__bar__baz__
"###,
&danger
@@ -6191,7 +6191,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__(bar)__.
"###,
&danger
@@ -6202,7 +6202,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [bar](/url)*
"###,
&danger
@@ -6213,7 +6213,7 @@ foo bar__
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo
bar*
"###,
@@ -6226,7 +6226,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo __bar__ baz_
"###,
&danger
@@ -6237,7 +6237,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo _bar_ baz_
"###,
&danger
@@ -6248,7 +6248,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo_ bar_
"###,
&danger
@@ -6259,7 +6259,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo *bar**
"###,
&danger
@@ -6270,7 +6270,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar** baz*
"###,
&danger
@@ -6281,7 +6281,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar**baz*
"###,
&danger
@@ -6292,7 +6292,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar*
"###,
&danger
@@ -6303,7 +6303,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo** bar*
"###,
&danger
@@ -6314,7 +6314,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar***
"###,
&danger
@@ -6325,7 +6325,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**bar***
"###,
&danger
@@ -6336,7 +6336,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo***bar***baz
"###,
&danger
@@ -6347,7 +6347,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo******bar*********baz
"###,
&danger
@@ -6358,7 +6358,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo **bar *baz* bim** bop*
"###,
&danger
@@ -6369,7 +6369,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [*bar*](/url)*
"###,
&danger
@@ -6380,7 +6380,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"** is not an empty emphasis
"###,
&danger
@@ -6391,7 +6391,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**** is not an empty strong emphasis
"###,
&danger
@@ -6402,7 +6402,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo [bar](/url)**
"###,
&danger
@@ -6413,7 +6413,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo
bar**
"###,
@@ -6426,7 +6426,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo _bar_ baz__
"###,
&danger
@@ -6437,7 +6437,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo __bar__ baz__
"###,
&danger
@@ -6448,7 +6448,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo__ bar__
"###,
&danger
@@ -6459,7 +6459,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo **bar****
"###,
&danger
@@ -6470,7 +6470,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar* baz**
"###,
&danger
@@ -6481,7 +6481,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo*bar*baz**
"###,
&danger
@@ -6492,7 +6492,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo* bar**
"###,
&danger
@@ -6503,7 +6503,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar***
"###,
&danger
@@ -6514,7 +6514,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo *bar **baz**
bim* bop**
"###,
@@ -6527,7 +6527,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo [*bar*](/url)**
"###,
&danger
@@ -6538,7 +6538,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__ is not an empty emphasis
"###,
&danger
@@ -6549,7 +6549,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____ is not an empty strong emphasis
"###,
&danger
@@ -6560,7 +6560,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo ***
"###,
&danger
@@ -6571,7 +6571,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *\**
"###,
&danger
@@ -6582,7 +6582,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *_*
"###,
&danger
@@ -6593,7 +6593,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo *****
"###,
&danger
@@ -6604,7 +6604,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo **\***
"###,
&danger
@@ -6615,7 +6615,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo **_**
"###,
&danger
@@ -6626,7 +6626,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo*
"###,
&danger
@@ -6637,7 +6637,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo**
"###,
&danger
@@ -6648,7 +6648,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo**
"###,
&danger
@@ -6659,7 +6659,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"****foo*
"###,
&danger
@@ -6670,7 +6670,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo***
"###,
&danger
@@ -6681,7 +6681,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo****
"###,
&danger
@@ -6692,7 +6692,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo ___
"###,
&danger
@@ -6703,7 +6703,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _\__
"###,
&danger
@@ -6714,7 +6714,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _*_
"###,
&danger
@@ -6725,7 +6725,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo _____
"###,
&danger
@@ -6736,7 +6736,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo __\___
"###,
&danger
@@ -6747,7 +6747,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo __*__
"###,
&danger
@@ -6758,7 +6758,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo_
"###,
&danger
@@ -6769,7 +6769,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo__
"###,
&danger
@@ -6780,7 +6780,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"___foo__
"###,
&danger
@@ -6791,7 +6791,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo_
"###,
&danger
@@ -6802,7 +6802,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo___
"###,
&danger
@@ -6813,7 +6813,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo____
"###,
&danger
@@ -6824,7 +6824,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo**
"###,
&danger
@@ -6835,7 +6835,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*_foo_*
"###,
&danger
@@ -6846,7 +6846,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__foo__
"###,
&danger
@@ -6857,7 +6857,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_*foo*_
"###,
&danger
@@ -6868,7 +6868,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"****foo****
"###,
&danger
@@ -6879,7 +6879,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"____foo____
"###,
&danger
@@ -6890,7 +6890,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"******foo******
"###,
&danger
@@ -6901,7 +6901,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"***foo***
"###,
&danger
@@ -6912,7 +6912,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_____foo_____
"###,
&danger
@@ -6923,7 +6923,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo _bar* baz_
"###,
&danger
@@ -6934,7 +6934,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo __bar *baz bim__ bam*
"###,
&danger
@@ -6945,7 +6945,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**foo **bar baz**
"###,
&danger
@@ -6956,7 +6956,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo *bar baz*
"###,
&danger
@@ -6967,7 +6967,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[bar*](/url)
"###,
&danger
@@ -6978,7 +6978,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_foo [bar_](/url)
"###,
&danger
@@ -6989,7 +6989,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*
"###,
&danger
@@ -7000,7 +7000,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**
"###,
&danger
@@ -7011,7 +7011,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__
"###,
&danger
@@ -7022,7 +7022,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*a `*`*
"###,
&danger
@@ -7033,7 +7033,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"_a `_`_
"###,
&danger
@@ -7044,7 +7044,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"**a
"###,
&danger
@@ -7055,7 +7055,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"__a
"###,
&danger
@@ -7066,7 +7066,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/uri "title")
"###,
&danger
@@ -7077,7 +7077,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/uri)
"###,
&danger
@@ -7088,7 +7088,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[](./target.md)
"###,
&danger
@@ -7099,7 +7099,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
&danger
@@ -7110,7 +7110,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](<>)
"###,
&danger
@@ -7121,7 +7121,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[]()
"###,
&danger
@@ -7132,7 +7132,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/my uri)
"###,
&danger
@@ -7143,7 +7143,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
&danger
@@ -7154,7 +7154,7 @@ bim bop
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo
bar)
"###,
@@ -7167,7 +7167,7 @@ bar)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
@@ -7180,7 +7180,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[a]()
"###,
&danger
@@ -7191,7 +7191,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
&danger
@@ -7202,7 +7202,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[a](
[a](c)
@@ -7217,7 +7217,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](\(foo\))
"###,
&danger
@@ -7228,7 +7228,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo(and(bar)))
"###,
&danger
@@ -7239,7 +7239,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo(and(bar))
"###,
&danger
@@ -7250,7 +7250,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\(and\(bar\))
"###,
&danger
@@ -7261,7 +7261,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]()
"###,
&danger
@@ -7272,7 +7272,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\)\:)
"###,
&danger
@@ -7283,7 +7283,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](#fragment)
[link](http://example.com#fragment)
@@ -7300,7 +7300,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo\bar)
"###,
&danger
@@ -7311,7 +7311,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](foo%20bä)
"###,
&danger
@@ -7322,7 +7322,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]("title")
"###,
&danger
@@ -7333,7 +7333,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title")
[link](/url 'title')
[link](/url (title))
@@ -7348,7 +7348,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title \""")
"###,
&danger
@@ -7359,7 +7359,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title")
"###,
&danger
@@ -7370,7 +7370,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url "title "and" title")
"###,
&danger
@@ -7381,7 +7381,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link](/url 'title "and" title')
"###,
&danger
@@ -7392,7 +7392,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link]( /uri
"title" )
"###,
@@ -7404,7 +7404,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link] (/uri)
"###,
&danger
@@ -7415,7 +7415,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [foo [bar]]](/uri)
"###,
&danger
@@ -7426,7 +7426,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link] bar](/uri)
"###,
&danger
@@ -7437,7 +7437,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [bar](/uri)
"###,
&danger
@@ -7448,7 +7448,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link \[bar](/uri)
"###,
&danger
@@ -7459,7 +7459,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link *foo **bar** `#`*](/uri)
"###,
&danger
@@ -7470,7 +7470,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[![moon](moon.jpg)](/uri)
"###,
&danger
@@ -7481,7 +7481,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo [bar](/uri)](/uri)
"###,
&danger
@@ -7492,7 +7492,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *[bar [baz](/uri)](/uri)*](/uri)
"###,
&danger
@@ -7503,7 +7503,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![[[foo](uri1)](uri2)](uri3)
"###,
&danger
@@ -7514,7 +7514,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[foo*](/uri)
"###,
&danger
@@ -7525,7 +7525,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar](baz*)
"###,
&danger
@@ -7536,7 +7536,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo [bar* baz]
"###,
&danger
@@ -7547,7 +7547,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo
"###,
&danger
@@ -7558,7 +7558,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo`](/uri)`
"###,
&danger
@@ -7569,7 +7569,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo
"###,
&danger
@@ -7580,7 +7580,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar]
[bar]: /url "title"
@@ -7593,7 +7593,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link [foo [bar]]][ref]
[ref]: /uri
@@ -7606,7 +7606,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link \[bar][ref]
[ref]: /uri
@@ -7619,7 +7619,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[link *foo **bar** `#`*][ref]
[ref]: /uri
@@ -7632,7 +7632,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[![moon](moon.jpg)][ref]
[ref]: /uri
@@ -7645,7 +7645,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo [bar](/uri)][ref]
[ref]: /uri
@@ -7658,7 +7658,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar [baz][ref]*][ref]
[ref]: /uri
@@ -7671,7 +7671,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*[foo*][ref]
[ref]: /uri
@@ -7684,7 +7684,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo *bar][ref]*
[ref]: /uri
@@ -7697,7 +7697,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo
[ref]: /uri
@@ -7710,7 +7710,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo`][ref]`
[ref]: /uri
@@ -7723,7 +7723,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo
[ref]: /uri
@@ -7736,7 +7736,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][BaR]
[bar]: /url "title"
@@ -7749,7 +7749,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[ẞ]
[SS]: /url
@@ -7762,7 +7762,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo
bar]: /url
@@ -7776,7 +7776,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo] [bar]
[bar]: /url "title"
@@ -7789,7 +7789,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[bar]
@@ -7804,7 +7804,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]: /url1
[foo]: /url2
@@ -7819,7 +7819,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[bar][foo\!]
[foo!]: /url
@@ -7832,7 +7832,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref[]
[ref[]: /uri
@@ -7846,7 +7846,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref[bar]]
[ref[bar]]: /uri
@@ -7860,7 +7860,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[[foo]]]
[[[foo]]]: /url
@@ -7874,7 +7874,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][ref\[]
[ref\[]: /uri
@@ -7887,7 +7887,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[bar\\]: /uri
[bar\\]
@@ -7900,7 +7900,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[]
[]: /uri
@@ -7914,7 +7914,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[
]
@@ -7932,7 +7932,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][]
[foo]: /url "title"
@@ -7945,7 +7945,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[*foo* bar][]
[*foo* bar]: /url "title"
@@ -7958,7 +7958,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo][]
[foo]: /url "title"
@@ -7971,7 +7971,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[]
@@ -7986,7 +7986,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]
[foo]: /url "title"
@@ -7999,7 +7999,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[*foo* bar]
[*foo* bar]: /url "title"
@@ -8012,7 +8012,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[*foo* bar]]
[*foo* bar]: /url "title"
@@ -8025,7 +8025,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[[bar [foo]
[foo]: /url
@@ -8038,7 +8038,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[Foo]
[foo]: /url "title"
@@ -8051,7 +8051,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo] bar
[foo]: /url
@@ -8064,7 +8064,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\[foo]
[foo]: /url "title"
@@ -8077,7 +8077,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo*]: /url
*[foo*]
@@ -8090,7 +8090,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar]
[foo]: /url1
@@ -8104,7 +8104,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][]
[foo]: /url1
@@ -8117,7 +8117,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo]()
[foo]: /url1
@@ -8130,7 +8130,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo](not a link)
[foo]: /url1
@@ -8143,7 +8143,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url
@@ -8156,7 +8156,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
@@ -8170,7 +8170,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"[foo][bar][baz]
[baz]: /url1
@@ -8184,7 +8184,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo](/url "title")
"###,
&danger
@@ -8195,7 +8195,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*]
[foo *bar*]: train.jpg "train & tracks"
@@ -8208,7 +8208,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo ![bar](/url)](/url2)
"###,
&danger
@@ -8219,7 +8219,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo [bar](/url)](/url2)
"###,
&danger
@@ -8230,7 +8230,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*][]
[foo *bar*]: train.jpg "train & tracks"
@@ -8243,7 +8243,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo *bar*][foobar]
[FOOBAR]: train.jpg "train & tracks"
@@ -8256,7 +8256,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo](train.jpg)
"###,
&danger
@@ -8267,7 +8267,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"My ![foo bar](/path/to/train.jpg "title" )
"###,
&danger
@@ -8278,7 +8278,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo]()
"###,
&danger
@@ -8289,7 +8289,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![](/url)
"###,
&danger
@@ -8300,7 +8300,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][bar]
[bar]: /url
@@ -8313,7 +8313,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][bar]
[BAR]: /url
@@ -8326,7 +8326,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo][]
[foo]: /url "title"
@@ -8339,7 +8339,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![*foo* bar][]
[*foo* bar]: /url "title"
@@ -8352,7 +8352,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![Foo][]
[foo]: /url "title"
@@ -8365,7 +8365,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo]
[]
@@ -8380,7 +8380,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![foo]
[foo]: /url "title"
@@ -8393,7 +8393,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![*foo* bar]
[*foo* bar]: /url "title"
@@ -8406,7 +8406,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![[foo]]
[[foo]]: /url "title"
@@ -8420,7 +8420,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"![Foo]
[foo]: /url "title"
@@ -8433,7 +8433,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"!\[foo]
[foo]: /url "title"
@@ -8446,7 +8446,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"\![foo]
[foo]: /url "title"
@@ -8459,7 +8459,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8470,7 +8470,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8481,7 +8481,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8492,7 +8492,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8503,7 +8503,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8514,7 +8514,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8525,7 +8525,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8536,7 +8536,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8547,7 +8547,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8558,7 +8558,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8569,7 +8569,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8580,7 +8580,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8591,7 +8591,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8602,7 +8602,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<>
"###,
&danger
@@ -8613,7 +8613,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"< http://foo.bar >
"###,
&danger
@@ -8624,7 +8624,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8635,7 +8635,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8646,7 +8646,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"http://example.com
"###,
&danger
@@ -8657,7 +8657,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo@bar.example.com
"###,
&danger
@@ -8668,7 +8668,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8679,7 +8679,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8690,7 +8690,7 @@ bar>)
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
@@ -8703,7 +8703,7 @@ data="foo" >
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
@@ -8716,7 +8716,7 @@ _boolean zoop:33=zoop:33 />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo
"###,
&danger
@@ -8727,7 +8727,7 @@ _boolean zoop:33=zoop:33 />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"<33> <__>
"###,
&danger
@@ -8738,7 +8738,7 @@ _boolean zoop:33=zoop:33 />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8749,7 +8749,7 @@ _boolean zoop:33=zoop:33 />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"< a><
foo>
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8788,7 +8788,7 @@ bim!bop />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8799,7 +8799,7 @@ bim!bop />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8810,7 +8810,7 @@ bim!bop />
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
@@ -8823,7 +8823,7 @@ comment - with hyphen -->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -8834,7 +8834,7 @@ comment - with hyphen -->
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo foo -->
foo
@@ -8848,7 +8848,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -8859,7 +8859,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -8870,7 +8870,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo &<]]>
"###,
&danger
@@ -8881,7 +8881,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -8892,7 +8892,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -8903,7 +8903,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
&danger
@@ -8914,7 +8914,7 @@ foo
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -8927,7 +8927,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
baz
"###,
@@ -8940,7 +8940,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -8953,7 +8953,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
bar
"###,
@@ -8966,7 +8966,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
bar
"###,
@@ -8979,7 +8979,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo
bar*
"###,
@@ -8992,7 +8992,7 @@ bar
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"*foo\
bar*
"###,
@@ -9005,7 +9005,7 @@ bar
);
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###"
"###,
@@ -9042,7 +9042,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"
"###,
@@ -9055,7 +9055,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo\
"###,
&danger
@@ -9066,7 +9066,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
"###,
&danger
@@ -9077,7 +9077,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo\
"###,
&danger
@@ -9088,7 +9088,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"### foo
"###,
&danger
@@ -9099,7 +9099,7 @@ bar">
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -9112,7 +9112,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"foo
baz
"###,
@@ -9125,7 +9125,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"hello $.;'there
"###,
&danger
@@ -9136,7 +9136,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Foo χρῆν
"###,
&danger
@@ -9147,7 +9147,7 @@ baz
);
assert_eq!(
- micromark_with_options(
+ to_html_with_options(
r###"Multiple spaces
"###,
&danger
--
cgit