(baz)
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"[foo]: (baz)
[foo]
"###,
r###"Link reference definitions (200)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url\bar\*baz "foo\"bar\baz"
+ micromark_with_options(r###"[foo]: /url\bar\*baz "foo\"bar\baz"
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
"###,
r###"Link reference definitions (201)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]
+ micromark_with_options(r###"[foo]
[foo]: url
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
"###,
r###"Link reference definitions (202)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]
+ micromark_with_options(r###"[foo]
[foo]: first
[foo]: second
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
"###,
r###"Link reference definitions (203)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[FOO]: /url
+ micromark_with_options(r###"[FOO]: /url
[Foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"Foo
"###,
r###"Link reference definitions (204)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[ΑΓΩ]: /φου
+ micromark_with_options(r###"[ΑΓΩ]: /φου
[αγω]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"αγω
"###,
r###"Link reference definitions (205)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[foo]: /url
+"###, DANGER),
r###""###,
r###"Link reference definitions (206)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[
+ micromark_with_options(r###"[
foo
]: /url
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"bar
"###,
r###"Link reference definitions (207)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url "title" ok
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[foo]: /url "title" ok
+"###, DANGER),
r###"[foo]: /url "title" ok
"###,
r###"Link reference definitions (208)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url
+ micromark_with_options(r###"[foo]: /url
"title" ok
-"###,
- DANGER
- ),
+"###, DANGER),
r###""title" ok
"###,
r###"Link reference definitions (209)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" [foo]: /url "title"
+ micromark_with_options(r###" [foo]: /url "title"
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"[foo]: /url "title"
[foo]
"###,
r###"Link reference definitions (210)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"```
+ micromark_with_options(r###"```
[foo]: /url
```
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"[foo]: /url
[foo]
"###,
r###"Link reference definitions (211)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"Foo
+ micromark_with_options(r###"Foo
[bar]: /baz
[bar]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"Foo
[bar]: /baz
[bar]
"###,
r###"Link reference definitions (212)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"# [Foo]
+ micromark_with_options(r###"# [Foo]
[foo]: /url
> bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
bar
"###,
r###"Link reference definitions (213)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url
+ micromark_with_options(r###"[foo]: /url
bar
===
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"bar
foo
"###,
r###"Link reference definitions (214)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /url
+ micromark_with_options(r###"[foo]: /url
===
[foo]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"===
foo
"###,
r###"Link reference definitions (215)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[foo]: /foo-url "foo"
+ micromark_with_options(r###"[foo]: /foo-url "foo"
[bar]: /bar-url
"bar"
[baz]: /baz-url
@@ -3246,169 +2615,139 @@ bar
[foo],
[bar],
[baz]
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo,
bar,
baz
"###,
r###"Link reference definitions (216)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"[foo]
+ // To do: eol after definition in otherwise empty block quote.
+// assert_eq!(
+// micromark_with_options(r###"[foo]
- // > [foo]: /url
- // "###, DANGER),
- // r###"foo
- //
- //
- // "###,
- // r###"Link reference definitions (217)"###
- // );
+// > [foo]: /url
+// "###, DANGER),
+// r###"foo
+//
+//
+// "###,
+// r###"Link reference definitions (217)"###
+// );
assert_eq!(
- micromark_with_options(
- r###"aaa
+ micromark_with_options(r###"aaa
bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
"###,
r###"Paragraphs (218)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"aaa
+ micromark_with_options(r###"aaa
bbb
ccc
ddd
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
ccc
ddd
"###,
r###"Paragraphs (219)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"aaa
+ micromark_with_options(r###"aaa
bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
"###,
r###"Paragraphs (220)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" aaa
+ micromark_with_options(r###" aaa
bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
"###,
r###"Paragraphs (221)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"aaa
+ micromark_with_options(r###"aaa
bbb
ccc
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
ccc
"###,
r###"Paragraphs (222)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" aaa
+ micromark_with_options(r###" aaa
bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
"###,
r###"Paragraphs (223)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" aaa
+ micromark_with_options(r###" aaa
bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"aaa
bbb
"###,
r###"Paragraphs (224)"###
- );
+);
- // To do: whitespace trimming of editor likely?
- // assert_eq!(
- // micromark_with_options(r###"aaa
- // bbb
- // "###, DANGER),
- // r###"aaa
- // bbb
- // "###,
- // r###"Paragraphs (225)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"aaa
+bbb
+"###, DANGER),
+ r###"aaa
+bbb
+"###,
+ r###"Paragraphs (225)"###
+);
assert_eq!(
- micromark_with_options(
- r###"
+ micromark_with_options(r###"
aaa
-
+
# aaa
-
-"###,
- DANGER
- ),
+
+"###, DANGER),
r###"aaa
aaa
"###,
r###"Blank lines (226)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> # Foo
+ micromark_with_options(r###"> # Foo
> bar
> baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
Foo
bar
@@ -3416,16 +2755,13 @@ baz
"###,
r###"Block quotes (227)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"># Foo
+ micromark_with_options(r###"># Foo
>bar
> baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
Foo
bar
@@ -3433,16 +2769,13 @@ baz
"###,
r###"Block quotes (228)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" > # Foo
+ micromark_with_options(r###" > # Foo
> bar
> baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
Foo
bar
@@ -3450,25 +2783,22 @@ baz
"###,
r###"Block quotes (229)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" > # Foo
+ micromark_with_options(r###" > # Foo
> bar
> baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"> # Foo
> bar
> baz
"###,
r###"Block quotes (230)"###
- );
+);
- // To do: whitespace trimming of editor likely?
+ // To do: some lazy bug.
// assert_eq!(
// micromark_with_options(r###"> # Foo
// > bar
@@ -3484,13 +2814,10 @@ baz
// );
assert_eq!(
- micromark_with_options(
- r###"> bar
+ micromark_with_options(r###"> bar
baz
> foo
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
bar
baz
@@ -3498,47 +2825,40 @@ foo
"###,
r###"Block quotes (232)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> foo
+ micromark_with_options(r###"> foo
---
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
"###,
r###"Block quotes (233)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"> - foo
- // - bar
- // "###, DANGER),
- // r###"
- //
- //
- //
- // "###,
- // r###"Block quotes (234)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"> - foo
+- bar
+"###, DANGER),
+ r###"
+
+
+
+"###,
+ r###"Block quotes (234)"###
+);
assert_eq!(
- micromark_with_options(
- r###"> foo
+ micromark_with_options(r###"> foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
@@ -3547,16 +2867,13 @@ foo
"###,
r###"Block quotes (235)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> ```
+ micromark_with_options(r###"> ```
foo
```
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
@@ -3564,9 +2881,9 @@ foo
"###,
r###"Block quotes (236)"###
- );
+);
- // To do: some bug with laziness.
+ // To do: some lazy bug.
// assert_eq!(
// micromark_with_options(r###"> foo
// - bar
@@ -3579,7 +2896,7 @@ foo
// r###"Block quotes (237)"###
// );
- // To do: eol after containers.
+ // To do: some eol in empty block quote bug.
// assert_eq!(
// micromark_with_options(r###">
// "###, DANGER),
@@ -3589,11 +2906,11 @@ foo
// r###"Block quotes (238)"###
// );
- // To do: eol after containers.
+ // To do: some eol in empty block quote bug.
// assert_eq!(
// micromark_with_options(r###">
- // >
- // >
+ // >
+ // >
// "###, DANGER),
// r###"
//
@@ -3601,11 +2918,11 @@ foo
// r###"Block quotes (239)"###
// );
- // To do: eol after containers.
+ // To do: some eol in empty block quote bug.
// assert_eq!(
// micromark_with_options(r###">
// > foo
- // >
+ // >
// "###, DANGER),
// r###"
// foo
@@ -3615,13 +2932,10 @@ foo
// );
assert_eq!(
- micromark_with_options(
- r###"> foo
+ micromark_with_options(r###"> foo
> bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
@@ -3630,62 +2944,50 @@ foo
"###,
r###"Block quotes (241)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> foo
+ micromark_with_options(r###"> foo
> bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
bar
"###,
r###"Block quotes (242)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> foo
+ micromark_with_options(r###"> foo
>
> bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
bar
"###,
r###"Block quotes (243)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo
+ micromark_with_options(r###"foo
> bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
bar
"###,
r###"Block quotes (244)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> aaa
+ micromark_with_options(r###"> aaa
***
> bbb
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
aaa
@@ -3695,9 +2997,9 @@ bar
"###,
r###"Block quotes (245)"###
- );
+);
- // To do: some bug with laziness.
+ // To do: some eol in empty block quote bug.
// assert_eq!(
// micromark_with_options(r###"> bar
// baz
@@ -3711,38 +3013,32 @@ bar
// );
assert_eq!(
- micromark_with_options(
- r###"> bar
+ micromark_with_options(r###"> bar
baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
bar
baz
"###,
r###"Block quotes (247)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"> bar
+ micromark_with_options(r###"> bar
>
baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
bar
baz
"###,
r###"Block quotes (248)"###
- );
+);
- // To do: some bug with laziness.
+ // To do: some lazy bug.
// assert_eq!(
// micromark_with_options(r###"> > > foo
// bar
@@ -3759,7 +3055,7 @@ baz
// r###"Block quotes (249)"###
// );
- // To do: some bug with laziness.
+ // To do: some lazy bug.
// assert_eq!(
// micromark_with_options(r###">>> foo
// > bar
@@ -3779,13 +3075,10 @@ baz
// );
assert_eq!(
- micromark_with_options(
- r###"> code
+ micromark_with_options(r###"> code
> not code
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
code
@@ -3795,19 +3088,16 @@ baz
"###,
r###"Block quotes (251)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"A paragraph
+ micromark_with_options(r###"A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"A paragraph
with two lines.
indented code
@@ -3817,19 +3107,16 @@ with two lines.
"###,
r###"List items (252)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"1. A paragraph
+ micromark_with_options(r###"1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
A paragraph
@@ -3843,32 +3130,26 @@ with two lines.
"###,
r###"List items (253)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- one
+ micromark_with_options(r###"- one
two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
two
"###,
r###"List items (254)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- one
+ micromark_with_options(r###"- one
two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
one
@@ -3877,16 +3158,13 @@ with two lines.
"###,
r###"List items (255)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" - one
+ micromark_with_options(r###" - one
two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
@@ -3894,16 +3172,13 @@ with two lines.
"###,
r###"List items (256)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" - one
+ micromark_with_options(r###" - one
two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
one
@@ -3912,16 +3187,13 @@ with two lines.
"###,
r###"List items (257)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" > > 1. one
+ micromark_with_options(r###" > > 1. one
>>
>> two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
@@ -3934,16 +3206,13 @@ with two lines.
"###,
r###"List items (258)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###">>- one
+ micromark_with_options(r###">>- one
>>
> > two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
@@ -3954,31 +3223,25 @@ with two lines.
"###,
r###"List items (259)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"-one
+ micromark_with_options(r###"-one
2.two
-"###,
- DANGER
- ),
+"###, DANGER),
r###"-one
2.two
"###,
r###"List items (260)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -3987,11 +3250,10 @@ with two lines.
"###,
r###"List items (261)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"1. foo
+ micromark_with_options(r###"1. foo
```
bar
@@ -4000,9 +3262,7 @@ with two lines.
baz
> bam
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4016,19 +3276,16 @@ with two lines.
"###,
r###"List items (262)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- Foo
+ micromark_with_options(r###"- Foo
bar
baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
Foo
@@ -4041,71 +3298,59 @@ baz
"###,
r###"List items (263)"###
- );
-
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"123456789. ok
- // "###, DANGER),
- // r###"
- // - ok
- //
- // "###,
- // r###"List items (264)"###
- // );
+);
assert_eq!(
- micromark_with_options(
- r###"1234567890. not ok
+ micromark_with_options(r###"123456789. ok
+"###, DANGER),
+ r###"
+- ok
+
"###,
- DANGER
- ),
+ r###"List items (264)"###
+);
+
+ assert_eq!(
+ micromark_with_options(r###"1234567890. not ok
+"###, DANGER),
r###"1234567890. not ok
"###,
r###"List items (265)"###
- );
-
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"0. ok
- // "###, DANGER),
- // r###"
- // - ok
- //
- // "###,
- // r###"List items (266)"###
- // );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"003. ok
- // "###, DANGER),
- // r###"
- // - ok
- //
- // "###,
- // r###"List items (267)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"0. ok
+"###, DANGER),
+ r###"
+- ok
+
+"###,
+ r###"List items (266)"###
+);
assert_eq!(
- micromark_with_options(
- r###"-1. not ok
+ micromark_with_options(r###"003. ok
+"###, DANGER),
+ r###"
+- ok
+
"###,
- DANGER
- ),
+ r###"List items (267)"###
+);
+
+ assert_eq!(
+ micromark_with_options(r###"-1. not ok
+"###, DANGER),
r###"-1. not ok
"###,
r###"List items (268)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4115,16 +3360,13 @@ baz
"###,
r###"List items (269)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 10. foo
+ micromark_with_options(r###" 10. foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4134,18 +3376,15 @@ baz
"###,
r###"List items (270)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" indented code
+ micromark_with_options(r###" indented code
paragraph
more code
-"###,
- DANGER
- ),
+"###, DANGER),
r###"indented code
paragraph
@@ -4153,18 +3392,15 @@ paragraph
"###,
r###"List items (271)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"1. indented code
+ micromark_with_options(r###"1. indented code
paragraph
more code
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
indented code
@@ -4176,18 +3412,15 @@ paragraph
"###,
r###"List items (272)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"1. indented code
+ micromark_with_options(r###"1. indented code
paragraph
more code
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
indented code
@@ -4199,46 +3432,37 @@ paragraph
"###,
r###"List items (273)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" foo
+ micromark_with_options(r###" foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
bar
"###,
r###"List items (274)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
bar
"###,
r###"List items (275)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4247,11 +3471,10 @@ bar
"###,
r###"List items (276)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"-
+ micromark_with_options(r###"-
foo
-
```
@@ -4259,9 +3482,7 @@ bar
```
-
baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
- foo
-
@@ -4275,133 +3496,108 @@ bar
"###,
r###"List items (277)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(r###"-
- // foo
- // "###, DANGER),
- // r###"
- // "###,
- // r###"List items (278)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"-
+ foo
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (278)"###
+);
assert_eq!(
- micromark_with_options(
- r###"-
+ micromark_with_options(r###"-
foo
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
foo
"###,
r###"List items (279)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // -
- // - bar
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- //
- // - bar
- //
- // "###,
- // r###"List items (280)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- foo
+-
+- bar
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (280)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // -
- // - bar
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- //
- // - bar
- //
- // "###,
- // r###"List items (281)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- foo
+-
+- bar
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (281)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"1. foo
- // 2.
- // 3. bar
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- //
- // - bar
- //
- // "###,
- // r###"List items (282)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"1. foo
+2.
+3. bar
+"###, DANGER),
+ r###"
+- foo
+
+- bar
+
+"###,
+ r###"List items (282)"###
+);
- // To do: eol after containers.
+ // To do: some bug w/ line endings and empty items.
// assert_eq!(
- // micromark_with_options(
- // r###"*
- // "###,
- // DANGER
- // ),
+ // micromark_with_options(r###"*
+ // "###, DANGER),
// r###"
// "###,
// r###"List items (283)"###
- // );
+ // );
assert_eq!(
- micromark_with_options(
- r###"foo
+ micromark_with_options(r###"foo
*
foo
1.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
*
foo
1.
"###,
r###"List items (284)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 1. A paragraph
+ micromark_with_options(r###" 1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
A paragraph
@@ -4415,19 +3611,16 @@ with two lines.
"###,
r###"List items (285)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 1. A paragraph
+ micromark_with_options(r###" 1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
A paragraph
@@ -4441,19 +3634,16 @@ with two lines.
"###,
r###"List items (286)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 1. A paragraph
+ micromark_with_options(r###" 1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
A paragraph
@@ -4467,19 +3657,16 @@ with two lines.
"###,
r###"List items (287)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 1. A paragraph
+ micromark_with_options(r###" 1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"1. A paragraph
with two lines.
@@ -4489,19 +3676,16 @@ with two lines.
"###,
r###"List items (288)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###" 1. A paragraph
+ micromark_with_options(r###" 1. A paragraph
with two lines.
indented code
> A block quote.
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
A paragraph
@@ -4515,32 +3699,26 @@ with two lines.
"###,
r###"List items (289)"###
- );
+);
- // To do: eol after containers.
+ // To do: Some lazy bug.
// assert_eq!(
- // micromark_with_options(
- // r###" 1. A paragraph
+ // micromark_with_options(r###" 1. A paragraph
// with two lines.
- // "###,
- // DANGER
- // ),
+ // "###, DANGER),
// r###"
// - A paragraph
// with two lines.
//
// "###,
// r###"List items (290)"###
- // );
+ // );
- // To do: some bug with laziness.
+ // To do: Some lazy bug.
// assert_eq!(
- // micromark_with_options(
- // r###"> 1. > Blockquote
+ // micromark_with_options(r###"> 1. > Blockquote
// continued here.
- // "###,
- // DANGER
- // ),
+ // "###, DANGER),
// r###"
//
// -
@@ -4553,16 +3731,13 @@ with two lines.
//
// "###,
// r###"List items (291)"###
- // );
+ // );
- // To do: some bug with laziness.
+ // To do: Some lazy bug.
// assert_eq!(
- // micromark_with_options(
- // r###"> 1. > Blockquote
+ // micromark_with_options(r###"> 1. > Blockquote
// > continued here.
- // "###,
- // DANGER
- // ),
+ // "###, DANGER),
// r###"
//
// -
@@ -4575,255 +3750,205 @@ with two lines.
//
// "###,
// r###"List items (292)"###
- // );
+ // );
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // - bar
- // - baz
- // - boo
- // "###,
- // DANGER
- // ),
- // r###"
- // "###,
- // r###"List items (293)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- foo
+ - bar
+ - baz
+ - boo
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (293)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // - bar
- // - baz
- // - boo
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- // - bar
- // - baz
- // - boo
- //
- // "###,
- // r###"List items (294)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- foo
+ - bar
+ - baz
+ - boo
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (294)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"10) foo
- // - bar
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- //
- //
- //
- // "###,
- // r###"List items (295)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"10) foo
+ - bar
+"###, DANGER),
+ r###"
+- foo
+
+
+
+"###,
+ r###"List items (295)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"10) foo
- // - bar
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- //
- //
- // "###,
- // r###"List items (296)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"10) foo
+ - bar
+"###, DANGER),
+ r###"
+- foo
+
+
+"###,
+ r###"List items (296)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- - foo
- // "###,
- // DANGER
- // ),
- // r###"
- // "###,
- // r###"List items (297)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- - foo
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (297)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"1. - 2. foo
- // "###,
- // DANGER
- // ),
- // r###"
- // -
- //
- // -
- //
- // - foo
- //
- //
- //
- //
- //
- // "###,
- // r###"List items (298)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"1. - 2. foo
+"###, DANGER),
+ r###"
+-
+
+
+
+"###,
+ r###"List items (298)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- # Foo
- // - Bar
- // ---
- // baz
- // "###,
- // DANGER
- // ),
- // r###"
- // -
- //
Foo
- //
- // -
- //
Bar
- // baz
- //
- // "###,
- // r###"List items (299)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- # Foo
+- Bar
+ ---
+ baz
+"###, DANGER),
+ r###"
+"###,
+ r###"List items (299)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // - bar
- // + baz
- // "###,
- // DANGER
- // ),
- // r###"
- //
- // "###,
- // r###"Lists (300)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- foo
+- bar
++ baz
+"###, DANGER),
+ r###"
+
+"###,
+ r###"Lists (300)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"1. foo
- // 2. bar
- // 3) baz
- // "###,
- // DANGER
- // ),
- // r###"
- // - foo
- // - bar
- //
- //
- // - baz
- //
- // "###,
- // r###"Lists (301)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"1. foo
+2. bar
+3) baz
+"###, DANGER),
+ r###"
+- foo
+- bar
+
+
+- baz
+
+"###,
+ r###"Lists (301)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"Foo
- // - bar
- // - baz
- // "###,
- // DANGER
- // ),
- // r###"Foo
- //
- // "###,
- // r###"Lists (302)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"Foo
+- bar
+- baz
+"###, DANGER),
+ r###"Foo
+
+"###,
+ r###"Lists (302)"###
+);
- // To do: some bug with interrupting.
+ // To do: Some interruption bug.
// assert_eq!(
- // micromark_with_options(
- // r###"The number of windows in my house is
+ // micromark_with_options(r###"The number of windows in my house is
// 14. The number of doors is 6.
- // "###,
- // DANGER
- // ),
+ // "###, DANGER),
// r###"The number of windows in my house is
// 14. The number of doors is 6.
// "###,
// r###"Lists (303)"###
- // );
+ // );
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"The number of windows in my house is
- // 1. The number of doors is 6.
- // "###,
- // DANGER
- // ),
- // r###"The number of windows in my house is
- //
- // - The number of doors is 6.
- //
- // "###,
- // r###"Lists (304)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"The number of windows in my house is
+1. The number of doors is 6.
+"###, DANGER),
+ r###"The number of windows in my house is
+
+- The number of doors is 6.
+
+"###,
+ r###"Lists (304)"###
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
- bar
- baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4837,19 +3962,16 @@ with two lines.
"###,
r###"Lists (305)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
- bar
- baz
bim
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
- foo
@@ -4866,37 +3988,32 @@ with two lines.
"###,
r###"Lists (306)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- foo
- // - bar
+ assert_eq!(
+ micromark_with_options(r###"- foo
+- bar
- //
+
- // - baz
- // - bim
- // "###,
- // DANGER
- // ),
- // r###"
- //
- //
- // "###,
- // r###"Lists (307)"###
- // );
+- baz
+- bim
+"###, DANGER),
+ r###"
+
+
+"###,
+ r###"Lists (307)"###
+);
assert_eq!(
- micromark_with_options(
- r###"- foo
+ micromark_with_options(r###"- foo
notcode
@@ -4905,9 +4022,7 @@ with two lines.
code
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -4922,44 +4037,37 @@ with two lines.
"###,
r###"Lists (308)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // - b
- // - c
- // - d
- // - e
- // - f
- // - g
- // "###,
- // DANGER
- // ),
- // r###"
- // - a
- // - b
- // - c
- // - d
- // - e
- // - f
- // - g
- //
- // "###,
- // r###"Lists (309)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- a
+ - b
+ - c
+ - d
+ - e
+ - f
+- g
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (309)"###
+);
assert_eq!(
- micromark_with_options(
- r###"1. a
+ micromark_with_options(r###"1. a
2. b
3. c
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -4973,19 +4081,16 @@ with two lines.
"###,
r###"Lists (310)"###
- );
+);
- // To do: some bug with interrupting.
+ // To do: Some interruption bug.
// assert_eq!(
- // micromark_with_options(
- // r###"- a
+ // micromark_with_options(r###"- a
// - b
// - c
// - d
// - e
- // "###,
- // DANGER
- // ),
+ // "###, DANGER),
// r###"
// - a
// - b
@@ -4995,18 +4100,15 @@ with two lines.
//
// "###,
// r###"Lists (311)"###
- // );
+ // );
assert_eq!(
- micromark_with_options(
- r###"1. a
+ micromark_with_options(r###"1. a
2. b
3. c
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -5019,17 +4121,14 @@ with two lines.
"###,
r###"Lists (312)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- a
+ micromark_with_options(r###"- a
- b
- c
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -5043,17 +4142,14 @@ with two lines.
"###,
r###"Lists (313)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"* a
+ micromark_with_options(r###"* a
*
* c
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -5065,18 +4161,15 @@ with two lines.
"###,
r###"Lists (314)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- a
+ micromark_with_options(r###"- a
- b
c
- d
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -5091,18 +4184,15 @@ with two lines.
"###,
r###"Lists (315)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"- a
+ micromark_with_options(r###"- a
- b
[ref]: /url
- d
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
a
@@ -5116,150 +4206,125 @@ with two lines.
"###,
r###"Lists (316)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // - ```
- // b
+ assert_eq!(
+ micromark_with_options(r###"- a
+- ```
+ b
- // ```
- // - c
- // "###,
- // DANGER
- // ),
- // r###"
- // - a
- // -
- //
b
- //
- //
- // - c
- //
- // "###,
- // r###"Lists (317)"###
- // );
+ ```
+- c
+"###, DANGER),
+ r###"
+- a
+-
+
b
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // - b
- // c
- // - d
- // "###,
- // DANGER
- // ),
- // r###"
- // - a
- //
- // -
- //
b
- // c
- //
- //
- //
- // - d
- //
- // "###,
- // r###"Lists (318)"###
- // );
+
+
+- c
+
+"###,
+ r###"Lists (317)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"* a
- // > b
- // >
- // * c
- // "###,
- // DANGER
- // ),
- // r###"
- // - a
- //
- // b
- //
- //
- // - c
- //
- // "###,
- // r###"Lists (319)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- a
+ - b
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // > b
- // ```
- // c
- // ```
- // - d
- // "###,
- // DANGER
- // ),
- // r###"
- // - a
- //
- // b
- //
- // c
- //
- //
- // - d
- //
- // "###,
- // r###"Lists (320)"###
- // );
+ c
+- d
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (318)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // "###,
- // DANGER
- // ),
- // r###"
- // "###,
- // r###"Lists (321)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"* a
+ > b
+ >
+* c
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (319)"###
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // - b
- // "###,
- // DANGER
- // ),
- // r###"
- // "###,
- // r###"Lists (322)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"- a
+ > b
+ ```
+ c
+ ```
+- d
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (320)"###
+);
assert_eq!(
- micromark_with_options(
- r###"1. ```
+ micromark_with_options(r###"- a
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (321)"###
+);
+
+ assert_eq!(
+ micromark_with_options(r###"- a
+ - b
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (322)"###
+);
+
+ assert_eq!(
+ micromark_with_options(r###"1. ```
foo
```
bar
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -5269,17 +4334,14 @@ with two lines.
"###,
r###"Lists (323)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"* foo
+ micromark_with_options(r###"* foo
* bar
baz
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
-
foo
@@ -5291,3854 +4353,2864 @@ with two lines.
"###,
r###"Lists (324)"###
- );
+);
- // To do: eol after containers.
- // assert_eq!(
- // micromark_with_options(
- // r###"- a
- // - b
- // - c
+ assert_eq!(
+ micromark_with_options(r###"- a
+ - b
+ - c
- // - d
- // - e
- // - f
- // "###,
- // DANGER
- // ),
- // r###"
- // -
- //
a
- //
- //
- // -
- //
d
- //
- //
- //
- // "###,
- // r###"Lists (325)"###
- // );
+- d
+ - e
+ - f
+"###, DANGER),
+ r###"
+"###,
+ r###"Lists (325)"###
+);
assert_eq!(
- micromark_with_options(
- r###"`hi`lo`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`hi`lo`
+"###, DANGER),
r###"hilo`
"###,
r###"Inlines (326)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`foo`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`foo`
+"###, DANGER),
r###"foo
"###,
r###"Code spans (327)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`` foo ` bar ``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`` foo ` bar ``
+"###, DANGER),
r###"foo ` bar
"###,
r###"Code spans (328)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` `` `
-"###,
- DANGER
- ),
+ micromark_with_options(r###"` `` `
+"###, DANGER),
r###"``
"###,
r###"Code spans (329)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` `` `
-"###,
- DANGER
- ),
+ micromark_with_options(r###"` `` `
+"###, DANGER),
r###" ``
"###,
r###"Code spans (330)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` a`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"` a`
+"###, DANGER),
r###" a
"###,
r###"Code spans (331)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` b `
-"###,
- DANGER
- ),
+ micromark_with_options(r###"` b `
+"###, DANGER),
r###" b
"###,
r###"Code spans (332)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` `
+ micromark_with_options(r###"` `
` `
-"###,
- DANGER
- ),
+"###, DANGER),
r###"
"###,
r###"Code spans (333)"###
- );
-
- // To do: some bug with generating tests.
- // assert_eq!(
- // micromark_with_options(
- // r###"``
- // foo
- // bar
- // baz
- // ``
- // "###,
- // DANGER
- // ),
- // r###"foo bar baz
- // "###,
- // r###"Code spans (334)"###
- // );
+);
- // To do: bug with a line ending sticking around? Generating this file?
- // assert_eq!(
- // micromark_with_options(
- // r###"``
- // foo
- // ``
- // "###,
- // DANGER
- // ),
- // r###"foo
- // "###,
- // r###"Code spans (335)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"``
+foo
+bar
+baz
+``
+"###, DANGER),
+ r###"foo bar baz
+"###,
+ r###"Code spans (334)"###
+);
- // To do: bug generating this file?
- // assert_eq!(
- // micromark_with_options(
- // r###"`foo bar
- // baz`
- // "###,
- // DANGER
- // ),
- // r###"foo bar baz
- // "###,
- // r###"Code spans (336)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"``
+foo
+``
+"###, DANGER),
+ r###"foo
+"###,
+ r###"Code spans (335)"###
+);
assert_eq!(
- micromark_with_options(
- r###"`foo\`bar`
+ micromark_with_options(r###"`foo bar
+baz`
+"###, DANGER),
+ r###"foo bar baz
"###,
- DANGER
- ),
+ r###"Code spans (336)"###
+);
+
+ assert_eq!(
+ micromark_with_options(r###"`foo\`bar`
+"###, DANGER),
r###"foo\bar`
"###,
r###"Code spans (337)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"``foo`bar``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"``foo`bar``
+"###, DANGER),
r###"foo`bar
"###,
r###"Code spans (338)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"` foo `` bar `
-"###,
- DANGER
- ),
+ micromark_with_options(r###"` foo `` bar `
+"###, DANGER),
r###"foo `` bar
"###,
r###"Code spans (339)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo`*`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo`*`
+"###, DANGER),
r###"*foo*
"###,
r###"Code spans (340)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[not a `link](/foo`)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[not a `link](/foo`)
+"###, DANGER),
r###"[not a link](/foo)
"###,
r###"Code spans (341)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"``
+"###, DANGER),
r###"<a href="">`
"###,
r###"Code spans (342)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`
+"###, DANGER),
r###"`
"###,
r###"Code spans (343)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"``
+"###, DANGER),
r###"<http://foo.bar.baz>`
"###,
r###"Code spans (344)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`
+"###, DANGER),
r###"http://foo.bar.`baz`
"###,
r###"Code spans (345)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"```foo``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"```foo``
+"###, DANGER),
r###"```foo``
"###,
r###"Code spans (346)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`foo
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`foo
+"###, DANGER),
r###"`foo
"###,
r###"Code spans (347)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"`foo``bar``
-"###,
- DANGER
- ),
+ micromark_with_options(r###"`foo``bar``
+"###, DANGER),
r###"`foobar
"###,
r###"Code spans (348)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo bar*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo bar*
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (349)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"a * foo bar*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"a * foo bar*
+"###, DANGER),
r###"a * foo bar*
"###,
r###"Emphasis and strong emphasis (350)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"a*"foo"*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"a*"foo"*
+"###, DANGER),
r###"a*"foo"*
"###,
r###"Emphasis and strong emphasis (351)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"* a *
-"###,
- DANGER
- ),
+ micromark_with_options(r###"* a *
+"###, DANGER),
r###"* a *
"###,
r###"Emphasis and strong emphasis (352)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo*bar*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo*bar*
+"###, DANGER),
r###"foobar
"###,
r###"Emphasis and strong emphasis (353)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"5*6*78
-"###,
- DANGER
- ),
+ micromark_with_options(r###"5*6*78
+"###, DANGER),
r###"5678
"###,
r###"Emphasis and strong emphasis (354)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo bar_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo bar_
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (355)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_ foo bar_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_ foo bar_
+"###, DANGER),
r###"_ foo bar_
"###,
r###"Emphasis and strong emphasis (356)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"a_"foo"_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"a_"foo"_
+"###, DANGER),
r###"a_"foo"_
"###,
r###"Emphasis and strong emphasis (357)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo_bar_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo_bar_
+"###, DANGER),
r###"foo_bar_
"###,
r###"Emphasis and strong emphasis (358)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"5_6_78
-"###,
- DANGER
- ),
+ micromark_with_options(r###"5_6_78
+"###, DANGER),
r###"5_6_78
"###,
r###"Emphasis and strong emphasis (359)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"пристаням_стремятся_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"пристаням_стремятся_
+"###, DANGER),
r###"пристаням_стремятся_
"###,
r###"Emphasis and strong emphasis (360)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"aa_"bb"_cc
-"###,
- DANGER
- ),
+ micromark_with_options(r###"aa_"bb"_cc
+"###, DANGER),
r###"aa_"bb"_cc
"###,
r###"Emphasis and strong emphasis (361)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo-_(bar)_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo-_(bar)_
+"###, DANGER),
r###"foo-(bar)
"###,
r###"Emphasis and strong emphasis (362)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo*
+"###, DANGER),
r###"_foo*
"###,
r###"Emphasis and strong emphasis (363)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo bar *
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo bar *
+"###, DANGER),
r###"*foo bar *
"###,
r###"Emphasis and strong emphasis (364)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo bar
+ micromark_with_options(r###"*foo bar
*
-"###,
- DANGER
- ),
+"###, DANGER),
r###"*foo bar
*
"###,
r###"Emphasis and strong emphasis (365)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*(*foo)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*(*foo)
+"###, DANGER),
r###"*(*foo)
"###,
r###"Emphasis and strong emphasis (366)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*(*foo*)*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*(*foo*)*
+"###, DANGER),
r###"(foo)
"###,
r###"Emphasis and strong emphasis (367)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo*bar
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo*bar
+"###, DANGER),
r###"foobar
"###,
r###"Emphasis and strong emphasis (368)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo bar _
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo bar _
+"###, DANGER),
r###"_foo bar _
"###,
r###"Emphasis and strong emphasis (369)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_(_foo)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_(_foo)
+"###, DANGER),
r###"_(_foo)
"###,
r###"Emphasis and strong emphasis (370)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_(_foo_)_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_(_foo_)_
+"###, DANGER),
r###"(foo)
"###,
r###"Emphasis and strong emphasis (371)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo_bar
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo_bar
+"###, DANGER),
r###"_foo_bar
"###,
r###"Emphasis and strong emphasis (372)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_пристаням_стремятся
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_пристаням_стремятся
+"###, DANGER),
r###"_пристаням_стремятся
"###,
r###"Emphasis and strong emphasis (373)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo_bar_baz_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo_bar_baz_
+"###, DANGER),
r###"foo_bar_baz
"###,
r###"Emphasis and strong emphasis (374)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_(bar)_.
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_(bar)_.
+"###, DANGER),
r###"(bar).
"###,
r###"Emphasis and strong emphasis (375)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo bar**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo bar**
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (376)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"** foo bar**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"** foo bar**
+"###, DANGER),
r###"** foo bar**
"###,
r###"Emphasis and strong emphasis (377)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"a**"foo"**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"a**"foo"**
+"###, DANGER),
r###"a**"foo"**
"###,
r###"Emphasis and strong emphasis (378)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo**bar**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo**bar**
+"###, DANGER),
r###"foobar
"###,
r###"Emphasis and strong emphasis (379)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo bar__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo bar__
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (380)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__ foo bar__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__ foo bar__
+"###, DANGER),
r###"__ foo bar__
"###,
r###"Emphasis and strong emphasis (381)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__
+ micromark_with_options(r###"__
foo bar__
-"###,
- DANGER
- ),
+"###, DANGER),
r###"__
foo bar__
"###,
r###"Emphasis and strong emphasis (382)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"a__"foo"__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"a__"foo"__
+"###, DANGER),
r###"a__"foo"__
"###,
r###"Emphasis and strong emphasis (383)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo__bar__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo__bar__
+"###, DANGER),
r###"foo__bar__
"###,
r###"Emphasis and strong emphasis (384)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"5__6__78
-"###,
- DANGER
- ),
+ micromark_with_options(r###"5__6__78
+"###, DANGER),
r###"5__6__78
"###,
r###"Emphasis and strong emphasis (385)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"пристаням__стремятся__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"пристаням__стремятся__
+"###, DANGER),
r###"пристаням__стремятся__
"###,
r###"Emphasis and strong emphasis (386)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo, __bar__, baz__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo, __bar__, baz__
+"###, DANGER),
r###"foo, bar, baz
"###,
r###"Emphasis and strong emphasis (387)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo-__(bar)__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo-__(bar)__
+"###, DANGER),
r###"foo-(bar)
"###,
r###"Emphasis and strong emphasis (388)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo bar **
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo bar **
+"###, DANGER),
r###"**foo bar **
"###,
r###"Emphasis and strong emphasis (389)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**(**foo)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**(**foo)
+"###, DANGER),
r###"**(**foo)
"###,
r###"Emphasis and strong emphasis (390)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*(**foo**)*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*(**foo**)*
+"###, DANGER),
r###"(foo)
"###,
r###"Emphasis and strong emphasis (391)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
+ micromark_with_options(r###"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
*Asclepias physocarpa*)**
-"###,
- DANGER
- ),
+"###, DANGER),
r###"Gomphocarpus (Gomphocarpus physocarpus, syn.
Asclepias physocarpa)
"###,
r###"Emphasis and strong emphasis (392)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo "*bar*" foo**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo "*bar*" foo**
+"###, DANGER),
r###"foo "bar" foo
"###,
r###"Emphasis and strong emphasis (393)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo**bar
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo**bar
+"###, DANGER),
r###"foobar
"###,
r###"Emphasis and strong emphasis (394)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo bar __
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo bar __
+"###, DANGER),
r###"__foo bar __
"###,
r###"Emphasis and strong emphasis (395)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__(__foo)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__(__foo)
+"###, DANGER),
r###"__(__foo)
"###,
r###"Emphasis and strong emphasis (396)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_(__foo__)_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_(__foo__)_
+"###, DANGER),
r###"(foo)
"###,
r###"Emphasis and strong emphasis (397)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo__bar
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo__bar
+"###, DANGER),
r###"__foo__bar
"###,
r###"Emphasis and strong emphasis (398)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__пристаням__стремятся
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__пристаням__стремятся
+"###, DANGER),
r###"__пристаням__стремятся
"###,
r###"Emphasis and strong emphasis (399)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo__bar__baz__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo__bar__baz__
+"###, DANGER),
r###"foo__bar__baz
"###,
r###"Emphasis and strong emphasis (400)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__(bar)__.
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__(bar)__.
+"###, DANGER),
r###"(bar).
"###,
r###"Emphasis and strong emphasis (401)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo [bar](/url)*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo [bar](/url)*
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (402)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo
+ micromark_with_options(r###"*foo
bar*
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
bar
"###,
r###"Emphasis and strong emphasis (403)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo __bar__ baz_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo __bar__ baz_
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (404)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo _bar_ baz_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo _bar_ baz_
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (405)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo_ bar_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo_ bar_
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (406)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo *bar**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo *bar**
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (407)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo **bar** baz*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo **bar** baz*
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (408)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo**bar**baz*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo**bar**baz*
+"###, DANGER),
r###"foobarbaz
"###,
r###"Emphasis and strong emphasis (409)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo**bar*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo**bar*
+"###, DANGER),
r###"foo**bar
"###,
r###"Emphasis and strong emphasis (410)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"***foo** bar*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"***foo** bar*
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (411)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo **bar***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo **bar***
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (412)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo**bar***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo**bar***
+"###, DANGER),
r###"foobar
"###,
r###"Emphasis and strong emphasis (413)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo***bar***baz
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo***bar***baz
+"###, DANGER),
r###"foobarbaz
"###,
r###"Emphasis and strong emphasis (414)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo******bar*********baz
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo******bar*********baz
+"###, DANGER),
r###"foobar***baz
"###,
r###"Emphasis and strong emphasis (415)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo **bar *baz* bim** bop*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo **bar *baz* bim** bop*
+"###, DANGER),
r###"foo bar baz bim bop
"###,
r###"Emphasis and strong emphasis (416)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo [*bar*](/url)*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo [*bar*](/url)*
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (417)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"** is not an empty emphasis
-"###,
- DANGER
- ),
+ micromark_with_options(r###"** is not an empty emphasis
+"###, DANGER),
r###"** is not an empty emphasis
"###,
r###"Emphasis and strong emphasis (418)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**** is not an empty strong emphasis
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**** is not an empty strong emphasis
+"###, DANGER),
r###"**** is not an empty strong emphasis
"###,
r###"Emphasis and strong emphasis (419)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo [bar](/url)**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo [bar](/url)**
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (420)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo
+ micromark_with_options(r###"**foo
bar**
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo
bar
"###,
r###"Emphasis and strong emphasis (421)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo _bar_ baz__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo _bar_ baz__
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (422)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo __bar__ baz__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo __bar__ baz__
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (423)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"____foo__ bar__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"____foo__ bar__
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (424)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo **bar****
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo **bar****
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (425)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo *bar* baz**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo *bar* baz**
+"###, DANGER),
r###"foo bar baz
"###,
r###"Emphasis and strong emphasis (426)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo*bar*baz**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo*bar*baz**
+"###, DANGER),
r###"foobarbaz
"###,
r###"Emphasis and strong emphasis (427)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"***foo* bar**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"***foo* bar**
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (428)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo *bar***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo *bar***
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (429)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo *bar **baz**
+ micromark_with_options(r###"**foo *bar **baz**
bim* bop**
-"###,
- DANGER
- ),
+"###, DANGER),
r###"foo bar baz
bim bop
"###,
r###"Emphasis and strong emphasis (430)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo [*bar*](/url)**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo [*bar*](/url)**
+"###, DANGER),
r###"foo bar
"###,
r###"Emphasis and strong emphasis (431)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__ is not an empty emphasis
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__ is not an empty emphasis
+"###, DANGER),
r###"__ is not an empty emphasis
"###,
r###"Emphasis and strong emphasis (432)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"____ is not an empty strong emphasis
-"###,
- DANGER
- ),
+ micromark_with_options(r###"____ is not an empty strong emphasis
+"###, DANGER),
r###"____ is not an empty strong emphasis
"###,
r###"Emphasis and strong emphasis (433)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo ***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo ***
+"###, DANGER),
r###"foo ***
"###,
r###"Emphasis and strong emphasis (434)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo *\**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo *\**
+"###, DANGER),
r###"foo *
"###,
r###"Emphasis and strong emphasis (435)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo *_*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo *_*
+"###, DANGER),
r###"foo _
"###,
r###"Emphasis and strong emphasis (436)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo *****
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo *****
+"###, DANGER),
r###"foo *****
"###,
r###"Emphasis and strong emphasis (437)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo **\***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo **\***
+"###, DANGER),
r###"foo *
"###,
r###"Emphasis and strong emphasis (438)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo **_**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo **_**
+"###, DANGER),
r###"foo _
"###,
r###"Emphasis and strong emphasis (439)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo*
+"###, DANGER),
r###"*foo
"###,
r###"Emphasis and strong emphasis (440)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo**
+"###, DANGER),
r###"foo*
"###,
r###"Emphasis and strong emphasis (441)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"***foo**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"***foo**
+"###, DANGER),
r###"*foo
"###,
r###"Emphasis and strong emphasis (442)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"****foo*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"****foo*
+"###, DANGER),
r###"***foo
"###,
r###"Emphasis and strong emphasis (443)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo***
+"###, DANGER),
r###"foo*
"###,
r###"Emphasis and strong emphasis (444)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo****
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo****
+"###, DANGER),
r###"foo***
"###,
r###"Emphasis and strong emphasis (445)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo ___
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo ___
+"###, DANGER),
r###"foo ___
"###,
r###"Emphasis and strong emphasis (446)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo _\__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo _\__
+"###, DANGER),
r###"foo _
"###,
r###"Emphasis and strong emphasis (447)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo _*_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo _*_
+"###, DANGER),
r###"foo *
"###,
r###"Emphasis and strong emphasis (448)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo _____
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo _____
+"###, DANGER),
r###"foo _____
"###,
r###"Emphasis and strong emphasis (449)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo __\___
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo __\___
+"###, DANGER),
r###"foo _
"###,
r###"Emphasis and strong emphasis (450)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"foo __*__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"foo __*__
+"###, DANGER),
r###"foo *
"###,
r###"Emphasis and strong emphasis (451)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo_
+"###, DANGER),
r###"_foo
"###,
r###"Emphasis and strong emphasis (452)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo__
+"###, DANGER),
r###"foo_
"###,
r###"Emphasis and strong emphasis (453)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"___foo__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"___foo__
+"###, DANGER),
r###"_foo
"###,
r###"Emphasis and strong emphasis (454)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"____foo_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"____foo_
+"###, DANGER),
r###"___foo
"###,
r###"Emphasis and strong emphasis (455)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo___
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo___
+"###, DANGER),
r###"foo_
"###,
r###"Emphasis and strong emphasis (456)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo____
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo____
+"###, DANGER),
r###"foo___
"###,
r###"Emphasis and strong emphasis (457)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo**
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (458)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*_foo_*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*_foo_*
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (459)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__foo__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__foo__
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (460)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_*foo*_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_*foo*_
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (461)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"****foo****
-"###,
- DANGER
- ),
+ micromark_with_options(r###"****foo****
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (462)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"____foo____
-"###,
- DANGER
- ),
+ micromark_with_options(r###"____foo____
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (463)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"******foo******
-"###,
- DANGER
- ),
+ micromark_with_options(r###"******foo******
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (464)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"***foo***
-"###,
- DANGER
- ),
+ micromark_with_options(r###"***foo***
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (465)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_____foo_____
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_____foo_____
+"###, DANGER),
r###"foo
"###,
r###"Emphasis and strong emphasis (466)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo _bar* baz_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo _bar* baz_
+"###, DANGER),
r###"foo _bar baz_
"###,
r###"Emphasis and strong emphasis (467)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo __bar *baz bim__ bam*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo __bar *baz bim__ bam*
+"###, DANGER),
r###"foo bar *baz bim bam
"###,
r###"Emphasis and strong emphasis (468)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**foo **bar baz**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**foo **bar baz**
+"###, DANGER),
r###"**foo bar baz
"###,
r###"Emphasis and strong emphasis (469)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*foo *bar baz*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*foo *bar baz*
+"###, DANGER),
r###"*foo bar baz
"###,
r###"Emphasis and strong emphasis (470)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*[bar*](/url)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*[bar*](/url)
+"###, DANGER),
r###"*bar*
"###,
r###"Emphasis and strong emphasis (471)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_foo [bar_](/url)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_foo [bar_](/url)
+"###, DANGER),
r###"_foo bar_
"###,
r###"Emphasis and strong emphasis (472)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*
+"###, DANGER),
r###"*
"###,
r###"Emphasis and strong emphasis (473)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**
+"###, DANGER),
r###"**
"###,
r###"Emphasis and strong emphasis (474)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__
+"###, DANGER),
r###"__
"###,
r###"Emphasis and strong emphasis (475)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"*a `*`*
-"###,
- DANGER
- ),
+ micromark_with_options(r###"*a `*`*
+"###, DANGER),
r###"a *
"###,
r###"Emphasis and strong emphasis (476)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"_a `_`_
-"###,
- DANGER
- ),
+ micromark_with_options(r###"_a `_`_
+"###, DANGER),
r###"a _
"###,
r###"Emphasis and strong emphasis (477)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"**a
-"###,
- DANGER
- ),
+ micromark_with_options(r###"**a
+"###, DANGER),
r###"**ahttp://foo.bar/?q=**
"###,
r###"Emphasis and strong emphasis (478)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"__a
-"###,
- DANGER
- ),
+ micromark_with_options(r###"__a
+"###, DANGER),
r###"__ahttp://foo.bar/?q=__
"###,
r###"Emphasis and strong emphasis (479)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link](/uri "title")
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[link](/uri "title")
+"###, DANGER),
r###"link
"###,
r###"Links (480)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link](/uri)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[link](/uri)
+"###, DANGER),
r###"link
"###,
r###"Links (481)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[](./target.md)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[](./target.md)
+"###, DANGER),
r###"
"###,
r###"Links (482)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link]()
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[link]()
+"###, DANGER),
r###"link
"###,
r###"Links (483)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link](<>)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[link](<>)
+"###, DANGER),
r###"link
"###,
r###"Links (484)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[]()
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[]()
+"###, DANGER),
r###"
"###,
r###"Links (485)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link](/my uri)
-"###,
- DANGER
- ),
+ micromark_with_options(r###"[link](/my uri)
+"###, DANGER),
r###"[link](/my uri)
"###,
r###"Links (486)"###
- );
+);
assert_eq!(
- micromark_with_options(
- r###"[link](