1 // This file is auto-generated by the build script
2 // Please, do not modify it manually
4 use super::test_markdown_html
;
7 fn regression_test_1() {
8 let original
= r
##"<details><summary>Testing 1..2..3..</summary>
10 This is a test of the details element.
14 let expected
= r
##"<details><summary>Testing 1..2..3..</summary>
15 <p>This is a test of the details element.</p>
19 test_markdown_html(original
, expected
, false);
23 fn regression_test_2() {
24 let original
= r
##"see the [many] [articles] [on] [QuickCheck].
26 [many]: https://medium.com/@jlouis666/quickcheck-advice-c357efb4e7e6
27 [articles]: http://www.quviq.com/products/erlang-quickcheck/
28 [on]: https://wiki.haskell.org/Introduction_to_QuickCheck1
29 [QuickCheck]: https://hackage.haskell.org/package/QuickCheck
31 let expected
= r
##"<p>see the
32 <a href="https://medium.com/@jlouis666/quickcheck-advice-c357efb4e7e6">many</a>
33 <a href
="http://www.quviq.com/products/erlang-quickcheck/">articles
</a
>
34 <a href
="https://wiki.haskell.org/Introduction_to_QuickCheck1">on
</a
>
35 <a href
="https://hackage.haskell.org/package/QuickCheck">QuickCheck
</a
>.
39 test_markdown_html(original, expected, false);
43 fn regression_test_3() {
44 let original = r##"[![debug
-stub
-derive on crates
.io
][cratesio
-image
]][cratesio
]
45 [![debug
-stub
-derive on docs
.rs
][docsrs
-image
]][docsrs
]
47 [cratesio
-image
]: https
://img.shields.io/crates/v/debug_stub_derive.svg
48 [cratesio
]: https
://crates.io/crates/debug_stub_derive
49 [docsrs
-image
]: https
://docs.rs/debug_stub_derive/badge.svg?version=0.3.0
50 [docsrs
]: https
://docs.rs/debug_stub_derive/0.3.0/
52 let expected = r##"<p
><a href
="https://crates.io/crates/debug_stub_derive"><img src
="https://img.shields.io/crates/v/debug_stub_derive.svg" alt
="debug-stub-derive on crates.io" /></a
>
53 <a href
="https://docs.rs/debug_stub_derive/0.3.0/"><img src
="https://docs.rs/debug_stub_derive/badge.svg?version=0.3.0" alt
="debug-stub-derive on docs.rs" /></a
></p
>
56 test_markdown_html(original, expected, false);
60 fn regression_test_4() {
61 let original = r##"| Title A
| Title B
|
62 | --------- | --------- |
65 | Title A
| Title B
| Title C
| Title D
|
66 | --------- | --------- | --------- | ---------:|
67 | Content
| Content
| Conent
| Content
|
69 let expected = r##"<table
><thead
><tr
><th
>Title A
</th
><th
>Title B
</th
></tr
></thead
><tbody
>
70 <tr
><td
>Content
</td
><td
>Content
</td
></tr
>
72 <table
><thead
><tr
><th
>Title A
</th
><th
>Title B
</th
><th
>Title C
</th
><th align
="right">Title D
</th
></tr
></thead
><tbody
>
73 <tr
><td
>Content
</td
><td
>Content
</td
><td
>Conent
</td
><td align
="right">Content
</td
></tr
>
77 test_markdown_html(original, expected, false);
81 fn regression_test_5() {
82 let original = r##"foo§
__(bar
)__
84 let expected = r##"<p
>foo§
<strong
>(bar
)</strong
></p
>
87 test_markdown_html(original, expected, false);
91 fn regression_test_6() {
92 let original = r##"<https
://example.com> hello
94 let expected = r##"<p
><a href
="https://example.com">https
://example.com</a> hello</p>
98 test_markdown_html(original, expected, false);
102 fn regression_test_7() {
103 let original = r##"[foo
][bar
]
108 let expected = r##"<p
><a href
="a">foo
</a
></p
>
112 test_markdown_html(original, expected, false);
116 fn regression_test_8() {
117 let original = r##"<!-- <dl
> -->
126 let expected = r##"<!-- <dl
> -->
129 <p
><strong
>foo
</strong
> (u8, u8)</p
>
130 <p
>make something
</p
>
133 <p
><strong
>bar
</strong
> (u16, u16)</p
>
134 <p
>make something
</p
>
140 test_markdown_html(original, expected, false);
144 fn regression_test_9() {
145 let original = r##"[`
148 ../../../std
/primitive
.i8.html
151 let expected = r##"<p
><a href
="../../../std/primitive.i8.html"><code
>i8</code
></a
></p
>
154 test_markdown_html(original, expected, false);
158 fn regression_test_10() {
159 let original = r##"[a
]
163 let expected = r##"<p
><a href
="/url" title
="title\*">a
</a
></p
>
166 test_markdown_html(original, expected, false);
170 fn regression_test_11() {
171 let original = r##"[a
]
175 let expected = r##"<p
><a href
="/url" title
="title)">a
</a
></p
>
178 test_markdown_html(original, expected, false);
182 fn regression_test_12() {
183 let original = r##"[a
]
187 let expected = r##"<p
>[a
]</p
>
188 <p
>[a
]: /url (title
))</p
>
191 test_markdown_html(original, expected, false);
195 fn regression_test_13() {
196 let original = r##"a
<?php this is not a valid processing tag
198 b
<?php but this is ?
>
200 let expected = r##"<h2
>a
<
;?php this is not a valid processing tag
</h2
>
201 <p
>b
<?php but this is ?
></p
>
204 test_markdown_html(original, expected, false);
208 fn regression_test_14() {
209 let original = r##"[a
]: u
\
212 let expected = r##"<p
>foo
</p
>
215 test_markdown_html(original, expected, false);
219 fn regression_test_15() {
220 let original = r##"\`foo`
222 let expected = r##"<p
>`foo`
</p
>
225 test_markdown_html(original, expected, false);
229 fn regression_test_16() {
230 let original = r##"foo
\\
233 let expected = r##"<p
>foo
\
237 test_markdown_html(original, expected, false);
241 fn regression_test_17() {
242 let original = r##"1\. foo
246 let expected = r##"<p
>1. foo
</p
>
250 test_markdown_html(original, expected, false);
254 fn regression_test_18() {
255 let original = r##"1...
265 let expected = r##"<p
>1...</p
>
272 test_markdown_html(original, expected, false);
276 fn regression_test_19() {
277 let original = r##"[](<<>)
279 let expected = r##"<p
>[](<
;<
;>
;)</p
>
282 test_markdown_html(original, expected, false);
286 fn regression_test_20() {
287 let original = r##"\``foo``bar`
289 let expected = r##"<p
>`
<code
>foo``bar
</code
></p
>
292 test_markdown_html(original, expected, false);
296 fn regression_test_21() {
297 let original = r##"\\`foo`
299 let expected = r##"<p
>\<code
>foo
</code
></p
>
302 test_markdown_html(original, expected, false);
306 fn regression_test_22() {
307 let original = r##"[\\]: x
311 let expected = r##"<p
>YOLO
</p
>
314 test_markdown_html(original, expected, false);
318 fn regression_test_23() {
319 let original = r##"lorem ipsum
324 let expected = r##"<p
>lorem ipsum
330 test_markdown_html(original, expected, false);
334 fn regression_test_24() {
335 let original = r##"foo
|bar
339 let expected = r##"<table
><thead
><tr
><th
>foo
</th
><th
>bar
</th
></tr
></thead
>
340 <tbody
><tr
><td
>foo
</td
><td
>bar
</td
></tr
></tbody
>
344 test_markdown_html(original, expected, false);
348 fn regression_test_25() {
349 let original = r##"foo
|bar
\\
353 let expected = r##"<table
><thead
><tr
><th
>foo
</th
><th
>bar
\</th
></tr
></thead
>
354 <tbody
><tr
><td
>foo
</td
><td
>bar
</td
></tr
></tbody
>
358 test_markdown_html(original, expected, false);
362 fn regression_test_26() {
363 let original = r##"[<foo
>](url
)
365 let expected = r##"<p
><a href
="url"><foo
></a
></p
>
368 test_markdown_html(original, expected, false);
372 fn regression_test_27() {
373 let original = r##"[<foo
>bar
</foo
>](url
)
375 let expected = r##"<p
><a href
="url"><foo
>bar
</foo
></a
></p
>
378 test_markdown_html(original, expected, false);
382 fn regression_test_28() {
383 let original = r##"![<http
://example.com>](http://example.com/logo.png)
385 let expected = r##"<p
><img alt
="http://example.com" src
="http://example.com/logo.png"></p
>
388 test_markdown_html(original, expected, false);
392 fn regression_test_29() {
393 let original = r##"[<http
://one> <http://two>](url)
395 let expected = r##"<p
><a href
="url"></a
><a href
="http://one">http
://one</a> <a href="http://two">http://two</a></p>
398 test_markdown_html(original, expected, false);
402 fn regression_test_30() {
403 let original = r##"Markdown
| Less
| Pretty
408 let expected = r##"<table
><thead
><tr
><th
>Markdown
</th
><th
> Less
</th
><th
> Pretty
</th
></tr
></thead
><tbody
>
413 test_markdown_html(original, expected, false);
417 fn regression_test_31() {
418 let original = r##"1. > foo
421 let expected = r##"<ol
>
434 test_markdown_html(original, expected, false);
438 fn regression_test_32() {
444 let expected = r##"<p
>[
449 test_markdown_html(original, expected, false);
453 fn regression_test_33() {
454 let original = r##"[foo
]:
456 let expected = r##"<p
>[foo
]:</p
>
459 test_markdown_html(original, expected, false);
463 fn regression_test_34() {
464 let original = r##"> [foo
469 let expected = r##"<blockquote
>
470 <p
><a href
="/url">foo bar
</a
></p
>
474 test_markdown_html(original, expected, false);
478 fn regression_test_35() {
479 let original = r##"> foo
| bar
483 let expected = r##"<blockquote
>
484 <table
><thead
><tr
><th
>foo
</th
><th
>bar
</th
></tr
></thead
></table
>
489 test_markdown_html(original, expected, false);
493 fn regression_test_36() {
494 let original = r##"<foo bar
>
496 let expected = r##"<foo bar
>
499 test_markdown_html(original, expected, false);
503 fn regression_test_37() {
504 let original = r##"<foo bar
=
507 let expected = r##"<p
><foo bar
=
511 test_markdown_html(original, expected, false);
515 fn regression_test_38() {
516 let original = r##"~~*_
**__
520 let expected = r##"<p
>~~*_
**__
</p
>
521 <p
><strong
>a
</strong
></p
>
524 test_markdown_html(original, expected, false);
528 fn regression_test_39() {
529 let original = r##"> `
532 let expected = r##"<blockquote
>
537 test_markdown_html(original, expected, false);
541 fn regression_test_40() {
542 let original = r##"`
\|`
544 let expected = r##"<p
><code
>\|</code
></p
>
547 test_markdown_html(original, expected, false);
551 fn regression_test_41() {
552 let original = r##"Paragraph
1
556 let expected = r##"<p
>Paragraph
1</p
>
560 test_markdown_html(original, expected, false);
564 fn regression_test_42() {
565 let original = r##"\[[link text
](https
://www.google.com/)\]
567 let expected = r##"<p
>[<a href
="https://www.google.com/">link text
</a
>]</p
>
570 test_markdown_html(original, expected, false);
574 fn regression_test_43() {
575 let original = r##"foo
| bar
579 let expected = r##"<table
><thead
><tr
><th
>foo
</th
><th
>bar
</th
></tr
></thead
><tbody
><tr
><td
>[a
](<
;</td
><td
>url
>
;)</td
></tr
></tbody
></table
>
582 test_markdown_html(original, expected, false);
586 fn regression_test_44() {
587 let original = r##"[a
](url
"
591 let expected = r##"<p
>[a
](url
"</p>
596 test_markdown_html(original, expected, false);
600 fn regression_test_45() {
601 let original = r##"[a
](url
605 let expected = r##"<p
>[a
](url
</p
>
609 test_markdown_html(original, expected, false);
613 fn regression_test_46() {
614 let original = r##"[a
](b
"
618 let expected = r##"<p
>[a
](b
"
;</p
>
622 test_markdown_html(original, expected, false);
626 fn regression_test_47() {
627 let original = r##"<http
:// >
629 let expected = r##"<p
><
;http
:// ></p>
632 test_markdown_html(original, expected, false);
636 fn regression_test_48() {
637 let original = r##"<http
://\a>
639 let expected = r##"<p
><
;http
://\a></p>
642 test_markdown_html(original, expected, false);
646 fn regression_test_49() {
647 let original = r##"foo
| bar
651 let expected = r##"<table
>
653 <tr
><th
>foo
</th
><th
>bar
</th
></tr
>
656 <tr
><td
><
;http
://</td><td>baz</td></tr>
661 test_markdown_html(original, expected, false);
665 fn regression_test_50() {
666 let original = r##"foo
| bar
670 let expected = r##"<table
>
672 <tr
><th
>foo
</th
><th
>bar
</th
></tr
>
675 <tr
><td
><
;http
://</td><td>></td></tr>
680 test_markdown_html(original, expected, false);
684 fn regression_test_51() {
685 let original = r##"<sup
>\*hi
</sup
>\_
687 let expected = r##"<p
><sup
>*hi
</sup
>_
</p
>
690 test_markdown_html(original, expected, false);
694 fn regression_test_52() {
695 let original = r##"email
: <john@example
.com
>\_
697 let expected = r##"<p
>email
: <a href
="mailto:john@example.com">john@example
.com
</a
>_
</p
>
700 test_markdown_html(original, expected, false);
704 fn regression_test_53() {
705 let original = r##"> [link
](/url 'foo
708 let expected = r##"<blockquote
>
709 <p
><a href
="/url" title
="foo
714 test_markdown_html(original, expected, false);
718 fn regression_test_54() {
719 let original = r##"> [foo
724 let expected = r##"<blockquote
>
725 <p
><a href
="/url">foo bar
</a
></p
>
729 test_markdown_html(original, expected, false);
733 fn regression_test_55() {
734 let original = r##"> [foo bar
]: /url
739 let expected = r##"<blockquote
>
740 <p
><a href
="/url">foo
745 test_markdown_html(original, expected, false);
749 fn regression_test_56() {
750 let original = r##"> - [a
755 let expected = r##"<blockquote
>
760 <p
><a href
="/foo">a b c
</a
></p
>
763 test_markdown_html(original, expected, false);
767 fn regression_test_57() {
768 let original = r##"[a
773 let expected = r##"<p
>[a
</p
>
780 test_markdown_html(original, expected, false);
784 fn regression_test_58() {
785 let original = r##"[`cargo
788 [`cargo package`
]: https
://example.com
790 let expected = r##"<p
><a href
="https://example.com"><code
>cargo package
</code
></a
></p
>
793 test_markdown_html(original, expected, false);
797 fn regression_test_59() {
798 let original = r##"> [`cargo
801 [`cargo package`
]: https
://example.com
803 let expected = r##"<blockquote
>
804 <p
><a href
="https://example.com"><code
>cargo package
</code
></a
></p
>
808 test_markdown_html(original, expected, false);
812 fn regression_test_60() {
813 let original = r##"> `cargo
816 let expected = r##"<blockquote
>
817 <p
><code
>cargo package
</code
></p
>
820 test_markdown_html(original, expected, false);
824 fn regression_test_61() {
825 let original = r##"> Note
: Though you should not rely on this
, all pointers to
<abbr
826 > title
="Dynamically Sized Types">DSTs
</abbr
> are currently twice the size of
827 > the size of `
usize` and have the same alignment
.
829 let expected = r##"<blockquote
>
830 <p
>Note
: Though you should not rely on this
, all pointers to
831 <abbr title
="Dynamically Sized Types">DSTs
</abbr
> are currently twice the size of
832 the size of
<code
>usize</code
> and have the same alignment
.</p
>
836 test_markdown_html(original, expected, false);
840 fn regression_test_62() {
841 let original = r##"Lorem ipsum
.[^a
]
843 An unordered list before the footnotes
:
849 let expected = r##"<p
>Lorem ipsum
.<sup class
="footnote-reference"><a href
="#a">1</a
></sup
></p
>
850 <p
>An unordered list before the footnotes
:</p
>
855 <div class
="footnote-definition" id
="a"><sup class
="footnote-definition-label">1</sup
>
860 test_markdown_html(original, expected, false);
864 fn regression_test_63() {
865 let original = r##"[][a
]
869 # assimp-rs [![][crates-badge]][crates]
871 [crates
]: https
://crates.io/crates/assimp
872 [crates
-badge
]: http
://meritbadge.herokuapp.com/assimp
874 let expected = r##"<p
><a href
="b"></a
></p
>
876 <h1
>assimp
-rs
<a href
="https://crates.io/crates/assimp"><img alt
="" src
="http://meritbadge.herokuapp.com/assimp"></a
></h1
>
879 test_markdown_html(original, expected, false);
883 fn regression_test_64() {
884 let original = r##"* A list
.
898 let expected = r##"<ul
>
906 <p
>Another sublist
.</p
>
917 <p
>Another sublist
.</p
>
924 test_markdown_html(original, expected, false);
928 fn regression_test_65() {
929 let original = r##"<foo
931 let expected = r##"<p
><
;foo
</p
>
934 test_markdown_html(original, expected, false);
938 fn regression_test_66() {
939 let original = r##"> > a
<a href
943 let expected = r##"<blockquote
>
952 test_markdown_html(original, expected, false);