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
);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
208 fn regression_test_14() {
209 let original = r##"[a
]: u
\
212 let expected = r##"<p
>foo
</p
>
215 test_markdown_html(original, expected);
219 fn regression_test_15() {
220 let original = r##"\`foo`
222 let expected = r##"<p
>`foo`
</p
>
225 test_markdown_html(original, expected);
229 fn regression_test_16() {
230 let original = r##"foo
\\
233 let expected = r##"<p
>foo
\
237 test_markdown_html(original, expected);
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);
254 fn regression_test_18() {
255 let original = r##"1...
265 let expected = r##"<p
>1...</p
>
272 test_markdown_html(original, expected);
276 fn regression_test_19() {
277 let original = r##"[](<<>)
279 let expected = r##"<p
>[](<
;<
;>
;)</p
>
282 test_markdown_html(original, expected);
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);
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);
306 fn regression_test_22() {
307 let original = r##"[\\]: x
311 let expected = r##"<p
>YOLO
</p
>
314 test_markdown_html(original, expected);
318 fn regression_test_23() {
319 let original = r##"lorem ipsum
324 let expected = r##"<p
>lorem ipsum
330 test_markdown_html(original, expected);
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);
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);
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);
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);
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);
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);
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);
417 fn regression_test_31() {
418 let original = r##"1. > foo
421 let expected = r##"<ol
>
434 test_markdown_html(original, expected);
438 fn regression_test_32() {
444 let expected = r##"<p
>[
449 test_markdown_html(original, expected);
453 fn regression_test_33() {
454 let original = r##"[foo
]:
456 let expected = r##"<p
>[foo
]:</p
>
459 test_markdown_html(original, expected);
463 fn regression_test_34() {
464 let original = r##"> foo
| bar
468 let expected = r##"<blockquote
>
469 <table
><thead
><tr
><th
>foo
</th
><th
>bar
</th
></tr
></thead
></table
>
474 test_markdown_html(original, expected);
478 fn regression_test_35() {
479 let original = r##"<foo bar
>
481 let expected = r##"<foo bar
>
484 test_markdown_html(original, expected);
488 fn regression_test_36() {
489 let original = r##"<foo bar
=
492 let expected = r##"<p
><foo bar
=
496 test_markdown_html(original, expected);
500 fn regression_test_37() {
501 let original = r##"~~*_
**__
505 let expected = r##"<p
>~~*_
**__
</p
>
506 <p
><strong
>a
</strong
></p
>
509 test_markdown_html(original, expected);
513 fn regression_test_38() {
514 let original = r##"> `
517 let expected = r##"<blockquote
>
522 test_markdown_html(original, expected);
526 fn regression_test_39() {
527 let original = r##"`
\|`
529 let expected = r##"<p
><code
>\|</code
></p
>
532 test_markdown_html(original, expected);
536 fn regression_test_40() {
537 let original = r##"Paragraph
1
541 let expected = r##"<p
>Paragraph
1</p
>
545 test_markdown_html(original, expected);
549 fn regression_test_41() {
550 let original = r##"\[[link text
](https
://www.google.com/)\]
552 let expected = r##"<p
>[<a href
="https://www.google.com/">link text
</a
>]</p
>
555 test_markdown_html(original, expected);
559 fn regression_test_42() {
560 let original = r##"foo
| bar
564 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
>
567 test_markdown_html(original, expected);
571 fn regression_test_43() {
572 let original = r##"[a
](url
"
576 let expected = r##"<p
>[a
](url
"</p>
581 test_markdown_html(original, expected);
585 fn regression_test_44() {
586 let original = r##"[a
](url
590 let expected = r##"<p
>[a
](url
</p
>
594 test_markdown_html(original, expected);
598 fn regression_test_45() {
599 let original = r##"[a
](b
"
603 let expected = r##"<p
>[a
](b
"
;</p
>
607 test_markdown_html(original, expected);
611 fn regression_test_46() {
612 let original = r##"<http
:// >
614 let expected = r##"<p
><
;http
:// ></p>
617 test_markdown_html(original, expected);
621 fn regression_test_47() {
622 let original = r##"<http
://\a>
624 let expected = r##"<p
><
;http
://\a></p>
627 test_markdown_html(original, expected);
631 fn regression_test_48() {
632 let original = r##"foo
| bar
636 let expected = r##"<table
>
638 <tr
><th
>foo
</th
><th
>bar
</th
></tr
>
641 <tr
><td
><
;http
://</td><td>baz</td></tr>
646 test_markdown_html(original, expected);
650 fn regression_test_49() {
651 let original = r##"foo
| bar
655 let expected = r##"<table
>
657 <tr
><th
>foo
</th
><th
>bar
</th
></tr
>
660 <tr
><td
><
;http
://</td><td>></td></tr>
665 test_markdown_html(original, expected);
669 fn regression_test_50() {
670 let original = r##"<sup
>\*hi
</sup
>\_
672 let expected = r##"<p
><sup
>*hi
</sup
>_
</p
>
675 test_markdown_html(original, expected);
679 fn regression_test_51() {
680 let original = r##"email
: <john@example
.com
>\_
682 let expected = r##"<p
>email
: <a href
="mailto:john@example.com">john@example
.com
</a
>_
</p
>
685 test_markdown_html(original, expected);
689 fn regression_test_52() {
690 let original = r##"> [link
](/url 'foo
693 let expected = r##"<blockquote
>
694 <p
><a href
="/url" title
="foo
699 test_markdown_html(original, expected);
703 fn regression_test_53() {
704 let original = r##"> [foo
709 let expected = r##"<blockquote
>
710 <p
><a href
="/url">foo bar
</a
></p
>
714 test_markdown_html(original, expected);
718 fn regression_test_54() {
719 let original = r##"> [foo bar
]: /url
724 let expected = r##"<blockquote
>
725 <p
><a href
="/url">foo
730 test_markdown_html(original, expected);
734 fn regression_test_55() {
735 let original = r##"> - [a
740 let expected = r##"<blockquote
>
745 <p
><a href
="/foo">a b c
</a
></p
>
748 test_markdown_html(original, expected);
752 fn regression_test_56() {
753 let original = r##"[a
758 let expected = r##"<p
>[a
</p
>
765 test_markdown_html(original, expected);
769 fn regression_test_57() {
770 let original = r##"[`cargo
773 [`cargo package`
]: https
://example.com
775 let expected = r##"<p
><a href
="https://example.com"><code
>cargo package
</code
></a
></p
>
778 test_markdown_html(original, expected);
782 fn regression_test_58() {
783 let original = r##"> [`cargo
786 [`cargo package`
]: https
://example.com
788 let expected = r##"<blockquote
>
789 <p
><a href
="https://example.com"><code
>cargo package
</code
></a
></p
>
793 test_markdown_html(original, expected);
797 fn regression_test_59() {
798 let original = r##"> `cargo
801 let expected = r##"<blockquote
>
802 <p
><code
>cargo package
</code
></p
>
805 test_markdown_html(original, expected);
809 fn regression_test_60() {
810 let original = r##"Lorem ipsum
.[^a
]
812 An unordered list before the footnotes
:
818 let expected = r##"<p
>Lorem ipsum
.<sup class
="footnote-reference"><a href
="#a">1</a
></sup
></p
>
819 <p
>An unordered list before the footnotes
:</p
>
824 <div class
="footnote-definition" id
="a"><sup class
="footnote-definition-label">1</sup
>
829 test_markdown_html(original, expected);
833 fn regression_test_61() {
834 let original = r##"[][a
]
838 # assimp-rs [![][crates-badge]][crates]
840 [crates
]: https
://crates.io/crates/assimp
841 [crates
-badge
]: http
://meritbadge.herokuapp.com/assimp
843 let expected = r##"<p
><a href
="b"></a
></p
>
845 <h1
>assimp
-rs
<a href
="https://crates.io/crates/assimp"><img alt
="" src
="http://meritbadge.herokuapp.com/assimp"></a
></h1
>
848 test_markdown_html(original, expected);
852 fn regression_test_62() {
853 let original = "<foo
";
854 let expected = r##"<p
><
;foo
</p
>
857 test_markdown_html(original, expected);