1 // This file is auto-generated by the build script
2 // Please, do not modify it manually
3
4 use super::test_markdown_html;
5
6 #[test]
spec_test_1()7 fn spec_test_1() {
8 let original = r##" foo baz bim
9 "##;
10 let expected = r##"<pre><code>foo baz bim
11 </code></pre>
12 "##;
13
14 test_markdown_html(original, expected);
15 }
16
17 #[test]
spec_test_2()18 fn spec_test_2() {
19 let original = r##" foo baz bim
20 "##;
21 let expected = r##"<pre><code>foo baz bim
22 </code></pre>
23 "##;
24
25 test_markdown_html(original, expected);
26 }
27
28 #[test]
spec_test_3()29 fn spec_test_3() {
30 let original = r##" a a
31 ὐ a
32 "##;
33 let expected = r##"<pre><code>a a
34 ὐ a
35 </code></pre>
36 "##;
37
38 test_markdown_html(original, expected);
39 }
40
41 #[test]
spec_test_4()42 fn spec_test_4() {
43 let original = r##" - foo
44
45 bar
46 "##;
47 let expected = r##"<ul>
48 <li>
49 <p>foo</p>
50 <p>bar</p>
51 </li>
52 </ul>
53 "##;
54
55 test_markdown_html(original, expected);
56 }
57
58 #[test]
spec_test_5()59 fn spec_test_5() {
60 let original = r##"- foo
61
62 bar
63 "##;
64 let expected = r##"<ul>
65 <li>
66 <p>foo</p>
67 <pre><code> bar
68 </code></pre>
69 </li>
70 </ul>
71 "##;
72
73 test_markdown_html(original, expected);
74 }
75
76 #[test]
spec_test_6()77 fn spec_test_6() {
78 let original = r##"> foo
79 "##;
80 let expected = r##"<blockquote>
81 <pre><code> foo
82 </code></pre>
83 </blockquote>
84 "##;
85
86 test_markdown_html(original, expected);
87 }
88
89 #[test]
spec_test_7()90 fn spec_test_7() {
91 let original = r##"- foo
92 "##;
93 let expected = r##"<ul>
94 <li>
95 <pre><code> foo
96 </code></pre>
97 </li>
98 </ul>
99 "##;
100
101 test_markdown_html(original, expected);
102 }
103
104 #[test]
spec_test_8()105 fn spec_test_8() {
106 let original = r##" foo
107 bar
108 "##;
109 let expected = r##"<pre><code>foo
110 bar
111 </code></pre>
112 "##;
113
114 test_markdown_html(original, expected);
115 }
116
117 #[test]
spec_test_9()118 fn spec_test_9() {
119 let original = r##" - foo
120 - bar
121 - baz
122 "##;
123 let expected = r##"<ul>
124 <li>foo
125 <ul>
126 <li>bar
127 <ul>
128 <li>baz</li>
129 </ul>
130 </li>
131 </ul>
132 </li>
133 </ul>
134 "##;
135
136 test_markdown_html(original, expected);
137 }
138
139 #[test]
spec_test_10()140 fn spec_test_10() {
141 let original = r##"# Foo
142 "##;
143 let expected = r##"<h1>Foo</h1>
144 "##;
145
146 test_markdown_html(original, expected);
147 }
148
149 #[test]
spec_test_11()150 fn spec_test_11() {
151 let original = r##"* * *
152 "##;
153 let expected = r##"<hr />
154 "##;
155
156 test_markdown_html(original, expected);
157 }
158
159 #[test]
spec_test_12()160 fn spec_test_12() {
161 let original = r##"- `one
162 - two`
163 "##;
164 let expected = r##"<ul>
165 <li>`one</li>
166 <li>two`</li>
167 </ul>
168 "##;
169
170 test_markdown_html(original, expected);
171 }
172
173 #[test]
spec_test_13()174 fn spec_test_13() {
175 let original = r##"***
176 ---
177 ___
178 "##;
179 let expected = r##"<hr />
180 <hr />
181 <hr />
182 "##;
183
184 test_markdown_html(original, expected);
185 }
186
187 #[test]
spec_test_14()188 fn spec_test_14() {
189 let original = r##"+++
190 "##;
191 let expected = r##"<p>+++</p>
192 "##;
193
194 test_markdown_html(original, expected);
195 }
196
197 #[test]
spec_test_15()198 fn spec_test_15() {
199 let original = r##"===
200 "##;
201 let expected = r##"<p>===</p>
202 "##;
203
204 test_markdown_html(original, expected);
205 }
206
207 #[test]
spec_test_16()208 fn spec_test_16() {
209 let original = r##"--
210 **
211 __
212 "##;
213 let expected = r##"<p>--
214 **
215 __</p>
216 "##;
217
218 test_markdown_html(original, expected);
219 }
220
221 #[test]
spec_test_17()222 fn spec_test_17() {
223 let original = r##" ***
224 ***
225 ***
226 "##;
227 let expected = r##"<hr />
228 <hr />
229 <hr />
230 "##;
231
232 test_markdown_html(original, expected);
233 }
234
235 #[test]
spec_test_18()236 fn spec_test_18() {
237 let original = r##" ***
238 "##;
239 let expected = r##"<pre><code>***
240 </code></pre>
241 "##;
242
243 test_markdown_html(original, expected);
244 }
245
246 #[test]
spec_test_19()247 fn spec_test_19() {
248 let original = r##"Foo
249 ***
250 "##;
251 let expected = r##"<p>Foo
252 ***</p>
253 "##;
254
255 test_markdown_html(original, expected);
256 }
257
258 #[test]
spec_test_20()259 fn spec_test_20() {
260 let original = r##"_____________________________________
261 "##;
262 let expected = r##"<hr />
263 "##;
264
265 test_markdown_html(original, expected);
266 }
267
268 #[test]
spec_test_21()269 fn spec_test_21() {
270 let original = r##" - - -
271 "##;
272 let expected = r##"<hr />
273 "##;
274
275 test_markdown_html(original, expected);
276 }
277
278 #[test]
spec_test_22()279 fn spec_test_22() {
280 let original = r##" ** * ** * ** * **
281 "##;
282 let expected = r##"<hr />
283 "##;
284
285 test_markdown_html(original, expected);
286 }
287
288 #[test]
spec_test_23()289 fn spec_test_23() {
290 let original = r##"- - - -
291 "##;
292 let expected = r##"<hr />
293 "##;
294
295 test_markdown_html(original, expected);
296 }
297
298 #[test]
spec_test_24()299 fn spec_test_24() {
300 let original = r##"- - - -
301 "##;
302 let expected = r##"<hr />
303 "##;
304
305 test_markdown_html(original, expected);
306 }
307
308 #[test]
spec_test_25()309 fn spec_test_25() {
310 let original = r##"_ _ _ _ a
311
312 a------
313
314 ---a---
315 "##;
316 let expected = r##"<p>_ _ _ _ a</p>
317 <p>a------</p>
318 <p>---a---</p>
319 "##;
320
321 test_markdown_html(original, expected);
322 }
323
324 #[test]
spec_test_26()325 fn spec_test_26() {
326 let original = r##" *-*
327 "##;
328 let expected = r##"<p><em>-</em></p>
329 "##;
330
331 test_markdown_html(original, expected);
332 }
333
334 #[test]
spec_test_27()335 fn spec_test_27() {
336 let original = r##"- foo
337 ***
338 - bar
339 "##;
340 let expected = r##"<ul>
341 <li>foo</li>
342 </ul>
343 <hr />
344 <ul>
345 <li>bar</li>
346 </ul>
347 "##;
348
349 test_markdown_html(original, expected);
350 }
351
352 #[test]
spec_test_28()353 fn spec_test_28() {
354 let original = r##"Foo
355 ***
356 bar
357 "##;
358 let expected = r##"<p>Foo</p>
359 <hr />
360 <p>bar</p>
361 "##;
362
363 test_markdown_html(original, expected);
364 }
365
366 #[test]
spec_test_29()367 fn spec_test_29() {
368 let original = r##"Foo
369 ---
370 bar
371 "##;
372 let expected = r##"<h2>Foo</h2>
373 <p>bar</p>
374 "##;
375
376 test_markdown_html(original, expected);
377 }
378
379 #[test]
spec_test_30()380 fn spec_test_30() {
381 let original = r##"* Foo
382 * * *
383 * Bar
384 "##;
385 let expected = r##"<ul>
386 <li>Foo</li>
387 </ul>
388 <hr />
389 <ul>
390 <li>Bar</li>
391 </ul>
392 "##;
393
394 test_markdown_html(original, expected);
395 }
396
397 #[test]
spec_test_31()398 fn spec_test_31() {
399 let original = r##"- Foo
400 - * * *
401 "##;
402 let expected = r##"<ul>
403 <li>Foo</li>
404 <li>
405 <hr />
406 </li>
407 </ul>
408 "##;
409
410 test_markdown_html(original, expected);
411 }
412
413 #[test]
spec_test_32()414 fn spec_test_32() {
415 let original = r##"# foo
416 ## foo
417 ### foo
418 #### foo
419 ##### foo
420 ###### foo
421 "##;
422 let expected = r##"<h1>foo</h1>
423 <h2>foo</h2>
424 <h3>foo</h3>
425 <h4>foo</h4>
426 <h5>foo</h5>
427 <h6>foo</h6>
428 "##;
429
430 test_markdown_html(original, expected);
431 }
432
433 #[test]
spec_test_33()434 fn spec_test_33() {
435 let original = r##"####### foo
436 "##;
437 let expected = r##"<p>####### foo</p>
438 "##;
439
440 test_markdown_html(original, expected);
441 }
442
443 #[test]
spec_test_34()444 fn spec_test_34() {
445 let original = r##"#5 bolt
446
447 #hashtag
448 "##;
449 let expected = r##"<p>#5 bolt</p>
450 <p>#hashtag</p>
451 "##;
452
453 test_markdown_html(original, expected);
454 }
455
456 #[test]
spec_test_35()457 fn spec_test_35() {
458 let original = r##"\## foo
459 "##;
460 let expected = r##"<p>## foo</p>
461 "##;
462
463 test_markdown_html(original, expected);
464 }
465
466 #[test]
spec_test_36()467 fn spec_test_36() {
468 let original = r##"# foo *bar* \*baz\*
469 "##;
470 let expected = r##"<h1>foo <em>bar</em> *baz*</h1>
471 "##;
472
473 test_markdown_html(original, expected);
474 }
475
476 #[test]
spec_test_37()477 fn spec_test_37() {
478 let original = r##"# foo
479 "##;
480 let expected = r##"<h1>foo</h1>
481 "##;
482
483 test_markdown_html(original, expected);
484 }
485
486 #[test]
spec_test_38()487 fn spec_test_38() {
488 let original = r##" ### foo
489 ## foo
490 # foo
491 "##;
492 let expected = r##"<h3>foo</h3>
493 <h2>foo</h2>
494 <h1>foo</h1>
495 "##;
496
497 test_markdown_html(original, expected);
498 }
499
500 #[test]
spec_test_39()501 fn spec_test_39() {
502 let original = r##" # foo
503 "##;
504 let expected = r##"<pre><code># foo
505 </code></pre>
506 "##;
507
508 test_markdown_html(original, expected);
509 }
510
511 #[test]
spec_test_40()512 fn spec_test_40() {
513 let original = r##"foo
514 # bar
515 "##;
516 let expected = r##"<p>foo
517 # bar</p>
518 "##;
519
520 test_markdown_html(original, expected);
521 }
522
523 #[test]
spec_test_41()524 fn spec_test_41() {
525 let original = r##"## foo ##
526 ### bar ###
527 "##;
528 let expected = r##"<h2>foo</h2>
529 <h3>bar</h3>
530 "##;
531
532 test_markdown_html(original, expected);
533 }
534
535 #[test]
spec_test_42()536 fn spec_test_42() {
537 let original = r##"# foo ##################################
538 ##### foo ##
539 "##;
540 let expected = r##"<h1>foo</h1>
541 <h5>foo</h5>
542 "##;
543
544 test_markdown_html(original, expected);
545 }
546
547 #[test]
spec_test_43()548 fn spec_test_43() {
549 let original = r##"### foo ###
550 "##;
551 let expected = r##"<h3>foo</h3>
552 "##;
553
554 test_markdown_html(original, expected);
555 }
556
557 #[test]
spec_test_44()558 fn spec_test_44() {
559 let original = r##"### foo ### b
560 "##;
561 let expected = r##"<h3>foo ### b</h3>
562 "##;
563
564 test_markdown_html(original, expected);
565 }
566
567 #[test]
spec_test_45()568 fn spec_test_45() {
569 let original = r##"# foo#
570 "##;
571 let expected = r##"<h1>foo#</h1>
572 "##;
573
574 test_markdown_html(original, expected);
575 }
576
577 #[test]
spec_test_46()578 fn spec_test_46() {
579 let original = r##"### foo \###
580 ## foo #\##
581 # foo \#
582 "##;
583 let expected = r##"<h3>foo ###</h3>
584 <h2>foo ###</h2>
585 <h1>foo #</h1>
586 "##;
587
588 test_markdown_html(original, expected);
589 }
590
591 #[test]
spec_test_47()592 fn spec_test_47() {
593 let original = r##"****
594 ## foo
595 ****
596 "##;
597 let expected = r##"<hr />
598 <h2>foo</h2>
599 <hr />
600 "##;
601
602 test_markdown_html(original, expected);
603 }
604
605 #[test]
spec_test_48()606 fn spec_test_48() {
607 let original = r##"Foo bar
608 # baz
609 Bar foo
610 "##;
611 let expected = r##"<p>Foo bar</p>
612 <h1>baz</h1>
613 <p>Bar foo</p>
614 "##;
615
616 test_markdown_html(original, expected);
617 }
618
619 #[test]
spec_test_49()620 fn spec_test_49() {
621 let original = r##"##
622 #
623 ### ###
624 "##;
625 let expected = r##"<h2></h2>
626 <h1></h1>
627 <h3></h3>
628 "##;
629
630 test_markdown_html(original, expected);
631 }
632
633 #[test]
spec_test_50()634 fn spec_test_50() {
635 let original = r##"Foo *bar*
636 =========
637
638 Foo *bar*
639 ---------
640 "##;
641 let expected = r##"<h1>Foo <em>bar</em></h1>
642 <h2>Foo <em>bar</em></h2>
643 "##;
644
645 test_markdown_html(original, expected);
646 }
647
648 #[test]
spec_test_51()649 fn spec_test_51() {
650 let original = r##"Foo *bar
651 baz*
652 ====
653 "##;
654 let expected = r##"<h1>Foo <em>bar
655 baz</em></h1>
656 "##;
657
658 test_markdown_html(original, expected);
659 }
660
661 #[test]
spec_test_52()662 fn spec_test_52() {
663 let original = r##" Foo *bar
664 baz*
665 ====
666 "##;
667 let expected = r##"<h1>Foo <em>bar
668 baz</em></h1>
669 "##;
670
671 test_markdown_html(original, expected);
672 }
673
674 #[test]
spec_test_53()675 fn spec_test_53() {
676 let original = r##"Foo
677 -------------------------
678
679 Foo
680 =
681 "##;
682 let expected = r##"<h2>Foo</h2>
683 <h1>Foo</h1>
684 "##;
685
686 test_markdown_html(original, expected);
687 }
688
689 #[test]
spec_test_54()690 fn spec_test_54() {
691 let original = r##" Foo
692 ---
693
694 Foo
695 -----
696
697 Foo
698 ===
699 "##;
700 let expected = r##"<h2>Foo</h2>
701 <h2>Foo</h2>
702 <h1>Foo</h1>
703 "##;
704
705 test_markdown_html(original, expected);
706 }
707
708 #[test]
spec_test_55()709 fn spec_test_55() {
710 let original = r##" Foo
711 ---
712
713 Foo
714 ---
715 "##;
716 let expected = r##"<pre><code>Foo
717 ---
718
719 Foo
720 </code></pre>
721 <hr />
722 "##;
723
724 test_markdown_html(original, expected);
725 }
726
727 #[test]
spec_test_56()728 fn spec_test_56() {
729 let original = r##"Foo
730 ----
731 "##;
732 let expected = r##"<h2>Foo</h2>
733 "##;
734
735 test_markdown_html(original, expected);
736 }
737
738 #[test]
spec_test_57()739 fn spec_test_57() {
740 let original = r##"Foo
741 ---
742 "##;
743 let expected = r##"<p>Foo
744 ---</p>
745 "##;
746
747 test_markdown_html(original, expected);
748 }
749
750 #[test]
spec_test_58()751 fn spec_test_58() {
752 let original = r##"Foo
753 = =
754
755 Foo
756 --- -
757 "##;
758 let expected = r##"<p>Foo
759 = =</p>
760 <p>Foo</p>
761 <hr />
762 "##;
763
764 test_markdown_html(original, expected);
765 }
766
767 #[test]
spec_test_59()768 fn spec_test_59() {
769 let original = r##"Foo
770 -----
771 "##;
772 let expected = r##"<h2>Foo</h2>
773 "##;
774
775 test_markdown_html(original, expected);
776 }
777
778 #[test]
spec_test_60()779 fn spec_test_60() {
780 let original = r##"Foo\
781 ----
782 "##;
783 let expected = r##"<h2>Foo\</h2>
784 "##;
785
786 test_markdown_html(original, expected);
787 }
788
789 #[test]
spec_test_61()790 fn spec_test_61() {
791 let original = r##"`Foo
792 ----
793 `
794
795 <a title="a lot
796 ---
797 of dashes"/>
798 "##;
799 let expected = r##"<h2>`Foo</h2>
800 <p>`</p>
801 <h2><a title="a lot</h2>
802 <p>of dashes"/></p>
803 "##;
804
805 test_markdown_html(original, expected);
806 }
807
808 #[test]
spec_test_62()809 fn spec_test_62() {
810 let original = r##"> Foo
811 ---
812 "##;
813 let expected = r##"<blockquote>
814 <p>Foo</p>
815 </blockquote>
816 <hr />
817 "##;
818
819 test_markdown_html(original, expected);
820 }
821
822 #[test]
spec_test_63()823 fn spec_test_63() {
824 let original = r##"> foo
825 bar
826 ===
827 "##;
828 let expected = r##"<blockquote>
829 <p>foo
830 bar
831 ===</p>
832 </blockquote>
833 "##;
834
835 test_markdown_html(original, expected);
836 }
837
838 #[test]
spec_test_64()839 fn spec_test_64() {
840 let original = r##"- Foo
841 ---
842 "##;
843 let expected = r##"<ul>
844 <li>Foo</li>
845 </ul>
846 <hr />
847 "##;
848
849 test_markdown_html(original, expected);
850 }
851
852 #[test]
spec_test_65()853 fn spec_test_65() {
854 let original = r##"Foo
855 Bar
856 ---
857 "##;
858 let expected = r##"<h2>Foo
859 Bar</h2>
860 "##;
861
862 test_markdown_html(original, expected);
863 }
864
865 #[test]
spec_test_66()866 fn spec_test_66() {
867 let original = r##"---
868 Foo
869 ---
870 Bar
871 ---
872 Baz
873 "##;
874 let expected = r##"<hr />
875 <h2>Foo</h2>
876 <h2>Bar</h2>
877 <p>Baz</p>
878 "##;
879
880 test_markdown_html(original, expected);
881 }
882
883 #[test]
spec_test_67()884 fn spec_test_67() {
885 let original = r##"
886 ====
887 "##;
888 let expected = r##"<p>====</p>
889 "##;
890
891 test_markdown_html(original, expected);
892 }
893
894 #[test]
spec_test_68()895 fn spec_test_68() {
896 let original = r##"---
897 ---
898 "##;
899 let expected = r##"<hr />
900 <hr />
901 "##;
902
903 test_markdown_html(original, expected);
904 }
905
906 #[test]
spec_test_69()907 fn spec_test_69() {
908 let original = r##"- foo
909 -----
910 "##;
911 let expected = r##"<ul>
912 <li>foo</li>
913 </ul>
914 <hr />
915 "##;
916
917 test_markdown_html(original, expected);
918 }
919
920 #[test]
spec_test_70()921 fn spec_test_70() {
922 let original = r##" foo
923 ---
924 "##;
925 let expected = r##"<pre><code>foo
926 </code></pre>
927 <hr />
928 "##;
929
930 test_markdown_html(original, expected);
931 }
932
933 #[test]
spec_test_71()934 fn spec_test_71() {
935 let original = r##"> foo
936 -----
937 "##;
938 let expected = r##"<blockquote>
939 <p>foo</p>
940 </blockquote>
941 <hr />
942 "##;
943
944 test_markdown_html(original, expected);
945 }
946
947 #[test]
spec_test_72()948 fn spec_test_72() {
949 let original = r##"\> foo
950 ------
951 "##;
952 let expected = r##"<h2>> foo</h2>
953 "##;
954
955 test_markdown_html(original, expected);
956 }
957
958 #[test]
spec_test_73()959 fn spec_test_73() {
960 let original = r##"Foo
961
962 bar
963 ---
964 baz
965 "##;
966 let expected = r##"<p>Foo</p>
967 <h2>bar</h2>
968 <p>baz</p>
969 "##;
970
971 test_markdown_html(original, expected);
972 }
973
974 #[test]
spec_test_74()975 fn spec_test_74() {
976 let original = r##"Foo
977 bar
978
979 ---
980
981 baz
982 "##;
983 let expected = r##"<p>Foo
984 bar</p>
985 <hr />
986 <p>baz</p>
987 "##;
988
989 test_markdown_html(original, expected);
990 }
991
992 #[test]
spec_test_75()993 fn spec_test_75() {
994 let original = r##"Foo
995 bar
996 * * *
997 baz
998 "##;
999 let expected = r##"<p>Foo
1000 bar</p>
1001 <hr />
1002 <p>baz</p>
1003 "##;
1004
1005 test_markdown_html(original, expected);
1006 }
1007
1008 #[test]
spec_test_76()1009 fn spec_test_76() {
1010 let original = r##"Foo
1011 bar
1012 \---
1013 baz
1014 "##;
1015 let expected = r##"<p>Foo
1016 bar
1017 ---
1018 baz</p>
1019 "##;
1020
1021 test_markdown_html(original, expected);
1022 }
1023
1024 #[test]
spec_test_77()1025 fn spec_test_77() {
1026 let original = r##" a simple
1027 indented code block
1028 "##;
1029 let expected = r##"<pre><code>a simple
1030 indented code block
1031 </code></pre>
1032 "##;
1033
1034 test_markdown_html(original, expected);
1035 }
1036
1037 #[test]
spec_test_78()1038 fn spec_test_78() {
1039 let original = r##" - foo
1040
1041 bar
1042 "##;
1043 let expected = r##"<ul>
1044 <li>
1045 <p>foo</p>
1046 <p>bar</p>
1047 </li>
1048 </ul>
1049 "##;
1050
1051 test_markdown_html(original, expected);
1052 }
1053
1054 #[test]
spec_test_79()1055 fn spec_test_79() {
1056 let original = r##"1. foo
1057
1058 - bar
1059 "##;
1060 let expected = r##"<ol>
1061 <li>
1062 <p>foo</p>
1063 <ul>
1064 <li>bar</li>
1065 </ul>
1066 </li>
1067 </ol>
1068 "##;
1069
1070 test_markdown_html(original, expected);
1071 }
1072
1073 #[test]
spec_test_80()1074 fn spec_test_80() {
1075 let original = r##" <a/>
1076 *hi*
1077
1078 - one
1079 "##;
1080 let expected = r##"<pre><code><a/>
1081 *hi*
1082
1083 - one
1084 </code></pre>
1085 "##;
1086
1087 test_markdown_html(original, expected);
1088 }
1089
1090 #[test]
spec_test_81()1091 fn spec_test_81() {
1092 let original = r##" chunk1
1093
1094 chunk2
1095
1096
1097
1098 chunk3
1099 "##;
1100 let expected = r##"<pre><code>chunk1
1101
1102 chunk2
1103
1104
1105
1106 chunk3
1107 </code></pre>
1108 "##;
1109
1110 test_markdown_html(original, expected);
1111 }
1112
1113 #[test]
spec_test_82()1114 fn spec_test_82() {
1115 let original = r##" chunk1
1116
1117 chunk2
1118 "##;
1119 let expected = r##"<pre><code>chunk1
1120
1121 chunk2
1122 </code></pre>
1123 "##;
1124
1125 test_markdown_html(original, expected);
1126 }
1127
1128 #[test]
spec_test_83()1129 fn spec_test_83() {
1130 let original = r##"Foo
1131 bar
1132
1133 "##;
1134 let expected = r##"<p>Foo
1135 bar</p>
1136 "##;
1137
1138 test_markdown_html(original, expected);
1139 }
1140
1141 #[test]
spec_test_84()1142 fn spec_test_84() {
1143 let original = r##" foo
1144 bar
1145 "##;
1146 let expected = r##"<pre><code>foo
1147 </code></pre>
1148 <p>bar</p>
1149 "##;
1150
1151 test_markdown_html(original, expected);
1152 }
1153
1154 #[test]
spec_test_85()1155 fn spec_test_85() {
1156 let original = r##"# Heading
1157 foo
1158 Heading
1159 ------
1160 foo
1161 ----
1162 "##;
1163 let expected = r##"<h1>Heading</h1>
1164 <pre><code>foo
1165 </code></pre>
1166 <h2>Heading</h2>
1167 <pre><code>foo
1168 </code></pre>
1169 <hr />
1170 "##;
1171
1172 test_markdown_html(original, expected);
1173 }
1174
1175 #[test]
spec_test_86()1176 fn spec_test_86() {
1177 let original = r##" foo
1178 bar
1179 "##;
1180 let expected = r##"<pre><code> foo
1181 bar
1182 </code></pre>
1183 "##;
1184
1185 test_markdown_html(original, expected);
1186 }
1187
1188 #[test]
spec_test_87()1189 fn spec_test_87() {
1190 let original = r##"
1191
1192 foo
1193
1194
1195 "##;
1196 let expected = r##"<pre><code>foo
1197 </code></pre>
1198 "##;
1199
1200 test_markdown_html(original, expected);
1201 }
1202
1203 #[test]
spec_test_88()1204 fn spec_test_88() {
1205 let original = r##" foo
1206 "##;
1207 let expected = r##"<pre><code>foo
1208 </code></pre>
1209 "##;
1210
1211 test_markdown_html(original, expected);
1212 }
1213
1214 #[test]
spec_test_89()1215 fn spec_test_89() {
1216 let original = r##"```
1217 <
1218 >
1219 ```
1220 "##;
1221 let expected = r##"<pre><code><
1222 >
1223 </code></pre>
1224 "##;
1225
1226 test_markdown_html(original, expected);
1227 }
1228
1229 #[test]
spec_test_90()1230 fn spec_test_90() {
1231 let original = r##"~~~
1232 <
1233 >
1234 ~~~
1235 "##;
1236 let expected = r##"<pre><code><
1237 >
1238 </code></pre>
1239 "##;
1240
1241 test_markdown_html(original, expected);
1242 }
1243
1244 #[test]
spec_test_91()1245 fn spec_test_91() {
1246 let original = r##"``
1247 foo
1248 ``
1249 "##;
1250 let expected = r##"<p><code>foo</code></p>
1251 "##;
1252
1253 test_markdown_html(original, expected);
1254 }
1255
1256 #[test]
spec_test_92()1257 fn spec_test_92() {
1258 let original = r##"```
1259 aaa
1260 ~~~
1261 ```
1262 "##;
1263 let expected = r##"<pre><code>aaa
1264 ~~~
1265 </code></pre>
1266 "##;
1267
1268 test_markdown_html(original, expected);
1269 }
1270
1271 #[test]
spec_test_93()1272 fn spec_test_93() {
1273 let original = r##"~~~
1274 aaa
1275 ```
1276 ~~~
1277 "##;
1278 let expected = r##"<pre><code>aaa
1279 ```
1280 </code></pre>
1281 "##;
1282
1283 test_markdown_html(original, expected);
1284 }
1285
1286 #[test]
spec_test_94()1287 fn spec_test_94() {
1288 let original = r##"````
1289 aaa
1290 ```
1291 ``````
1292 "##;
1293 let expected = r##"<pre><code>aaa
1294 ```
1295 </code></pre>
1296 "##;
1297
1298 test_markdown_html(original, expected);
1299 }
1300
1301 #[test]
spec_test_95()1302 fn spec_test_95() {
1303 let original = r##"~~~~
1304 aaa
1305 ~~~
1306 ~~~~
1307 "##;
1308 let expected = r##"<pre><code>aaa
1309 ~~~
1310 </code></pre>
1311 "##;
1312
1313 test_markdown_html(original, expected);
1314 }
1315
1316 #[test]
spec_test_96()1317 fn spec_test_96() {
1318 let original = r##"```
1319 "##;
1320 let expected = r##"<pre><code></code></pre>
1321 "##;
1322
1323 test_markdown_html(original, expected);
1324 }
1325
1326 #[test]
spec_test_97()1327 fn spec_test_97() {
1328 let original = r##"`````
1329
1330 ```
1331 aaa
1332 "##;
1333 let expected = r##"<pre><code>
1334 ```
1335 aaa
1336 </code></pre>
1337 "##;
1338
1339 test_markdown_html(original, expected);
1340 }
1341
1342 #[test]
spec_test_98()1343 fn spec_test_98() {
1344 let original = r##"> ```
1345 > aaa
1346
1347 bbb
1348 "##;
1349 let expected = r##"<blockquote>
1350 <pre><code>aaa
1351 </code></pre>
1352 </blockquote>
1353 <p>bbb</p>
1354 "##;
1355
1356 test_markdown_html(original, expected);
1357 }
1358
1359 #[test]
spec_test_99()1360 fn spec_test_99() {
1361 let original = r##"```
1362
1363
1364 ```
1365 "##;
1366 let expected = r##"<pre><code>
1367
1368 </code></pre>
1369 "##;
1370
1371 test_markdown_html(original, expected);
1372 }
1373
1374 #[test]
spec_test_100()1375 fn spec_test_100() {
1376 let original = r##"```
1377 ```
1378 "##;
1379 let expected = r##"<pre><code></code></pre>
1380 "##;
1381
1382 test_markdown_html(original, expected);
1383 }
1384
1385 #[test]
spec_test_101()1386 fn spec_test_101() {
1387 let original = r##" ```
1388 aaa
1389 aaa
1390 ```
1391 "##;
1392 let expected = r##"<pre><code>aaa
1393 aaa
1394 </code></pre>
1395 "##;
1396
1397 test_markdown_html(original, expected);
1398 }
1399
1400 #[test]
spec_test_102()1401 fn spec_test_102() {
1402 let original = r##" ```
1403 aaa
1404 aaa
1405 aaa
1406 ```
1407 "##;
1408 let expected = r##"<pre><code>aaa
1409 aaa
1410 aaa
1411 </code></pre>
1412 "##;
1413
1414 test_markdown_html(original, expected);
1415 }
1416
1417 #[test]
spec_test_103()1418 fn spec_test_103() {
1419 let original = r##" ```
1420 aaa
1421 aaa
1422 aaa
1423 ```
1424 "##;
1425 let expected = r##"<pre><code>aaa
1426 aaa
1427 aaa
1428 </code></pre>
1429 "##;
1430
1431 test_markdown_html(original, expected);
1432 }
1433
1434 #[test]
spec_test_104()1435 fn spec_test_104() {
1436 let original = r##" ```
1437 aaa
1438 ```
1439 "##;
1440 let expected = r##"<pre><code>```
1441 aaa
1442 ```
1443 </code></pre>
1444 "##;
1445
1446 test_markdown_html(original, expected);
1447 }
1448
1449 #[test]
spec_test_105()1450 fn spec_test_105() {
1451 let original = r##"```
1452 aaa
1453 ```
1454 "##;
1455 let expected = r##"<pre><code>aaa
1456 </code></pre>
1457 "##;
1458
1459 test_markdown_html(original, expected);
1460 }
1461
1462 #[test]
spec_test_106()1463 fn spec_test_106() {
1464 let original = r##" ```
1465 aaa
1466 ```
1467 "##;
1468 let expected = r##"<pre><code>aaa
1469 </code></pre>
1470 "##;
1471
1472 test_markdown_html(original, expected);
1473 }
1474
1475 #[test]
spec_test_107()1476 fn spec_test_107() {
1477 let original = r##"```
1478 aaa
1479 ```
1480 "##;
1481 let expected = r##"<pre><code>aaa
1482 ```
1483 </code></pre>
1484 "##;
1485
1486 test_markdown_html(original, expected);
1487 }
1488
1489 #[test]
spec_test_108()1490 fn spec_test_108() {
1491 let original = r##"``` ```
1492 aaa
1493 "##;
1494 let expected = r##"<p><code> </code>
1495 aaa</p>
1496 "##;
1497
1498 test_markdown_html(original, expected);
1499 }
1500
1501 #[test]
spec_test_109()1502 fn spec_test_109() {
1503 let original = r##"~~~~~~
1504 aaa
1505 ~~~ ~~
1506 "##;
1507 let expected = r##"<pre><code>aaa
1508 ~~~ ~~
1509 </code></pre>
1510 "##;
1511
1512 test_markdown_html(original, expected);
1513 }
1514
1515 #[test]
spec_test_110()1516 fn spec_test_110() {
1517 let original = r##"foo
1518 ```
1519 bar
1520 ```
1521 baz
1522 "##;
1523 let expected = r##"<p>foo</p>
1524 <pre><code>bar
1525 </code></pre>
1526 <p>baz</p>
1527 "##;
1528
1529 test_markdown_html(original, expected);
1530 }
1531
1532 #[test]
spec_test_111()1533 fn spec_test_111() {
1534 let original = r##"foo
1535 ---
1536 ~~~
1537 bar
1538 ~~~
1539 # baz
1540 "##;
1541 let expected = r##"<h2>foo</h2>
1542 <pre><code>bar
1543 </code></pre>
1544 <h1>baz</h1>
1545 "##;
1546
1547 test_markdown_html(original, expected);
1548 }
1549
1550 #[test]
spec_test_112()1551 fn spec_test_112() {
1552 let original = r##"```ruby
1553 def foo(x)
1554 return 3
1555 end
1556 ```
1557 "##;
1558 let expected = r##"<pre><code class="language-ruby">def foo(x)
1559 return 3
1560 end
1561 </code></pre>
1562 "##;
1563
1564 test_markdown_html(original, expected);
1565 }
1566
1567 #[test]
spec_test_113()1568 fn spec_test_113() {
1569 let original = r##"~~~~ ruby startline=3 $%@#$
1570 def foo(x)
1571 return 3
1572 end
1573 ~~~~~~~
1574 "##;
1575 let expected = r##"<pre><code class="language-ruby">def foo(x)
1576 return 3
1577 end
1578 </code></pre>
1579 "##;
1580
1581 test_markdown_html(original, expected);
1582 }
1583
1584 #[test]
spec_test_114()1585 fn spec_test_114() {
1586 let original = r##"````;
1587 ````
1588 "##;
1589 let expected = r##"<pre><code class="language-;"></code></pre>
1590 "##;
1591
1592 test_markdown_html(original, expected);
1593 }
1594
1595 #[test]
spec_test_115()1596 fn spec_test_115() {
1597 let original = r##"``` aa ```
1598 foo
1599 "##;
1600 let expected = r##"<p><code>aa</code>
1601 foo</p>
1602 "##;
1603
1604 test_markdown_html(original, expected);
1605 }
1606
1607 #[test]
spec_test_116()1608 fn spec_test_116() {
1609 let original = r##"~~~ aa ``` ~~~
1610 foo
1611 ~~~
1612 "##;
1613 let expected = r##"<pre><code class="language-aa">foo
1614 </code></pre>
1615 "##;
1616
1617 test_markdown_html(original, expected);
1618 }
1619
1620 #[test]
spec_test_117()1621 fn spec_test_117() {
1622 let original = r##"```
1623 ``` aaa
1624 ```
1625 "##;
1626 let expected = r##"<pre><code>``` aaa
1627 </code></pre>
1628 "##;
1629
1630 test_markdown_html(original, expected);
1631 }
1632
1633 #[test]
spec_test_118()1634 fn spec_test_118() {
1635 let original = r##"<table><tr><td>
1636 <pre>
1637 **Hello**,
1638
1639 _world_.
1640 </pre>
1641 </td></tr></table>
1642 "##;
1643 let expected = r##"<table><tr><td>
1644 <pre>
1645 **Hello**,
1646 <p><em>world</em>.
1647 </pre></p>
1648 </td></tr></table>
1649 "##;
1650
1651 test_markdown_html(original, expected);
1652 }
1653
1654 #[test]
spec_test_119()1655 fn spec_test_119() {
1656 let original = r##"<table>
1657 <tr>
1658 <td>
1659 hi
1660 </td>
1661 </tr>
1662 </table>
1663
1664 okay.
1665 "##;
1666 let expected = r##"<table>
1667 <tr>
1668 <td>
1669 hi
1670 </td>
1671 </tr>
1672 </table>
1673 <p>okay.</p>
1674 "##;
1675
1676 test_markdown_html(original, expected);
1677 }
1678
1679 #[test]
spec_test_120()1680 fn spec_test_120() {
1681 let original = r##" <div>
1682 *hello*
1683 <foo><a>
1684 "##;
1685 let expected = r##" <div>
1686 *hello*
1687 <foo><a>
1688 "##;
1689
1690 test_markdown_html(original, expected);
1691 }
1692
1693 #[test]
spec_test_121()1694 fn spec_test_121() {
1695 let original = r##"</div>
1696 *foo*
1697 "##;
1698 let expected = r##"</div>
1699 *foo*
1700 "##;
1701
1702 test_markdown_html(original, expected);
1703 }
1704
1705 #[test]
spec_test_122()1706 fn spec_test_122() {
1707 let original = r##"<DIV CLASS="foo">
1708
1709 *Markdown*
1710
1711 </DIV>
1712 "##;
1713 let expected = r##"<DIV CLASS="foo">
1714 <p><em>Markdown</em></p>
1715 </DIV>
1716 "##;
1717
1718 test_markdown_html(original, expected);
1719 }
1720
1721 #[test]
spec_test_123()1722 fn spec_test_123() {
1723 let original = r##"<div id="foo"
1724 class="bar">
1725 </div>
1726 "##;
1727 let expected = r##"<div id="foo"
1728 class="bar">
1729 </div>
1730 "##;
1731
1732 test_markdown_html(original, expected);
1733 }
1734
1735 #[test]
spec_test_124()1736 fn spec_test_124() {
1737 let original = r##"<div id="foo" class="bar
1738 baz">
1739 </div>
1740 "##;
1741 let expected = r##"<div id="foo" class="bar
1742 baz">
1743 </div>
1744 "##;
1745
1746 test_markdown_html(original, expected);
1747 }
1748
1749 #[test]
spec_test_125()1750 fn spec_test_125() {
1751 let original = r##"<div>
1752 *foo*
1753
1754 *bar*
1755 "##;
1756 let expected = r##"<div>
1757 *foo*
1758 <p><em>bar</em></p>
1759 "##;
1760
1761 test_markdown_html(original, expected);
1762 }
1763
1764 #[test]
spec_test_126()1765 fn spec_test_126() {
1766 let original = r##"<div id="foo"
1767 *hi*
1768 "##;
1769 let expected = r##"<div id="foo"
1770 *hi*
1771 "##;
1772
1773 test_markdown_html(original, expected);
1774 }
1775
1776 #[test]
spec_test_127()1777 fn spec_test_127() {
1778 let original = r##"<div class
1779 foo
1780 "##;
1781 let expected = r##"<div class
1782 foo
1783 "##;
1784
1785 test_markdown_html(original, expected);
1786 }
1787
1788 #[test]
spec_test_128()1789 fn spec_test_128() {
1790 let original = r##"<div *???-&&&-<---
1791 *foo*
1792 "##;
1793 let expected = r##"<div *???-&&&-<---
1794 *foo*
1795 "##;
1796
1797 test_markdown_html(original, expected);
1798 }
1799
1800 #[test]
spec_test_129()1801 fn spec_test_129() {
1802 let original = r##"<div><a href="bar">*foo*</a></div>
1803 "##;
1804 let expected = r##"<div><a href="bar">*foo*</a></div>
1805 "##;
1806
1807 test_markdown_html(original, expected);
1808 }
1809
1810 #[test]
spec_test_130()1811 fn spec_test_130() {
1812 let original = r##"<table><tr><td>
1813 foo
1814 </td></tr></table>
1815 "##;
1816 let expected = r##"<table><tr><td>
1817 foo
1818 </td></tr></table>
1819 "##;
1820
1821 test_markdown_html(original, expected);
1822 }
1823
1824 #[test]
spec_test_131()1825 fn spec_test_131() {
1826 let original = r##"<div></div>
1827 ``` c
1828 int x = 33;
1829 ```
1830 "##;
1831 let expected = r##"<div></div>
1832 ``` c
1833 int x = 33;
1834 ```
1835 "##;
1836
1837 test_markdown_html(original, expected);
1838 }
1839
1840 #[test]
spec_test_132()1841 fn spec_test_132() {
1842 let original = r##"<a href="foo">
1843 *bar*
1844 </a>
1845 "##;
1846 let expected = r##"<a href="foo">
1847 *bar*
1848 </a>
1849 "##;
1850
1851 test_markdown_html(original, expected);
1852 }
1853
1854 #[test]
spec_test_133()1855 fn spec_test_133() {
1856 let original = r##"<Warning>
1857 *bar*
1858 </Warning>
1859 "##;
1860 let expected = r##"<Warning>
1861 *bar*
1862 </Warning>
1863 "##;
1864
1865 test_markdown_html(original, expected);
1866 }
1867
1868 #[test]
spec_test_134()1869 fn spec_test_134() {
1870 let original = r##"<i class="foo">
1871 *bar*
1872 </i>
1873 "##;
1874 let expected = r##"<i class="foo">
1875 *bar*
1876 </i>
1877 "##;
1878
1879 test_markdown_html(original, expected);
1880 }
1881
1882 #[test]
spec_test_135()1883 fn spec_test_135() {
1884 let original = r##"</ins>
1885 *bar*
1886 "##;
1887 let expected = r##"</ins>
1888 *bar*
1889 "##;
1890
1891 test_markdown_html(original, expected);
1892 }
1893
1894 #[test]
spec_test_136()1895 fn spec_test_136() {
1896 let original = r##"<del>
1897 *foo*
1898 </del>
1899 "##;
1900 let expected = r##"<del>
1901 *foo*
1902 </del>
1903 "##;
1904
1905 test_markdown_html(original, expected);
1906 }
1907
1908 #[test]
spec_test_137()1909 fn spec_test_137() {
1910 let original = r##"<del>
1911
1912 *foo*
1913
1914 </del>
1915 "##;
1916 let expected = r##"<del>
1917 <p><em>foo</em></p>
1918 </del>
1919 "##;
1920
1921 test_markdown_html(original, expected);
1922 }
1923
1924 #[test]
spec_test_138()1925 fn spec_test_138() {
1926 let original = r##"<del>*foo*</del>
1927 "##;
1928 let expected = r##"<p><del><em>foo</em></del></p>
1929 "##;
1930
1931 test_markdown_html(original, expected);
1932 }
1933
1934 #[test]
spec_test_139()1935 fn spec_test_139() {
1936 let original = r##"<pre language="haskell"><code>
1937 import Text.HTML.TagSoup
1938
1939 main :: IO ()
1940 main = print $ parseTags tags
1941 </code></pre>
1942 okay
1943 "##;
1944 let expected = r##"<pre language="haskell"><code>
1945 import Text.HTML.TagSoup
1946
1947 main :: IO ()
1948 main = print $ parseTags tags
1949 </code></pre>
1950 <p>okay</p>
1951 "##;
1952
1953 test_markdown_html(original, expected);
1954 }
1955
1956 #[test]
spec_test_140()1957 fn spec_test_140() {
1958 let original = r##"<script type="text/javascript">
1959 // JavaScript example
1960
1961 document.getElementById("demo").innerHTML = "Hello JavaScript!";
1962 </script>
1963 okay
1964 "##;
1965 let expected = r##"<script type="text/javascript">
1966 // JavaScript example
1967
1968 document.getElementById("demo").innerHTML = "Hello JavaScript!";
1969 </script>
1970 <p>okay</p>
1971 "##;
1972
1973 test_markdown_html(original, expected);
1974 }
1975
1976 #[test]
spec_test_141()1977 fn spec_test_141() {
1978 let original = r##"<style
1979 type="text/css">
1980 h1 {color:red;}
1981
1982 p {color:blue;}
1983 </style>
1984 okay
1985 "##;
1986 let expected = r##"<style
1987 type="text/css">
1988 h1 {color:red;}
1989
1990 p {color:blue;}
1991 </style>
1992 <p>okay</p>
1993 "##;
1994
1995 test_markdown_html(original, expected);
1996 }
1997
1998 #[test]
spec_test_142()1999 fn spec_test_142() {
2000 let original = r##"<style
2001 type="text/css">
2002
2003 foo
2004 "##;
2005 let expected = r##"<style
2006 type="text/css">
2007
2008 foo
2009 "##;
2010
2011 test_markdown_html(original, expected);
2012 }
2013
2014 #[test]
spec_test_143()2015 fn spec_test_143() {
2016 let original = r##"> <div>
2017 > foo
2018
2019 bar
2020 "##;
2021 let expected = r##"<blockquote>
2022 <div>
2023 foo
2024 </blockquote>
2025 <p>bar</p>
2026 "##;
2027
2028 test_markdown_html(original, expected);
2029 }
2030
2031 #[test]
spec_test_144()2032 fn spec_test_144() {
2033 let original = r##"- <div>
2034 - foo
2035 "##;
2036 let expected = r##"<ul>
2037 <li>
2038 <div>
2039 </li>
2040 <li>foo</li>
2041 </ul>
2042 "##;
2043
2044 test_markdown_html(original, expected);
2045 }
2046
2047 #[test]
spec_test_145()2048 fn spec_test_145() {
2049 let original = r##"<style>p{color:red;}</style>
2050 *foo*
2051 "##;
2052 let expected = r##"<style>p{color:red;}</style>
2053 <p><em>foo</em></p>
2054 "##;
2055
2056 test_markdown_html(original, expected);
2057 }
2058
2059 #[test]
spec_test_146()2060 fn spec_test_146() {
2061 let original = r##"<!-- foo -->*bar*
2062 *baz*
2063 "##;
2064 let expected = r##"<!-- foo -->*bar*
2065 <p><em>baz</em></p>
2066 "##;
2067
2068 test_markdown_html(original, expected);
2069 }
2070
2071 #[test]
spec_test_147()2072 fn spec_test_147() {
2073 let original = r##"<script>
2074 foo
2075 </script>1. *bar*
2076 "##;
2077 let expected = r##"<script>
2078 foo
2079 </script>1. *bar*
2080 "##;
2081
2082 test_markdown_html(original, expected);
2083 }
2084
2085 #[test]
spec_test_148()2086 fn spec_test_148() {
2087 let original = r##"<!-- Foo
2088
2089 bar
2090 baz -->
2091 okay
2092 "##;
2093 let expected = r##"<!-- Foo
2094
2095 bar
2096 baz -->
2097 <p>okay</p>
2098 "##;
2099
2100 test_markdown_html(original, expected);
2101 }
2102
2103 #[test]
spec_test_149()2104 fn spec_test_149() {
2105 let original = r##"<?php
2106
2107 echo '>';
2108
2109 ?>
2110 okay
2111 "##;
2112 let expected = r##"<?php
2113
2114 echo '>';
2115
2116 ?>
2117 <p>okay</p>
2118 "##;
2119
2120 test_markdown_html(original, expected);
2121 }
2122
2123 #[test]
spec_test_150()2124 fn spec_test_150() {
2125 let original = r##"<!DOCTYPE html>
2126 "##;
2127 let expected = r##"<!DOCTYPE html>
2128 "##;
2129
2130 test_markdown_html(original, expected);
2131 }
2132
2133 #[test]
spec_test_151()2134 fn spec_test_151() {
2135 let original = r##"<![CDATA[
2136 function matchwo(a,b)
2137 {
2138 if (a < b && a < 0) then {
2139 return 1;
2140
2141 } else {
2142
2143 return 0;
2144 }
2145 }
2146 ]]>
2147 okay
2148 "##;
2149 let expected = r##"<![CDATA[
2150 function matchwo(a,b)
2151 {
2152 if (a < b && a < 0) then {
2153 return 1;
2154
2155 } else {
2156
2157 return 0;
2158 }
2159 }
2160 ]]>
2161 <p>okay</p>
2162 "##;
2163
2164 test_markdown_html(original, expected);
2165 }
2166
2167 #[test]
spec_test_152()2168 fn spec_test_152() {
2169 let original = r##" <!-- foo -->
2170
2171 <!-- foo -->
2172 "##;
2173 let expected = r##" <!-- foo -->
2174 <pre><code><!-- foo -->
2175 </code></pre>
2176 "##;
2177
2178 test_markdown_html(original, expected);
2179 }
2180
2181 #[test]
spec_test_153()2182 fn spec_test_153() {
2183 let original = r##" <div>
2184
2185 <div>
2186 "##;
2187 let expected = r##" <div>
2188 <pre><code><div>
2189 </code></pre>
2190 "##;
2191
2192 test_markdown_html(original, expected);
2193 }
2194
2195 #[test]
spec_test_154()2196 fn spec_test_154() {
2197 let original = r##"Foo
2198 <div>
2199 bar
2200 </div>
2201 "##;
2202 let expected = r##"<p>Foo</p>
2203 <div>
2204 bar
2205 </div>
2206 "##;
2207
2208 test_markdown_html(original, expected);
2209 }
2210
2211 #[test]
spec_test_155()2212 fn spec_test_155() {
2213 let original = r##"<div>
2214 bar
2215 </div>
2216 *foo*
2217 "##;
2218 let expected = r##"<div>
2219 bar
2220 </div>
2221 *foo*
2222 "##;
2223
2224 test_markdown_html(original, expected);
2225 }
2226
2227 #[test]
spec_test_156()2228 fn spec_test_156() {
2229 let original = r##"Foo
2230 <a href="bar">
2231 baz
2232 "##;
2233 let expected = r##"<p>Foo
2234 <a href="bar">
2235 baz</p>
2236 "##;
2237
2238 test_markdown_html(original, expected);
2239 }
2240
2241 #[test]
spec_test_157()2242 fn spec_test_157() {
2243 let original = r##"<div>
2244
2245 *Emphasized* text.
2246
2247 </div>
2248 "##;
2249 let expected = r##"<div>
2250 <p><em>Emphasized</em> text.</p>
2251 </div>
2252 "##;
2253
2254 test_markdown_html(original, expected);
2255 }
2256
2257 #[test]
spec_test_158()2258 fn spec_test_158() {
2259 let original = r##"<div>
2260 *Emphasized* text.
2261 </div>
2262 "##;
2263 let expected = r##"<div>
2264 *Emphasized* text.
2265 </div>
2266 "##;
2267
2268 test_markdown_html(original, expected);
2269 }
2270
2271 #[test]
spec_test_159()2272 fn spec_test_159() {
2273 let original = r##"<table>
2274
2275 <tr>
2276
2277 <td>
2278 Hi
2279 </td>
2280
2281 </tr>
2282
2283 </table>
2284 "##;
2285 let expected = r##"<table>
2286 <tr>
2287 <td>
2288 Hi
2289 </td>
2290 </tr>
2291 </table>
2292 "##;
2293
2294 test_markdown_html(original, expected);
2295 }
2296
2297 #[test]
spec_test_160()2298 fn spec_test_160() {
2299 let original = r##"<table>
2300
2301 <tr>
2302
2303 <td>
2304 Hi
2305 </td>
2306
2307 </tr>
2308
2309 </table>
2310 "##;
2311 let expected = r##"<table>
2312 <tr>
2313 <pre><code><td>
2314 Hi
2315 </td>
2316 </code></pre>
2317 </tr>
2318 </table>
2319 "##;
2320
2321 test_markdown_html(original, expected);
2322 }
2323
2324 #[test]
spec_test_161()2325 fn spec_test_161() {
2326 let original = r##"[foo]: /url "title"
2327
2328 [foo]
2329 "##;
2330 let expected = r##"<p><a href="/url" title="title">foo</a></p>
2331 "##;
2332
2333 test_markdown_html(original, expected);
2334 }
2335
2336 #[test]
spec_test_162()2337 fn spec_test_162() {
2338 let original = r##" [foo]:
2339 /url
2340 'the title'
2341
2342 [foo]
2343 "##;
2344 let expected = r##"<p><a href="/url" title="the title">foo</a></p>
2345 "##;
2346
2347 test_markdown_html(original, expected);
2348 }
2349
2350 #[test]
spec_test_163()2351 fn spec_test_163() {
2352 let original = r##"[Foo*bar\]]:my_(url) 'title (with parens)'
2353
2354 [Foo*bar\]]
2355 "##;
2356 let expected = r##"<p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p>
2357 "##;
2358
2359 test_markdown_html(original, expected);
2360 }
2361
2362 #[test]
spec_test_164()2363 fn spec_test_164() {
2364 let original = r##"[Foo bar]:
2365 <my url>
2366 'title'
2367
2368 [Foo bar]
2369 "##;
2370 let expected = r##"<p><a href="my%20url" title="title">Foo bar</a></p>
2371 "##;
2372
2373 test_markdown_html(original, expected);
2374 }
2375
2376 #[test]
spec_test_165()2377 fn spec_test_165() {
2378 let original = r##"[foo]: /url '
2379 title
2380 line1
2381 line2
2382 '
2383
2384 [foo]
2385 "##;
2386 let expected = r##"<p><a href="/url" title="
2387 title
2388 line1
2389 line2
2390 ">foo</a></p>
2391 "##;
2392
2393 test_markdown_html(original, expected);
2394 }
2395
2396 #[test]
spec_test_166()2397 fn spec_test_166() {
2398 let original = r##"[foo]: /url 'title
2399
2400 with blank line'
2401
2402 [foo]
2403 "##;
2404 let expected = r##"<p>[foo]: /url 'title</p>
2405 <p>with blank line'</p>
2406 <p>[foo]</p>
2407 "##;
2408
2409 test_markdown_html(original, expected);
2410 }
2411
2412 #[test]
spec_test_167()2413 fn spec_test_167() {
2414 let original = r##"[foo]:
2415 /url
2416
2417 [foo]
2418 "##;
2419 let expected = r##"<p><a href="/url">foo</a></p>
2420 "##;
2421
2422 test_markdown_html(original, expected);
2423 }
2424
2425 #[test]
spec_test_168()2426 fn spec_test_168() {
2427 let original = r##"[foo]:
2428
2429 [foo]
2430 "##;
2431 let expected = r##"<p>[foo]:</p>
2432 <p>[foo]</p>
2433 "##;
2434
2435 test_markdown_html(original, expected);
2436 }
2437
2438 #[test]
spec_test_169()2439 fn spec_test_169() {
2440 let original = r##"[foo]: <>
2441
2442 [foo]
2443 "##;
2444 let expected = r##"<p><a href="">foo</a></p>
2445 "##;
2446
2447 test_markdown_html(original, expected);
2448 }
2449
2450 #[test]
spec_test_170()2451 fn spec_test_170() {
2452 let original = r##"[foo]: <bar>(baz)
2453
2454 [foo]
2455 "##;
2456 let expected = r##"<p>[foo]: <bar>(baz)</p>
2457 <p>[foo]</p>
2458 "##;
2459
2460 test_markdown_html(original, expected);
2461 }
2462
2463 #[test]
spec_test_171()2464 fn spec_test_171() {
2465 let original = r##"[foo]: /url\bar\*baz "foo\"bar\baz"
2466
2467 [foo]
2468 "##;
2469 let expected = r##"<p><a href="/url%5Cbar*baz" title="foo"bar\baz">foo</a></p>
2470 "##;
2471
2472 test_markdown_html(original, expected);
2473 }
2474
2475 #[test]
spec_test_172()2476 fn spec_test_172() {
2477 let original = r##"[foo]
2478
2479 [foo]: url
2480 "##;
2481 let expected = r##"<p><a href="url">foo</a></p>
2482 "##;
2483
2484 test_markdown_html(original, expected);
2485 }
2486
2487 #[test]
spec_test_173()2488 fn spec_test_173() {
2489 let original = r##"[foo]
2490
2491 [foo]: first
2492 [foo]: second
2493 "##;
2494 let expected = r##"<p><a href="first">foo</a></p>
2495 "##;
2496
2497 test_markdown_html(original, expected);
2498 }
2499
2500 #[test]
spec_test_174()2501 fn spec_test_174() {
2502 let original = r##"[FOO]: /url
2503
2504 [Foo]
2505 "##;
2506 let expected = r##"<p><a href="/url">Foo</a></p>
2507 "##;
2508
2509 test_markdown_html(original, expected);
2510 }
2511
2512 #[test]
spec_test_175()2513 fn spec_test_175() {
2514 let original = r##"[ΑΓΩ]: /φου
2515
2516 [αγω]
2517 "##;
2518 let expected = r##"<p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p>
2519 "##;
2520
2521 test_markdown_html(original, expected);
2522 }
2523
2524 #[test]
spec_test_176()2525 fn spec_test_176() {
2526 let original = r##"[foo]: /url
2527 "##;
2528 let expected = r##""##;
2529
2530 test_markdown_html(original, expected);
2531 }
2532
2533 #[test]
spec_test_177()2534 fn spec_test_177() {
2535 let original = r##"[
2536 foo
2537 ]: /url
2538 bar
2539 "##;
2540 let expected = r##"<p>bar</p>
2541 "##;
2542
2543 test_markdown_html(original, expected);
2544 }
2545
2546 #[test]
spec_test_178()2547 fn spec_test_178() {
2548 let original = r##"[foo]: /url "title" ok
2549 "##;
2550 let expected = r##"<p>[foo]: /url "title" ok</p>
2551 "##;
2552
2553 test_markdown_html(original, expected);
2554 }
2555
2556 #[test]
spec_test_179()2557 fn spec_test_179() {
2558 let original = r##"[foo]: /url
2559 "title" ok
2560 "##;
2561 let expected = r##"<p>"title" ok</p>
2562 "##;
2563
2564 test_markdown_html(original, expected);
2565 }
2566
2567 #[test]
spec_test_180()2568 fn spec_test_180() {
2569 let original = r##" [foo]: /url "title"
2570
2571 [foo]
2572 "##;
2573 let expected = r##"<pre><code>[foo]: /url "title"
2574 </code></pre>
2575 <p>[foo]</p>
2576 "##;
2577
2578 test_markdown_html(original, expected);
2579 }
2580
2581 #[test]
spec_test_181()2582 fn spec_test_181() {
2583 let original = r##"```
2584 [foo]: /url
2585 ```
2586
2587 [foo]
2588 "##;
2589 let expected = r##"<pre><code>[foo]: /url
2590 </code></pre>
2591 <p>[foo]</p>
2592 "##;
2593
2594 test_markdown_html(original, expected);
2595 }
2596
2597 #[test]
spec_test_182()2598 fn spec_test_182() {
2599 let original = r##"Foo
2600 [bar]: /baz
2601
2602 [bar]
2603 "##;
2604 let expected = r##"<p>Foo
2605 [bar]: /baz</p>
2606 <p>[bar]</p>
2607 "##;
2608
2609 test_markdown_html(original, expected);
2610 }
2611
2612 #[test]
spec_test_183()2613 fn spec_test_183() {
2614 let original = r##"# [Foo]
2615 [foo]: /url
2616 > bar
2617 "##;
2618 let expected = r##"<h1><a href="/url">Foo</a></h1>
2619 <blockquote>
2620 <p>bar</p>
2621 </blockquote>
2622 "##;
2623
2624 test_markdown_html(original, expected);
2625 }
2626
2627 #[test]
spec_test_184()2628 fn spec_test_184() {
2629 let original = r##"[foo]: /url
2630 bar
2631 ===
2632 [foo]
2633 "##;
2634 let expected = r##"<h1>bar</h1>
2635 <p><a href="/url">foo</a></p>
2636 "##;
2637
2638 test_markdown_html(original, expected);
2639 }
2640
2641 #[test]
spec_test_185()2642 fn spec_test_185() {
2643 let original = r##"[foo]: /url
2644 ===
2645 [foo]
2646 "##;
2647 let expected = r##"<p>===
2648 <a href="/url">foo</a></p>
2649 "##;
2650
2651 test_markdown_html(original, expected);
2652 }
2653
2654 #[test]
spec_test_186()2655 fn spec_test_186() {
2656 let original = r##"[foo]: /foo-url "foo"
2657 [bar]: /bar-url
2658 "bar"
2659 [baz]: /baz-url
2660
2661 [foo],
2662 [bar],
2663 [baz]
2664 "##;
2665 let expected = r##"<p><a href="/foo-url" title="foo">foo</a>,
2666 <a href="/bar-url" title="bar">bar</a>,
2667 <a href="/baz-url">baz</a></p>
2668 "##;
2669
2670 test_markdown_html(original, expected);
2671 }
2672
2673 #[test]
spec_test_187()2674 fn spec_test_187() {
2675 let original = r##"[foo]
2676
2677 > [foo]: /url
2678 "##;
2679 let expected = r##"<p><a href="/url">foo</a></p>
2680 <blockquote>
2681 </blockquote>
2682 "##;
2683
2684 test_markdown_html(original, expected);
2685 }
2686
2687 #[test]
spec_test_188()2688 fn spec_test_188() {
2689 let original = r##"[foo]: /url
2690 "##;
2691 let expected = r##""##;
2692
2693 test_markdown_html(original, expected);
2694 }
2695
2696 #[test]
spec_test_189()2697 fn spec_test_189() {
2698 let original = r##"aaa
2699
2700 bbb
2701 "##;
2702 let expected = r##"<p>aaa</p>
2703 <p>bbb</p>
2704 "##;
2705
2706 test_markdown_html(original, expected);
2707 }
2708
2709 #[test]
spec_test_190()2710 fn spec_test_190() {
2711 let original = r##"aaa
2712 bbb
2713
2714 ccc
2715 ddd
2716 "##;
2717 let expected = r##"<p>aaa
2718 bbb</p>
2719 <p>ccc
2720 ddd</p>
2721 "##;
2722
2723 test_markdown_html(original, expected);
2724 }
2725
2726 #[test]
spec_test_191()2727 fn spec_test_191() {
2728 let original = r##"aaa
2729
2730
2731 bbb
2732 "##;
2733 let expected = r##"<p>aaa</p>
2734 <p>bbb</p>
2735 "##;
2736
2737 test_markdown_html(original, expected);
2738 }
2739
2740 #[test]
spec_test_192()2741 fn spec_test_192() {
2742 let original = r##" aaa
2743 bbb
2744 "##;
2745 let expected = r##"<p>aaa
2746 bbb</p>
2747 "##;
2748
2749 test_markdown_html(original, expected);
2750 }
2751
2752 #[test]
spec_test_193()2753 fn spec_test_193() {
2754 let original = r##"aaa
2755 bbb
2756 ccc
2757 "##;
2758 let expected = r##"<p>aaa
2759 bbb
2760 ccc</p>
2761 "##;
2762
2763 test_markdown_html(original, expected);
2764 }
2765
2766 #[test]
spec_test_194()2767 fn spec_test_194() {
2768 let original = r##" aaa
2769 bbb
2770 "##;
2771 let expected = r##"<p>aaa
2772 bbb</p>
2773 "##;
2774
2775 test_markdown_html(original, expected);
2776 }
2777
2778 #[test]
spec_test_195()2779 fn spec_test_195() {
2780 let original = r##" aaa
2781 bbb
2782 "##;
2783 let expected = r##"<pre><code>aaa
2784 </code></pre>
2785 <p>bbb</p>
2786 "##;
2787
2788 test_markdown_html(original, expected);
2789 }
2790
2791 #[test]
spec_test_196()2792 fn spec_test_196() {
2793 let original = r##"aaa
2794 bbb
2795 "##;
2796 let expected = r##"<p>aaa<br />
2797 bbb</p>
2798 "##;
2799
2800 test_markdown_html(original, expected);
2801 }
2802
2803 #[test]
spec_test_197()2804 fn spec_test_197() {
2805 let original = r##"
2806
2807 aaa
2808
2809
2810 # aaa
2811
2812
2813 "##;
2814 let expected = r##"<p>aaa</p>
2815 <h1>aaa</h1>
2816 "##;
2817
2818 test_markdown_html(original, expected);
2819 }
2820
2821 #[test]
spec_test_198()2822 fn spec_test_198() {
2823 let original = r##"> # Foo
2824 > bar
2825 > baz
2826 "##;
2827 let expected = r##"<blockquote>
2828 <h1>Foo</h1>
2829 <p>bar
2830 baz</p>
2831 </blockquote>
2832 "##;
2833
2834 test_markdown_html(original, expected);
2835 }
2836
2837 #[test]
spec_test_199()2838 fn spec_test_199() {
2839 let original = r##"># Foo
2840 >bar
2841 > baz
2842 "##;
2843 let expected = r##"<blockquote>
2844 <h1>Foo</h1>
2845 <p>bar
2846 baz</p>
2847 </blockquote>
2848 "##;
2849
2850 test_markdown_html(original, expected);
2851 }
2852
2853 #[test]
spec_test_200()2854 fn spec_test_200() {
2855 let original = r##" > # Foo
2856 > bar
2857 > baz
2858 "##;
2859 let expected = r##"<blockquote>
2860 <h1>Foo</h1>
2861 <p>bar
2862 baz</p>
2863 </blockquote>
2864 "##;
2865
2866 test_markdown_html(original, expected);
2867 }
2868
2869 #[test]
spec_test_201()2870 fn spec_test_201() {
2871 let original = r##" > # Foo
2872 > bar
2873 > baz
2874 "##;
2875 let expected = r##"<pre><code>> # Foo
2876 > bar
2877 > baz
2878 </code></pre>
2879 "##;
2880
2881 test_markdown_html(original, expected);
2882 }
2883
2884 #[test]
spec_test_202()2885 fn spec_test_202() {
2886 let original = r##"> # Foo
2887 > bar
2888 baz
2889 "##;
2890 let expected = r##"<blockquote>
2891 <h1>Foo</h1>
2892 <p>bar
2893 baz</p>
2894 </blockquote>
2895 "##;
2896
2897 test_markdown_html(original, expected);
2898 }
2899
2900 #[test]
spec_test_203()2901 fn spec_test_203() {
2902 let original = r##"> bar
2903 baz
2904 > foo
2905 "##;
2906 let expected = r##"<blockquote>
2907 <p>bar
2908 baz
2909 foo</p>
2910 </blockquote>
2911 "##;
2912
2913 test_markdown_html(original, expected);
2914 }
2915
2916 #[test]
spec_test_204()2917 fn spec_test_204() {
2918 let original = r##"> foo
2919 ---
2920 "##;
2921 let expected = r##"<blockquote>
2922 <p>foo</p>
2923 </blockquote>
2924 <hr />
2925 "##;
2926
2927 test_markdown_html(original, expected);
2928 }
2929
2930 #[test]
spec_test_205()2931 fn spec_test_205() {
2932 let original = r##"> - foo
2933 - bar
2934 "##;
2935 let expected = r##"<blockquote>
2936 <ul>
2937 <li>foo</li>
2938 </ul>
2939 </blockquote>
2940 <ul>
2941 <li>bar</li>
2942 </ul>
2943 "##;
2944
2945 test_markdown_html(original, expected);
2946 }
2947
2948 #[test]
spec_test_206()2949 fn spec_test_206() {
2950 let original = r##"> foo
2951 bar
2952 "##;
2953 let expected = r##"<blockquote>
2954 <pre><code>foo
2955 </code></pre>
2956 </blockquote>
2957 <pre><code>bar
2958 </code></pre>
2959 "##;
2960
2961 test_markdown_html(original, expected);
2962 }
2963
2964 #[test]
spec_test_207()2965 fn spec_test_207() {
2966 let original = r##"> ```
2967 foo
2968 ```
2969 "##;
2970 let expected = r##"<blockquote>
2971 <pre><code></code></pre>
2972 </blockquote>
2973 <p>foo</p>
2974 <pre><code></code></pre>
2975 "##;
2976
2977 test_markdown_html(original, expected);
2978 }
2979
2980 #[test]
spec_test_208()2981 fn spec_test_208() {
2982 let original = r##"> foo
2983 - bar
2984 "##;
2985 let expected = r##"<blockquote>
2986 <p>foo
2987 - bar</p>
2988 </blockquote>
2989 "##;
2990
2991 test_markdown_html(original, expected);
2992 }
2993
2994 #[test]
spec_test_209()2995 fn spec_test_209() {
2996 let original = r##">
2997 "##;
2998 let expected = r##"<blockquote>
2999 </blockquote>
3000 "##;
3001
3002 test_markdown_html(original, expected);
3003 }
3004
3005 #[test]
spec_test_210()3006 fn spec_test_210() {
3007 let original = r##">
3008 >
3009 >
3010 "##;
3011 let expected = r##"<blockquote>
3012 </blockquote>
3013 "##;
3014
3015 test_markdown_html(original, expected);
3016 }
3017
3018 #[test]
spec_test_211()3019 fn spec_test_211() {
3020 let original = r##">
3021 > foo
3022 >
3023 "##;
3024 let expected = r##"<blockquote>
3025 <p>foo</p>
3026 </blockquote>
3027 "##;
3028
3029 test_markdown_html(original, expected);
3030 }
3031
3032 #[test]
spec_test_212()3033 fn spec_test_212() {
3034 let original = r##"> foo
3035
3036 > bar
3037 "##;
3038 let expected = r##"<blockquote>
3039 <p>foo</p>
3040 </blockquote>
3041 <blockquote>
3042 <p>bar</p>
3043 </blockquote>
3044 "##;
3045
3046 test_markdown_html(original, expected);
3047 }
3048
3049 #[test]
spec_test_213()3050 fn spec_test_213() {
3051 let original = r##"> foo
3052 > bar
3053 "##;
3054 let expected = r##"<blockquote>
3055 <p>foo
3056 bar</p>
3057 </blockquote>
3058 "##;
3059
3060 test_markdown_html(original, expected);
3061 }
3062
3063 #[test]
spec_test_214()3064 fn spec_test_214() {
3065 let original = r##"> foo
3066 >
3067 > bar
3068 "##;
3069 let expected = r##"<blockquote>
3070 <p>foo</p>
3071 <p>bar</p>
3072 </blockquote>
3073 "##;
3074
3075 test_markdown_html(original, expected);
3076 }
3077
3078 #[test]
spec_test_215()3079 fn spec_test_215() {
3080 let original = r##"foo
3081 > bar
3082 "##;
3083 let expected = r##"<p>foo</p>
3084 <blockquote>
3085 <p>bar</p>
3086 </blockquote>
3087 "##;
3088
3089 test_markdown_html(original, expected);
3090 }
3091
3092 #[test]
spec_test_216()3093 fn spec_test_216() {
3094 let original = r##"> aaa
3095 ***
3096 > bbb
3097 "##;
3098 let expected = r##"<blockquote>
3099 <p>aaa</p>
3100 </blockquote>
3101 <hr />
3102 <blockquote>
3103 <p>bbb</p>
3104 </blockquote>
3105 "##;
3106
3107 test_markdown_html(original, expected);
3108 }
3109
3110 #[test]
spec_test_217()3111 fn spec_test_217() {
3112 let original = r##"> bar
3113 baz
3114 "##;
3115 let expected = r##"<blockquote>
3116 <p>bar
3117 baz</p>
3118 </blockquote>
3119 "##;
3120
3121 test_markdown_html(original, expected);
3122 }
3123
3124 #[test]
spec_test_218()3125 fn spec_test_218() {
3126 let original = r##"> bar
3127
3128 baz
3129 "##;
3130 let expected = r##"<blockquote>
3131 <p>bar</p>
3132 </blockquote>
3133 <p>baz</p>
3134 "##;
3135
3136 test_markdown_html(original, expected);
3137 }
3138
3139 #[test]
spec_test_219()3140 fn spec_test_219() {
3141 let original = r##"> bar
3142 >
3143 baz
3144 "##;
3145 let expected = r##"<blockquote>
3146 <p>bar</p>
3147 </blockquote>
3148 <p>baz</p>
3149 "##;
3150
3151 test_markdown_html(original, expected);
3152 }
3153
3154 #[test]
spec_test_220()3155 fn spec_test_220() {
3156 let original = r##"> > > foo
3157 bar
3158 "##;
3159 let expected = r##"<blockquote>
3160 <blockquote>
3161 <blockquote>
3162 <p>foo
3163 bar</p>
3164 </blockquote>
3165 </blockquote>
3166 </blockquote>
3167 "##;
3168
3169 test_markdown_html(original, expected);
3170 }
3171
3172 #[test]
spec_test_221()3173 fn spec_test_221() {
3174 let original = r##">>> foo
3175 > bar
3176 >>baz
3177 "##;
3178 let expected = r##"<blockquote>
3179 <blockquote>
3180 <blockquote>
3181 <p>foo
3182 bar
3183 baz</p>
3184 </blockquote>
3185 </blockquote>
3186 </blockquote>
3187 "##;
3188
3189 test_markdown_html(original, expected);
3190 }
3191
3192 #[test]
spec_test_222()3193 fn spec_test_222() {
3194 let original = r##"> code
3195
3196 > not code
3197 "##;
3198 let expected = r##"<blockquote>
3199 <pre><code>code
3200 </code></pre>
3201 </blockquote>
3202 <blockquote>
3203 <p>not code</p>
3204 </blockquote>
3205 "##;
3206
3207 test_markdown_html(original, expected);
3208 }
3209
3210 #[test]
spec_test_223()3211 fn spec_test_223() {
3212 let original = r##"A paragraph
3213 with two lines.
3214
3215 indented code
3216
3217 > A block quote.
3218 "##;
3219 let expected = r##"<p>A paragraph
3220 with two lines.</p>
3221 <pre><code>indented code
3222 </code></pre>
3223 <blockquote>
3224 <p>A block quote.</p>
3225 </blockquote>
3226 "##;
3227
3228 test_markdown_html(original, expected);
3229 }
3230
3231 #[test]
spec_test_224()3232 fn spec_test_224() {
3233 let original = r##"1. A paragraph
3234 with two lines.
3235
3236 indented code
3237
3238 > A block quote.
3239 "##;
3240 let expected = r##"<ol>
3241 <li>
3242 <p>A paragraph
3243 with two lines.</p>
3244 <pre><code>indented code
3245 </code></pre>
3246 <blockquote>
3247 <p>A block quote.</p>
3248 </blockquote>
3249 </li>
3250 </ol>
3251 "##;
3252
3253 test_markdown_html(original, expected);
3254 }
3255
3256 #[test]
spec_test_225()3257 fn spec_test_225() {
3258 let original = r##"- one
3259
3260 two
3261 "##;
3262 let expected = r##"<ul>
3263 <li>one</li>
3264 </ul>
3265 <p>two</p>
3266 "##;
3267
3268 test_markdown_html(original, expected);
3269 }
3270
3271 #[test]
spec_test_226()3272 fn spec_test_226() {
3273 let original = r##"- one
3274
3275 two
3276 "##;
3277 let expected = r##"<ul>
3278 <li>
3279 <p>one</p>
3280 <p>two</p>
3281 </li>
3282 </ul>
3283 "##;
3284
3285 test_markdown_html(original, expected);
3286 }
3287
3288 #[test]
spec_test_227()3289 fn spec_test_227() {
3290 let original = r##" - one
3291
3292 two
3293 "##;
3294 let expected = r##"<ul>
3295 <li>one</li>
3296 </ul>
3297 <pre><code> two
3298 </code></pre>
3299 "##;
3300
3301 test_markdown_html(original, expected);
3302 }
3303
3304 #[test]
spec_test_228()3305 fn spec_test_228() {
3306 let original = r##" - one
3307
3308 two
3309 "##;
3310 let expected = r##"<ul>
3311 <li>
3312 <p>one</p>
3313 <p>two</p>
3314 </li>
3315 </ul>
3316 "##;
3317
3318 test_markdown_html(original, expected);
3319 }
3320
3321 #[test]
spec_test_229()3322 fn spec_test_229() {
3323 let original = r##" > > 1. one
3324 >>
3325 >> two
3326 "##;
3327 let expected = r##"<blockquote>
3328 <blockquote>
3329 <ol>
3330 <li>
3331 <p>one</p>
3332 <p>two</p>
3333 </li>
3334 </ol>
3335 </blockquote>
3336 </blockquote>
3337 "##;
3338
3339 test_markdown_html(original, expected);
3340 }
3341
3342 #[test]
spec_test_230()3343 fn spec_test_230() {
3344 let original = r##">>- one
3345 >>
3346 > > two
3347 "##;
3348 let expected = r##"<blockquote>
3349 <blockquote>
3350 <ul>
3351 <li>one</li>
3352 </ul>
3353 <p>two</p>
3354 </blockquote>
3355 </blockquote>
3356 "##;
3357
3358 test_markdown_html(original, expected);
3359 }
3360
3361 #[test]
spec_test_231()3362 fn spec_test_231() {
3363 let original = r##"-one
3364
3365 2.two
3366 "##;
3367 let expected = r##"<p>-one</p>
3368 <p>2.two</p>
3369 "##;
3370
3371 test_markdown_html(original, expected);
3372 }
3373
3374 #[test]
spec_test_232()3375 fn spec_test_232() {
3376 let original = r##"- foo
3377
3378
3379 bar
3380 "##;
3381 let expected = r##"<ul>
3382 <li>
3383 <p>foo</p>
3384 <p>bar</p>
3385 </li>
3386 </ul>
3387 "##;
3388
3389 test_markdown_html(original, expected);
3390 }
3391
3392 #[test]
spec_test_233()3393 fn spec_test_233() {
3394 let original = r##"1. foo
3395
3396 ```
3397 bar
3398 ```
3399
3400 baz
3401
3402 > bam
3403 "##;
3404 let expected = r##"<ol>
3405 <li>
3406 <p>foo</p>
3407 <pre><code>bar
3408 </code></pre>
3409 <p>baz</p>
3410 <blockquote>
3411 <p>bam</p>
3412 </blockquote>
3413 </li>
3414 </ol>
3415 "##;
3416
3417 test_markdown_html(original, expected);
3418 }
3419
3420 #[test]
spec_test_234()3421 fn spec_test_234() {
3422 let original = r##"- Foo
3423
3424 bar
3425
3426
3427 baz
3428 "##;
3429 let expected = r##"<ul>
3430 <li>
3431 <p>Foo</p>
3432 <pre><code>bar
3433
3434
3435 baz
3436 </code></pre>
3437 </li>
3438 </ul>
3439 "##;
3440
3441 test_markdown_html(original, expected);
3442 }
3443
3444 #[test]
spec_test_235()3445 fn spec_test_235() {
3446 let original = r##"123456789. ok
3447 "##;
3448 let expected = r##"<ol start="123456789">
3449 <li>ok</li>
3450 </ol>
3451 "##;
3452
3453 test_markdown_html(original, expected);
3454 }
3455
3456 #[test]
spec_test_236()3457 fn spec_test_236() {
3458 let original = r##"1234567890. not ok
3459 "##;
3460 let expected = r##"<p>1234567890. not ok</p>
3461 "##;
3462
3463 test_markdown_html(original, expected);
3464 }
3465
3466 #[test]
spec_test_237()3467 fn spec_test_237() {
3468 let original = r##"0. ok
3469 "##;
3470 let expected = r##"<ol start="0">
3471 <li>ok</li>
3472 </ol>
3473 "##;
3474
3475 test_markdown_html(original, expected);
3476 }
3477
3478 #[test]
spec_test_238()3479 fn spec_test_238() {
3480 let original = r##"003. ok
3481 "##;
3482 let expected = r##"<ol start="3">
3483 <li>ok</li>
3484 </ol>
3485 "##;
3486
3487 test_markdown_html(original, expected);
3488 }
3489
3490 #[test]
spec_test_239()3491 fn spec_test_239() {
3492 let original = r##"-1. not ok
3493 "##;
3494 let expected = r##"<p>-1. not ok</p>
3495 "##;
3496
3497 test_markdown_html(original, expected);
3498 }
3499
3500 #[test]
spec_test_240()3501 fn spec_test_240() {
3502 let original = r##"- foo
3503
3504 bar
3505 "##;
3506 let expected = r##"<ul>
3507 <li>
3508 <p>foo</p>
3509 <pre><code>bar
3510 </code></pre>
3511 </li>
3512 </ul>
3513 "##;
3514
3515 test_markdown_html(original, expected);
3516 }
3517
3518 #[test]
spec_test_241()3519 fn spec_test_241() {
3520 let original = r##" 10. foo
3521
3522 bar
3523 "##;
3524 let expected = r##"<ol start="10">
3525 <li>
3526 <p>foo</p>
3527 <pre><code>bar
3528 </code></pre>
3529 </li>
3530 </ol>
3531 "##;
3532
3533 test_markdown_html(original, expected);
3534 }
3535
3536 #[test]
spec_test_242()3537 fn spec_test_242() {
3538 let original = r##" indented code
3539
3540 paragraph
3541
3542 more code
3543 "##;
3544 let expected = r##"<pre><code>indented code
3545 </code></pre>
3546 <p>paragraph</p>
3547 <pre><code>more code
3548 </code></pre>
3549 "##;
3550
3551 test_markdown_html(original, expected);
3552 }
3553
3554 #[test]
spec_test_243()3555 fn spec_test_243() {
3556 let original = r##"1. indented code
3557
3558 paragraph
3559
3560 more code
3561 "##;
3562 let expected = r##"<ol>
3563 <li>
3564 <pre><code>indented code
3565 </code></pre>
3566 <p>paragraph</p>
3567 <pre><code>more code
3568 </code></pre>
3569 </li>
3570 </ol>
3571 "##;
3572
3573 test_markdown_html(original, expected);
3574 }
3575
3576 #[test]
spec_test_244()3577 fn spec_test_244() {
3578 let original = r##"1. indented code
3579
3580 paragraph
3581
3582 more code
3583 "##;
3584 let expected = r##"<ol>
3585 <li>
3586 <pre><code> indented code
3587 </code></pre>
3588 <p>paragraph</p>
3589 <pre><code>more code
3590 </code></pre>
3591 </li>
3592 </ol>
3593 "##;
3594
3595 test_markdown_html(original, expected);
3596 }
3597
3598 #[test]
spec_test_245()3599 fn spec_test_245() {
3600 let original = r##" foo
3601
3602 bar
3603 "##;
3604 let expected = r##"<p>foo</p>
3605 <p>bar</p>
3606 "##;
3607
3608 test_markdown_html(original, expected);
3609 }
3610
3611 #[test]
spec_test_246()3612 fn spec_test_246() {
3613 let original = r##"- foo
3614
3615 bar
3616 "##;
3617 let expected = r##"<ul>
3618 <li>foo</li>
3619 </ul>
3620 <p>bar</p>
3621 "##;
3622
3623 test_markdown_html(original, expected);
3624 }
3625
3626 #[test]
spec_test_247()3627 fn spec_test_247() {
3628 let original = r##"- foo
3629
3630 bar
3631 "##;
3632 let expected = r##"<ul>
3633 <li>
3634 <p>foo</p>
3635 <p>bar</p>
3636 </li>
3637 </ul>
3638 "##;
3639
3640 test_markdown_html(original, expected);
3641 }
3642
3643 #[test]
spec_test_248()3644 fn spec_test_248() {
3645 let original = r##"-
3646 foo
3647 -
3648 ```
3649 bar
3650 ```
3651 -
3652 baz
3653 "##;
3654 let expected = r##"<ul>
3655 <li>foo</li>
3656 <li>
3657 <pre><code>bar
3658 </code></pre>
3659 </li>
3660 <li>
3661 <pre><code>baz
3662 </code></pre>
3663 </li>
3664 </ul>
3665 "##;
3666
3667 test_markdown_html(original, expected);
3668 }
3669
3670 #[test]
spec_test_249()3671 fn spec_test_249() {
3672 let original = r##"-
3673 foo
3674 "##;
3675 let expected = r##"<ul>
3676 <li>foo</li>
3677 </ul>
3678 "##;
3679
3680 test_markdown_html(original, expected);
3681 }
3682
3683 #[test]
spec_test_250()3684 fn spec_test_250() {
3685 let original = r##"-
3686
3687 foo
3688 "##;
3689 let expected = r##"<ul>
3690 <li></li>
3691 </ul>
3692 <p>foo</p>
3693 "##;
3694
3695 test_markdown_html(original, expected);
3696 }
3697
3698 #[test]
spec_test_251()3699 fn spec_test_251() {
3700 let original = r##"- foo
3701 -
3702 - bar
3703 "##;
3704 let expected = r##"<ul>
3705 <li>foo</li>
3706 <li></li>
3707 <li>bar</li>
3708 </ul>
3709 "##;
3710
3711 test_markdown_html(original, expected);
3712 }
3713
3714 #[test]
spec_test_252()3715 fn spec_test_252() {
3716 let original = r##"- foo
3717 -
3718 - bar
3719 "##;
3720 let expected = r##"<ul>
3721 <li>foo</li>
3722 <li></li>
3723 <li>bar</li>
3724 </ul>
3725 "##;
3726
3727 test_markdown_html(original, expected);
3728 }
3729
3730 #[test]
spec_test_253()3731 fn spec_test_253() {
3732 let original = r##"1. foo
3733 2.
3734 3. bar
3735 "##;
3736 let expected = r##"<ol>
3737 <li>foo</li>
3738 <li></li>
3739 <li>bar</li>
3740 </ol>
3741 "##;
3742
3743 test_markdown_html(original, expected);
3744 }
3745
3746 #[test]
spec_test_254()3747 fn spec_test_254() {
3748 let original = r##"*
3749 "##;
3750 let expected = r##"<ul>
3751 <li></li>
3752 </ul>
3753 "##;
3754
3755 test_markdown_html(original, expected);
3756 }
3757
3758 #[test]
spec_test_255()3759 fn spec_test_255() {
3760 let original = r##"foo
3761 *
3762
3763 foo
3764 1.
3765 "##;
3766 let expected = r##"<p>foo
3767 *</p>
3768 <p>foo
3769 1.</p>
3770 "##;
3771
3772 test_markdown_html(original, expected);
3773 }
3774
3775 #[test]
spec_test_256()3776 fn spec_test_256() {
3777 let original = r##" 1. A paragraph
3778 with two lines.
3779
3780 indented code
3781
3782 > A block quote.
3783 "##;
3784 let expected = r##"<ol>
3785 <li>
3786 <p>A paragraph
3787 with two lines.</p>
3788 <pre><code>indented code
3789 </code></pre>
3790 <blockquote>
3791 <p>A block quote.</p>
3792 </blockquote>
3793 </li>
3794 </ol>
3795 "##;
3796
3797 test_markdown_html(original, expected);
3798 }
3799
3800 #[test]
spec_test_257()3801 fn spec_test_257() {
3802 let original = r##" 1. A paragraph
3803 with two lines.
3804
3805 indented code
3806
3807 > A block quote.
3808 "##;
3809 let expected = r##"<ol>
3810 <li>
3811 <p>A paragraph
3812 with two lines.</p>
3813 <pre><code>indented code
3814 </code></pre>
3815 <blockquote>
3816 <p>A block quote.</p>
3817 </blockquote>
3818 </li>
3819 </ol>
3820 "##;
3821
3822 test_markdown_html(original, expected);
3823 }
3824
3825 #[test]
spec_test_258()3826 fn spec_test_258() {
3827 let original = r##" 1. A paragraph
3828 with two lines.
3829
3830 indented code
3831
3832 > A block quote.
3833 "##;
3834 let expected = r##"<ol>
3835 <li>
3836 <p>A paragraph
3837 with two lines.</p>
3838 <pre><code>indented code
3839 </code></pre>
3840 <blockquote>
3841 <p>A block quote.</p>
3842 </blockquote>
3843 </li>
3844 </ol>
3845 "##;
3846
3847 test_markdown_html(original, expected);
3848 }
3849
3850 #[test]
spec_test_259()3851 fn spec_test_259() {
3852 let original = r##" 1. A paragraph
3853 with two lines.
3854
3855 indented code
3856
3857 > A block quote.
3858 "##;
3859 let expected = r##"<pre><code>1. A paragraph
3860 with two lines.
3861
3862 indented code
3863
3864 > A block quote.
3865 </code></pre>
3866 "##;
3867
3868 test_markdown_html(original, expected);
3869 }
3870
3871 #[test]
spec_test_260()3872 fn spec_test_260() {
3873 let original = r##" 1. A paragraph
3874 with two lines.
3875
3876 indented code
3877
3878 > A block quote.
3879 "##;
3880 let expected = r##"<ol>
3881 <li>
3882 <p>A paragraph
3883 with two lines.</p>
3884 <pre><code>indented code
3885 </code></pre>
3886 <blockquote>
3887 <p>A block quote.</p>
3888 </blockquote>
3889 </li>
3890 </ol>
3891 "##;
3892
3893 test_markdown_html(original, expected);
3894 }
3895
3896 #[test]
spec_test_261()3897 fn spec_test_261() {
3898 let original = r##" 1. A paragraph
3899 with two lines.
3900 "##;
3901 let expected = r##"<ol>
3902 <li>A paragraph
3903 with two lines.</li>
3904 </ol>
3905 "##;
3906
3907 test_markdown_html(original, expected);
3908 }
3909
3910 #[test]
spec_test_262()3911 fn spec_test_262() {
3912 let original = r##"> 1. > Blockquote
3913 continued here.
3914 "##;
3915 let expected = r##"<blockquote>
3916 <ol>
3917 <li>
3918 <blockquote>
3919 <p>Blockquote
3920 continued here.</p>
3921 </blockquote>
3922 </li>
3923 </ol>
3924 </blockquote>
3925 "##;
3926
3927 test_markdown_html(original, expected);
3928 }
3929
3930 #[test]
spec_test_263()3931 fn spec_test_263() {
3932 let original = r##"> 1. > Blockquote
3933 > continued here.
3934 "##;
3935 let expected = r##"<blockquote>
3936 <ol>
3937 <li>
3938 <blockquote>
3939 <p>Blockquote
3940 continued here.</p>
3941 </blockquote>
3942 </li>
3943 </ol>
3944 </blockquote>
3945 "##;
3946
3947 test_markdown_html(original, expected);
3948 }
3949
3950 #[test]
spec_test_264()3951 fn spec_test_264() {
3952 let original = r##"- foo
3953 - bar
3954 - baz
3955 - boo
3956 "##;
3957 let expected = r##"<ul>
3958 <li>foo
3959 <ul>
3960 <li>bar
3961 <ul>
3962 <li>baz
3963 <ul>
3964 <li>boo</li>
3965 </ul>
3966 </li>
3967 </ul>
3968 </li>
3969 </ul>
3970 </li>
3971 </ul>
3972 "##;
3973
3974 test_markdown_html(original, expected);
3975 }
3976
3977 #[test]
spec_test_265()3978 fn spec_test_265() {
3979 let original = r##"- foo
3980 - bar
3981 - baz
3982 - boo
3983 "##;
3984 let expected = r##"<ul>
3985 <li>foo</li>
3986 <li>bar</li>
3987 <li>baz</li>
3988 <li>boo</li>
3989 </ul>
3990 "##;
3991
3992 test_markdown_html(original, expected);
3993 }
3994
3995 #[test]
spec_test_266()3996 fn spec_test_266() {
3997 let original = r##"10) foo
3998 - bar
3999 "##;
4000 let expected = r##"<ol start="10">
4001 <li>foo
4002 <ul>
4003 <li>bar</li>
4004 </ul>
4005 </li>
4006 </ol>
4007 "##;
4008
4009 test_markdown_html(original, expected);
4010 }
4011
4012 #[test]
spec_test_267()4013 fn spec_test_267() {
4014 let original = r##"10) foo
4015 - bar
4016 "##;
4017 let expected = r##"<ol start="10">
4018 <li>foo</li>
4019 </ol>
4020 <ul>
4021 <li>bar</li>
4022 </ul>
4023 "##;
4024
4025 test_markdown_html(original, expected);
4026 }
4027
4028 #[test]
spec_test_268()4029 fn spec_test_268() {
4030 let original = r##"- - foo
4031 "##;
4032 let expected = r##"<ul>
4033 <li>
4034 <ul>
4035 <li>foo</li>
4036 </ul>
4037 </li>
4038 </ul>
4039 "##;
4040
4041 test_markdown_html(original, expected);
4042 }
4043
4044 #[test]
spec_test_269()4045 fn spec_test_269() {
4046 let original = r##"1. - 2. foo
4047 "##;
4048 let expected = r##"<ol>
4049 <li>
4050 <ul>
4051 <li>
4052 <ol start="2">
4053 <li>foo</li>
4054 </ol>
4055 </li>
4056 </ul>
4057 </li>
4058 </ol>
4059 "##;
4060
4061 test_markdown_html(original, expected);
4062 }
4063
4064 #[test]
spec_test_270()4065 fn spec_test_270() {
4066 let original = r##"- # Foo
4067 - Bar
4068 ---
4069 baz
4070 "##;
4071 let expected = r##"<ul>
4072 <li>
4073 <h1>Foo</h1>
4074 </li>
4075 <li>
4076 <h2>Bar</h2>
4077 baz</li>
4078 </ul>
4079 "##;
4080
4081 test_markdown_html(original, expected);
4082 }
4083
4084 #[test]
spec_test_271()4085 fn spec_test_271() {
4086 let original = r##"- foo
4087 - bar
4088 + baz
4089 "##;
4090 let expected = r##"<ul>
4091 <li>foo</li>
4092 <li>bar</li>
4093 </ul>
4094 <ul>
4095 <li>baz</li>
4096 </ul>
4097 "##;
4098
4099 test_markdown_html(original, expected);
4100 }
4101
4102 #[test]
spec_test_272()4103 fn spec_test_272() {
4104 let original = r##"1. foo
4105 2. bar
4106 3) baz
4107 "##;
4108 let expected = r##"<ol>
4109 <li>foo</li>
4110 <li>bar</li>
4111 </ol>
4112 <ol start="3">
4113 <li>baz</li>
4114 </ol>
4115 "##;
4116
4117 test_markdown_html(original, expected);
4118 }
4119
4120 #[test]
spec_test_273()4121 fn spec_test_273() {
4122 let original = r##"Foo
4123 - bar
4124 - baz
4125 "##;
4126 let expected = r##"<p>Foo</p>
4127 <ul>
4128 <li>bar</li>
4129 <li>baz</li>
4130 </ul>
4131 "##;
4132
4133 test_markdown_html(original, expected);
4134 }
4135
4136 #[test]
spec_test_274()4137 fn spec_test_274() {
4138 let original = r##"The number of windows in my house is
4139 14. The number of doors is 6.
4140 "##;
4141 let expected = r##"<p>The number of windows in my house is
4142 14. The number of doors is 6.</p>
4143 "##;
4144
4145 test_markdown_html(original, expected);
4146 }
4147
4148 #[test]
spec_test_275()4149 fn spec_test_275() {
4150 let original = r##"The number of windows in my house is
4151 1. The number of doors is 6.
4152 "##;
4153 let expected = r##"<p>The number of windows in my house is</p>
4154 <ol>
4155 <li>The number of doors is 6.</li>
4156 </ol>
4157 "##;
4158
4159 test_markdown_html(original, expected);
4160 }
4161
4162 #[test]
spec_test_276()4163 fn spec_test_276() {
4164 let original = r##"- foo
4165
4166 - bar
4167
4168
4169 - baz
4170 "##;
4171 let expected = r##"<ul>
4172 <li>
4173 <p>foo</p>
4174 </li>
4175 <li>
4176 <p>bar</p>
4177 </li>
4178 <li>
4179 <p>baz</p>
4180 </li>
4181 </ul>
4182 "##;
4183
4184 test_markdown_html(original, expected);
4185 }
4186
4187 #[test]
spec_test_277()4188 fn spec_test_277() {
4189 let original = r##"- foo
4190 - bar
4191 - baz
4192
4193
4194 bim
4195 "##;
4196 let expected = r##"<ul>
4197 <li>foo
4198 <ul>
4199 <li>bar
4200 <ul>
4201 <li>
4202 <p>baz</p>
4203 <p>bim</p>
4204 </li>
4205 </ul>
4206 </li>
4207 </ul>
4208 </li>
4209 </ul>
4210 "##;
4211
4212 test_markdown_html(original, expected);
4213 }
4214
4215 #[test]
spec_test_278()4216 fn spec_test_278() {
4217 let original = r##"- foo
4218 - bar
4219
4220 <!-- -->
4221
4222 - baz
4223 - bim
4224 "##;
4225 let expected = r##"<ul>
4226 <li>foo</li>
4227 <li>bar</li>
4228 </ul>
4229 <!-- -->
4230 <ul>
4231 <li>baz</li>
4232 <li>bim</li>
4233 </ul>
4234 "##;
4235
4236 test_markdown_html(original, expected);
4237 }
4238
4239 #[test]
spec_test_279()4240 fn spec_test_279() {
4241 let original = r##"- foo
4242
4243 notcode
4244
4245 - foo
4246
4247 <!-- -->
4248
4249 code
4250 "##;
4251 let expected = r##"<ul>
4252 <li>
4253 <p>foo</p>
4254 <p>notcode</p>
4255 </li>
4256 <li>
4257 <p>foo</p>
4258 </li>
4259 </ul>
4260 <!-- -->
4261 <pre><code>code
4262 </code></pre>
4263 "##;
4264
4265 test_markdown_html(original, expected);
4266 }
4267
4268 #[test]
spec_test_280()4269 fn spec_test_280() {
4270 let original = r##"- a
4271 - b
4272 - c
4273 - d
4274 - e
4275 - f
4276 - g
4277 "##;
4278 let expected = r##"<ul>
4279 <li>a</li>
4280 <li>b</li>
4281 <li>c</li>
4282 <li>d</li>
4283 <li>e</li>
4284 <li>f</li>
4285 <li>g</li>
4286 </ul>
4287 "##;
4288
4289 test_markdown_html(original, expected);
4290 }
4291
4292 #[test]
spec_test_281()4293 fn spec_test_281() {
4294 let original = r##"1. a
4295
4296 2. b
4297
4298 3. c
4299 "##;
4300 let expected = r##"<ol>
4301 <li>
4302 <p>a</p>
4303 </li>
4304 <li>
4305 <p>b</p>
4306 </li>
4307 <li>
4308 <p>c</p>
4309 </li>
4310 </ol>
4311 "##;
4312
4313 test_markdown_html(original, expected);
4314 }
4315
4316 #[test]
spec_test_282()4317 fn spec_test_282() {
4318 let original = r##"- a
4319 - b
4320 - c
4321 - d
4322 - e
4323 "##;
4324 let expected = r##"<ul>
4325 <li>a</li>
4326 <li>b</li>
4327 <li>c</li>
4328 <li>d
4329 - e</li>
4330 </ul>
4331 "##;
4332
4333 test_markdown_html(original, expected);
4334 }
4335
4336 #[test]
spec_test_283()4337 fn spec_test_283() {
4338 let original = r##"1. a
4339
4340 2. b
4341
4342 3. c
4343 "##;
4344 let expected = r##"<ol>
4345 <li>
4346 <p>a</p>
4347 </li>
4348 <li>
4349 <p>b</p>
4350 </li>
4351 </ol>
4352 <pre><code>3. c
4353 </code></pre>
4354 "##;
4355
4356 test_markdown_html(original, expected);
4357 }
4358
4359 #[test]
spec_test_284()4360 fn spec_test_284() {
4361 let original = r##"- a
4362 - b
4363
4364 - c
4365 "##;
4366 let expected = r##"<ul>
4367 <li>
4368 <p>a</p>
4369 </li>
4370 <li>
4371 <p>b</p>
4372 </li>
4373 <li>
4374 <p>c</p>
4375 </li>
4376 </ul>
4377 "##;
4378
4379 test_markdown_html(original, expected);
4380 }
4381
4382 #[test]
spec_test_285()4383 fn spec_test_285() {
4384 let original = r##"* a
4385 *
4386
4387 * c
4388 "##;
4389 let expected = r##"<ul>
4390 <li>
4391 <p>a</p>
4392 </li>
4393 <li></li>
4394 <li>
4395 <p>c</p>
4396 </li>
4397 </ul>
4398 "##;
4399
4400 test_markdown_html(original, expected);
4401 }
4402
4403 #[test]
spec_test_286()4404 fn spec_test_286() {
4405 let original = r##"- a
4406 - b
4407
4408 c
4409 - d
4410 "##;
4411 let expected = r##"<ul>
4412 <li>
4413 <p>a</p>
4414 </li>
4415 <li>
4416 <p>b</p>
4417 <p>c</p>
4418 </li>
4419 <li>
4420 <p>d</p>
4421 </li>
4422 </ul>
4423 "##;
4424
4425 test_markdown_html(original, expected);
4426 }
4427
4428 #[test]
spec_test_287()4429 fn spec_test_287() {
4430 let original = r##"- a
4431 - b
4432
4433 [ref]: /url
4434 - d
4435 "##;
4436 let expected = r##"<ul>
4437 <li>
4438 <p>a</p>
4439 </li>
4440 <li>
4441 <p>b</p>
4442 </li>
4443 <li>
4444 <p>d</p>
4445 </li>
4446 </ul>
4447 "##;
4448
4449 test_markdown_html(original, expected);
4450 }
4451
4452 #[test]
spec_test_288()4453 fn spec_test_288() {
4454 let original = r##"- a
4455 - ```
4456 b
4457
4458
4459 ```
4460 - c
4461 "##;
4462 let expected = r##"<ul>
4463 <li>a</li>
4464 <li>
4465 <pre><code>b
4466
4467
4468 </code></pre>
4469 </li>
4470 <li>c</li>
4471 </ul>
4472 "##;
4473
4474 test_markdown_html(original, expected);
4475 }
4476
4477 #[test]
spec_test_289()4478 fn spec_test_289() {
4479 let original = r##"- a
4480 - b
4481
4482 c
4483 - d
4484 "##;
4485 let expected = r##"<ul>
4486 <li>a
4487 <ul>
4488 <li>
4489 <p>b</p>
4490 <p>c</p>
4491 </li>
4492 </ul>
4493 </li>
4494 <li>d</li>
4495 </ul>
4496 "##;
4497
4498 test_markdown_html(original, expected);
4499 }
4500
4501 #[test]
spec_test_290()4502 fn spec_test_290() {
4503 let original = r##"* a
4504 > b
4505 >
4506 * c
4507 "##;
4508 let expected = r##"<ul>
4509 <li>a
4510 <blockquote>
4511 <p>b</p>
4512 </blockquote>
4513 </li>
4514 <li>c</li>
4515 </ul>
4516 "##;
4517
4518 test_markdown_html(original, expected);
4519 }
4520
4521 #[test]
spec_test_291()4522 fn spec_test_291() {
4523 let original = r##"- a
4524 > b
4525 ```
4526 c
4527 ```
4528 - d
4529 "##;
4530 let expected = r##"<ul>
4531 <li>a
4532 <blockquote>
4533 <p>b</p>
4534 </blockquote>
4535 <pre><code>c
4536 </code></pre>
4537 </li>
4538 <li>d</li>
4539 </ul>
4540 "##;
4541
4542 test_markdown_html(original, expected);
4543 }
4544
4545 #[test]
spec_test_292()4546 fn spec_test_292() {
4547 let original = r##"- a
4548 "##;
4549 let expected = r##"<ul>
4550 <li>a</li>
4551 </ul>
4552 "##;
4553
4554 test_markdown_html(original, expected);
4555 }
4556
4557 #[test]
spec_test_293()4558 fn spec_test_293() {
4559 let original = r##"- a
4560 - b
4561 "##;
4562 let expected = r##"<ul>
4563 <li>a
4564 <ul>
4565 <li>b</li>
4566 </ul>
4567 </li>
4568 </ul>
4569 "##;
4570
4571 test_markdown_html(original, expected);
4572 }
4573
4574 #[test]
spec_test_294()4575 fn spec_test_294() {
4576 let original = r##"1. ```
4577 foo
4578 ```
4579
4580 bar
4581 "##;
4582 let expected = r##"<ol>
4583 <li>
4584 <pre><code>foo
4585 </code></pre>
4586 <p>bar</p>
4587 </li>
4588 </ol>
4589 "##;
4590
4591 test_markdown_html(original, expected);
4592 }
4593
4594 #[test]
spec_test_295()4595 fn spec_test_295() {
4596 let original = r##"* foo
4597 * bar
4598
4599 baz
4600 "##;
4601 let expected = r##"<ul>
4602 <li>
4603 <p>foo</p>
4604 <ul>
4605 <li>bar</li>
4606 </ul>
4607 <p>baz</p>
4608 </li>
4609 </ul>
4610 "##;
4611
4612 test_markdown_html(original, expected);
4613 }
4614
4615 #[test]
spec_test_296()4616 fn spec_test_296() {
4617 let original = r##"- a
4618 - b
4619 - c
4620
4621 - d
4622 - e
4623 - f
4624 "##;
4625 let expected = r##"<ul>
4626 <li>
4627 <p>a</p>
4628 <ul>
4629 <li>b</li>
4630 <li>c</li>
4631 </ul>
4632 </li>
4633 <li>
4634 <p>d</p>
4635 <ul>
4636 <li>e</li>
4637 <li>f</li>
4638 </ul>
4639 </li>
4640 </ul>
4641 "##;
4642
4643 test_markdown_html(original, expected);
4644 }
4645
4646 #[test]
spec_test_297()4647 fn spec_test_297() {
4648 let original = r##"`hi`lo`
4649 "##;
4650 let expected = r##"<p><code>hi</code>lo`</p>
4651 "##;
4652
4653 test_markdown_html(original, expected);
4654 }
4655
4656 #[test]
spec_test_298()4657 fn spec_test_298() {
4658 let original = r##"\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~
4659 "##;
4660 let expected = r##"<p>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</p>
4661 "##;
4662
4663 test_markdown_html(original, expected);
4664 }
4665
4666 #[test]
spec_test_299()4667 fn spec_test_299() {
4668 let original = r##"\ \A\a\ \3\φ\«
4669 "##;
4670 let expected = r##"<p>\ \A\a\ \3\φ\«</p>
4671 "##;
4672
4673 test_markdown_html(original, expected);
4674 }
4675
4676 #[test]
spec_test_300()4677 fn spec_test_300() {
4678 let original = r##"\*not emphasized*
4679 \<br/> not a tag
4680 \[not a link](/foo)
4681 \`not code`
4682 1\. not a list
4683 \* not a list
4684 \# not a heading
4685 \[foo]: /url "not a reference"
4686 \ö not a character entity
4687 "##;
4688 let expected = r##"<p>*not emphasized*
4689 <br/> not a tag
4690 [not a link](/foo)
4691 `not code`
4692 1. not a list
4693 * not a list
4694 # not a heading
4695 [foo]: /url "not a reference"
4696 &ouml; not a character entity</p>
4697 "##;
4698
4699 test_markdown_html(original, expected);
4700 }
4701
4702 #[test]
spec_test_301()4703 fn spec_test_301() {
4704 let original = r##"\\*emphasis*
4705 "##;
4706 let expected = r##"<p>\<em>emphasis</em></p>
4707 "##;
4708
4709 test_markdown_html(original, expected);
4710 }
4711
4712 #[test]
spec_test_302()4713 fn spec_test_302() {
4714 let original = r##"foo\
4715 bar
4716 "##;
4717 let expected = r##"<p>foo<br />
4718 bar</p>
4719 "##;
4720
4721 test_markdown_html(original, expected);
4722 }
4723
4724 #[test]
spec_test_303()4725 fn spec_test_303() {
4726 let original = r##"`` \[\` ``
4727 "##;
4728 let expected = r##"<p><code>\[\`</code></p>
4729 "##;
4730
4731 test_markdown_html(original, expected);
4732 }
4733
4734 #[test]
spec_test_304()4735 fn spec_test_304() {
4736 let original = r##" \[\]
4737 "##;
4738 let expected = r##"<pre><code>\[\]
4739 </code></pre>
4740 "##;
4741
4742 test_markdown_html(original, expected);
4743 }
4744
4745 #[test]
spec_test_305()4746 fn spec_test_305() {
4747 let original = r##"~~~
4748 \[\]
4749 ~~~
4750 "##;
4751 let expected = r##"<pre><code>\[\]
4752 </code></pre>
4753 "##;
4754
4755 test_markdown_html(original, expected);
4756 }
4757
4758 #[test]
spec_test_306()4759 fn spec_test_306() {
4760 let original = r##"<http://example.com?find=\*>
4761 "##;
4762 let expected = r##"<p><a href="http://example.com?find=%5C*">http://example.com?find=\*</a></p>
4763 "##;
4764
4765 test_markdown_html(original, expected);
4766 }
4767
4768 #[test]
spec_test_307()4769 fn spec_test_307() {
4770 let original = r##"<a href="/bar\/)">
4771 "##;
4772 let expected = r##"<a href="/bar\/)">
4773 "##;
4774
4775 test_markdown_html(original, expected);
4776 }
4777
4778 #[test]
spec_test_308()4779 fn spec_test_308() {
4780 let original = r##"[foo](/bar\* "ti\*tle")
4781 "##;
4782 let expected = r##"<p><a href="/bar*" title="ti*tle">foo</a></p>
4783 "##;
4784
4785 test_markdown_html(original, expected);
4786 }
4787
4788 #[test]
spec_test_309()4789 fn spec_test_309() {
4790 let original = r##"[foo]
4791
4792 [foo]: /bar\* "ti\*tle"
4793 "##;
4794 let expected = r##"<p><a href="/bar*" title="ti*tle">foo</a></p>
4795 "##;
4796
4797 test_markdown_html(original, expected);
4798 }
4799
4800 #[test]
spec_test_310()4801 fn spec_test_310() {
4802 let original = r##"``` foo\+bar
4803 foo
4804 ```
4805 "##;
4806 let expected = r##"<pre><code class="language-foo+bar">foo
4807 </code></pre>
4808 "##;
4809
4810 test_markdown_html(original, expected);
4811 }
4812
4813 #[test]
spec_test_311()4814 fn spec_test_311() {
4815 let original = r##" & © Æ Ď
4816 ¾ ℋ ⅆ
4817 ∲ ≧̸
4818 "##;
4819 let expected = r##"<p> & © Æ Ď
4820 ¾ ℋ ⅆ
4821 ∲ ≧̸</p>
4822 "##;
4823
4824 test_markdown_html(original, expected);
4825 }
4826
4827 #[test]
spec_test_312()4828 fn spec_test_312() {
4829 let original = r##"# Ӓ Ϡ �
4830 "##;
4831 let expected = r##"<p># Ӓ Ϡ �</p>
4832 "##;
4833
4834 test_markdown_html(original, expected);
4835 }
4836
4837 #[test]
spec_test_313()4838 fn spec_test_313() {
4839 let original = r##"" ആ ಫ
4840 "##;
4841 let expected = r##"<p>" ആ ಫ</p>
4842 "##;
4843
4844 test_markdown_html(original, expected);
4845 }
4846
4847 #[test]
spec_test_314()4848 fn spec_test_314() {
4849 let original = r##"  &x; &#; &#x;
4850 �
4851 &#abcdef0;
4852 &ThisIsNotDefined; &hi?;
4853 "##;
4854 let expected = r##"<p>&nbsp &x; &#; &#x;
4855 &#87654321;
4856 &#abcdef0;
4857 &ThisIsNotDefined; &hi?;</p>
4858 "##;
4859
4860 test_markdown_html(original, expected);
4861 }
4862
4863 #[test]
spec_test_315()4864 fn spec_test_315() {
4865 let original = r##"©
4866 "##;
4867 let expected = r##"<p>&copy</p>
4868 "##;
4869
4870 test_markdown_html(original, expected);
4871 }
4872
4873 #[test]
spec_test_316()4874 fn spec_test_316() {
4875 let original = r##"&MadeUpEntity;
4876 "##;
4877 let expected = r##"<p>&MadeUpEntity;</p>
4878 "##;
4879
4880 test_markdown_html(original, expected);
4881 }
4882
4883 #[test]
spec_test_317()4884 fn spec_test_317() {
4885 let original = r##"<a href="öö.html">
4886 "##;
4887 let expected = r##"<a href="öö.html">
4888 "##;
4889
4890 test_markdown_html(original, expected);
4891 }
4892
4893 #[test]
spec_test_318()4894 fn spec_test_318() {
4895 let original = r##"[foo](/föö "föö")
4896 "##;
4897 let expected = r##"<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
4898 "##;
4899
4900 test_markdown_html(original, expected);
4901 }
4902
4903 #[test]
spec_test_319()4904 fn spec_test_319() {
4905 let original = r##"[foo]
4906
4907 [foo]: /föö "föö"
4908 "##;
4909 let expected = r##"<p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p>
4910 "##;
4911
4912 test_markdown_html(original, expected);
4913 }
4914
4915 #[test]
spec_test_320()4916 fn spec_test_320() {
4917 let original = r##"``` föö
4918 foo
4919 ```
4920 "##;
4921 let expected = r##"<pre><code class="language-föö">foo
4922 </code></pre>
4923 "##;
4924
4925 test_markdown_html(original, expected);
4926 }
4927
4928 #[test]
spec_test_321()4929 fn spec_test_321() {
4930 let original = r##"`föö`
4931 "##;
4932 let expected = r##"<p><code>f&ouml;&ouml;</code></p>
4933 "##;
4934
4935 test_markdown_html(original, expected);
4936 }
4937
4938 #[test]
spec_test_322()4939 fn spec_test_322() {
4940 let original = r##" föfö
4941 "##;
4942 let expected = r##"<pre><code>f&ouml;f&ouml;
4943 </code></pre>
4944 "##;
4945
4946 test_markdown_html(original, expected);
4947 }
4948
4949 #[test]
spec_test_323()4950 fn spec_test_323() {
4951 let original = r##"*foo*
4952 *foo*
4953 "##;
4954 let expected = r##"<p>*foo*
4955 <em>foo</em></p>
4956 "##;
4957
4958 test_markdown_html(original, expected);
4959 }
4960
4961 #[test]
spec_test_324()4962 fn spec_test_324() {
4963 let original = r##"* foo
4964
4965 * foo
4966 "##;
4967 let expected = r##"<p>* foo</p>
4968 <ul>
4969 <li>foo</li>
4970 </ul>
4971 "##;
4972
4973 test_markdown_html(original, expected);
4974 }
4975
4976 #[test]
spec_test_325()4977 fn spec_test_325() {
4978 let original = r##"foo bar
4979 "##;
4980 let expected = r##"<p>foo
4981
4982 bar</p>
4983 "##;
4984
4985 test_markdown_html(original, expected);
4986 }
4987
4988 #[test]
spec_test_326()4989 fn spec_test_326() {
4990 let original = r##"	foo
4991 "##;
4992 let expected = r##"<p> foo</p>
4993 "##;
4994
4995 test_markdown_html(original, expected);
4996 }
4997
4998 #[test]
spec_test_327()4999 fn spec_test_327() {
5000 let original = r##"[a](url "tit")
5001 "##;
5002 let expected = r##"<p>[a](url "tit")</p>
5003 "##;
5004
5005 test_markdown_html(original, expected);
5006 }
5007
5008 #[test]
spec_test_328()5009 fn spec_test_328() {
5010 let original = r##"`foo`
5011 "##;
5012 let expected = r##"<p><code>foo</code></p>
5013 "##;
5014
5015 test_markdown_html(original, expected);
5016 }
5017
5018 #[test]
spec_test_329()5019 fn spec_test_329() {
5020 let original = r##"`` foo ` bar ``
5021 "##;
5022 let expected = r##"<p><code>foo ` bar</code></p>
5023 "##;
5024
5025 test_markdown_html(original, expected);
5026 }
5027
5028 #[test]
spec_test_330()5029 fn spec_test_330() {
5030 let original = r##"` `` `
5031 "##;
5032 let expected = r##"<p><code>``</code></p>
5033 "##;
5034
5035 test_markdown_html(original, expected);
5036 }
5037
5038 #[test]
spec_test_331()5039 fn spec_test_331() {
5040 let original = r##"` `` `
5041 "##;
5042 let expected = r##"<p><code> `` </code></p>
5043 "##;
5044
5045 test_markdown_html(original, expected);
5046 }
5047
5048 #[test]
spec_test_332()5049 fn spec_test_332() {
5050 let original = r##"` a`
5051 "##;
5052 let expected = r##"<p><code> a</code></p>
5053 "##;
5054
5055 test_markdown_html(original, expected);
5056 }
5057
5058 #[test]
spec_test_333()5059 fn spec_test_333() {
5060 let original = r##"` b `
5061 "##;
5062 let expected = r##"<p><code> b </code></p>
5063 "##;
5064
5065 test_markdown_html(original, expected);
5066 }
5067
5068 #[test]
spec_test_334()5069 fn spec_test_334() {
5070 let original = r##"` `
5071 ` `
5072 "##;
5073 let expected = r##"<p><code> </code>
5074 <code> </code></p>
5075 "##;
5076
5077 test_markdown_html(original, expected);
5078 }
5079
5080 #[test]
spec_test_335()5081 fn spec_test_335() {
5082 let original = r##"``
5083 foo
5084 bar
5085 baz
5086 ``
5087 "##;
5088 let expected = r##"<p><code>foo bar baz</code></p>
5089 "##;
5090
5091 test_markdown_html(original, expected);
5092 }
5093
5094 #[test]
spec_test_336()5095 fn spec_test_336() {
5096 let original = r##"``
5097 foo
5098 ``
5099 "##;
5100 let expected = r##"<p><code>foo </code></p>
5101 "##;
5102
5103 test_markdown_html(original, expected);
5104 }
5105
5106 #[test]
spec_test_337()5107 fn spec_test_337() {
5108 let original = r##"`foo bar
5109 baz`
5110 "##;
5111 let expected = r##"<p><code>foo bar baz</code></p>
5112 "##;
5113
5114 test_markdown_html(original, expected);
5115 }
5116
5117 #[test]
spec_test_338()5118 fn spec_test_338() {
5119 let original = r##"`foo\`bar`
5120 "##;
5121 let expected = r##"<p><code>foo\</code>bar`</p>
5122 "##;
5123
5124 test_markdown_html(original, expected);
5125 }
5126
5127 #[test]
spec_test_339()5128 fn spec_test_339() {
5129 let original = r##"``foo`bar``
5130 "##;
5131 let expected = r##"<p><code>foo`bar</code></p>
5132 "##;
5133
5134 test_markdown_html(original, expected);
5135 }
5136
5137 #[test]
spec_test_340()5138 fn spec_test_340() {
5139 let original = r##"` foo `` bar `
5140 "##;
5141 let expected = r##"<p><code>foo `` bar</code></p>
5142 "##;
5143
5144 test_markdown_html(original, expected);
5145 }
5146
5147 #[test]
spec_test_341()5148 fn spec_test_341() {
5149 let original = r##"*foo`*`
5150 "##;
5151 let expected = r##"<p>*foo<code>*</code></p>
5152 "##;
5153
5154 test_markdown_html(original, expected);
5155 }
5156
5157 #[test]
spec_test_342()5158 fn spec_test_342() {
5159 let original = r##"[not a `link](/foo`)
5160 "##;
5161 let expected = r##"<p>[not a <code>link](/foo</code>)</p>
5162 "##;
5163
5164 test_markdown_html(original, expected);
5165 }
5166
5167 #[test]
spec_test_343()5168 fn spec_test_343() {
5169 let original = r##"`<a href="`">`
5170 "##;
5171 let expected = r##"<p><code><a href="</code>">`</p>
5172 "##;
5173
5174 test_markdown_html(original, expected);
5175 }
5176
5177 #[test]
spec_test_344()5178 fn spec_test_344() {
5179 let original = r##"<a href="`">`
5180 "##;
5181 let expected = r##"<p><a href="`">`</p>
5182 "##;
5183
5184 test_markdown_html(original, expected);
5185 }
5186
5187 #[test]
spec_test_345()5188 fn spec_test_345() {
5189 let original = r##"`<http://foo.bar.`baz>`
5190 "##;
5191 let expected = r##"<p><code><http://foo.bar.</code>baz>`</p>
5192 "##;
5193
5194 test_markdown_html(original, expected);
5195 }
5196
5197 #[test]
spec_test_346()5198 fn spec_test_346() {
5199 let original = r##"<http://foo.bar.`baz>`
5200 "##;
5201 let expected = r##"<p><a href="http://foo.bar.%60baz">http://foo.bar.`baz</a>`</p>
5202 "##;
5203
5204 test_markdown_html(original, expected);
5205 }
5206
5207 #[test]
spec_test_347()5208 fn spec_test_347() {
5209 let original = r##"```foo``
5210 "##;
5211 let expected = r##"<p>```foo``</p>
5212 "##;
5213
5214 test_markdown_html(original, expected);
5215 }
5216
5217 #[test]
spec_test_348()5218 fn spec_test_348() {
5219 let original = r##"`foo
5220 "##;
5221 let expected = r##"<p>`foo</p>
5222 "##;
5223
5224 test_markdown_html(original, expected);
5225 }
5226
5227 #[test]
spec_test_349()5228 fn spec_test_349() {
5229 let original = r##"`foo``bar``
5230 "##;
5231 let expected = r##"<p>`foo<code>bar</code></p>
5232 "##;
5233
5234 test_markdown_html(original, expected);
5235 }
5236
5237 #[test]
spec_test_350()5238 fn spec_test_350() {
5239 let original = r##"*foo bar*
5240 "##;
5241 let expected = r##"<p><em>foo bar</em></p>
5242 "##;
5243
5244 test_markdown_html(original, expected);
5245 }
5246
5247 #[test]
spec_test_351()5248 fn spec_test_351() {
5249 let original = r##"a * foo bar*
5250 "##;
5251 let expected = r##"<p>a * foo bar*</p>
5252 "##;
5253
5254 test_markdown_html(original, expected);
5255 }
5256
5257 #[test]
spec_test_352()5258 fn spec_test_352() {
5259 let original = r##"a*"foo"*
5260 "##;
5261 let expected = r##"<p>a*"foo"*</p>
5262 "##;
5263
5264 test_markdown_html(original, expected);
5265 }
5266
5267 #[test]
spec_test_353()5268 fn spec_test_353() {
5269 let original = r##"* a *
5270 "##;
5271 let expected = r##"<p>* a *</p>
5272 "##;
5273
5274 test_markdown_html(original, expected);
5275 }
5276
5277 #[test]
spec_test_354()5278 fn spec_test_354() {
5279 let original = r##"foo*bar*
5280 "##;
5281 let expected = r##"<p>foo<em>bar</em></p>
5282 "##;
5283
5284 test_markdown_html(original, expected);
5285 }
5286
5287 #[test]
spec_test_355()5288 fn spec_test_355() {
5289 let original = r##"5*6*78
5290 "##;
5291 let expected = r##"<p>5<em>6</em>78</p>
5292 "##;
5293
5294 test_markdown_html(original, expected);
5295 }
5296
5297 #[test]
spec_test_356()5298 fn spec_test_356() {
5299 let original = r##"_foo bar_
5300 "##;
5301 let expected = r##"<p><em>foo bar</em></p>
5302 "##;
5303
5304 test_markdown_html(original, expected);
5305 }
5306
5307 #[test]
spec_test_357()5308 fn spec_test_357() {
5309 let original = r##"_ foo bar_
5310 "##;
5311 let expected = r##"<p>_ foo bar_</p>
5312 "##;
5313
5314 test_markdown_html(original, expected);
5315 }
5316
5317 #[test]
spec_test_358()5318 fn spec_test_358() {
5319 let original = r##"a_"foo"_
5320 "##;
5321 let expected = r##"<p>a_"foo"_</p>
5322 "##;
5323
5324 test_markdown_html(original, expected);
5325 }
5326
5327 #[test]
spec_test_359()5328 fn spec_test_359() {
5329 let original = r##"foo_bar_
5330 "##;
5331 let expected = r##"<p>foo_bar_</p>
5332 "##;
5333
5334 test_markdown_html(original, expected);
5335 }
5336
5337 #[test]
spec_test_360()5338 fn spec_test_360() {
5339 let original = r##"5_6_78
5340 "##;
5341 let expected = r##"<p>5_6_78</p>
5342 "##;
5343
5344 test_markdown_html(original, expected);
5345 }
5346
5347 #[test]
spec_test_361()5348 fn spec_test_361() {
5349 let original = r##"пристаням_стремятся_
5350 "##;
5351 let expected = r##"<p>пристаням_стремятся_</p>
5352 "##;
5353
5354 test_markdown_html(original, expected);
5355 }
5356
5357 #[test]
spec_test_362()5358 fn spec_test_362() {
5359 let original = r##"aa_"bb"_cc
5360 "##;
5361 let expected = r##"<p>aa_"bb"_cc</p>
5362 "##;
5363
5364 test_markdown_html(original, expected);
5365 }
5366
5367 #[test]
spec_test_363()5368 fn spec_test_363() {
5369 let original = r##"foo-_(bar)_
5370 "##;
5371 let expected = r##"<p>foo-<em>(bar)</em></p>
5372 "##;
5373
5374 test_markdown_html(original, expected);
5375 }
5376
5377 #[test]
spec_test_364()5378 fn spec_test_364() {
5379 let original = r##"_foo*
5380 "##;
5381 let expected = r##"<p>_foo*</p>
5382 "##;
5383
5384 test_markdown_html(original, expected);
5385 }
5386
5387 #[test]
spec_test_365()5388 fn spec_test_365() {
5389 let original = r##"*foo bar *
5390 "##;
5391 let expected = r##"<p>*foo bar *</p>
5392 "##;
5393
5394 test_markdown_html(original, expected);
5395 }
5396
5397 #[test]
spec_test_366()5398 fn spec_test_366() {
5399 let original = r##"*foo bar
5400 *
5401 "##;
5402 let expected = r##"<p>*foo bar
5403 *</p>
5404 "##;
5405
5406 test_markdown_html(original, expected);
5407 }
5408
5409 #[test]
spec_test_367()5410 fn spec_test_367() {
5411 let original = r##"*(*foo)
5412 "##;
5413 let expected = r##"<p>*(*foo)</p>
5414 "##;
5415
5416 test_markdown_html(original, expected);
5417 }
5418
5419 #[test]
spec_test_368()5420 fn spec_test_368() {
5421 let original = r##"*(*foo*)*
5422 "##;
5423 let expected = r##"<p><em>(<em>foo</em>)</em></p>
5424 "##;
5425
5426 test_markdown_html(original, expected);
5427 }
5428
5429 #[test]
spec_test_369()5430 fn spec_test_369() {
5431 let original = r##"*foo*bar
5432 "##;
5433 let expected = r##"<p><em>foo</em>bar</p>
5434 "##;
5435
5436 test_markdown_html(original, expected);
5437 }
5438
5439 #[test]
spec_test_370()5440 fn spec_test_370() {
5441 let original = r##"_foo bar _
5442 "##;
5443 let expected = r##"<p>_foo bar _</p>
5444 "##;
5445
5446 test_markdown_html(original, expected);
5447 }
5448
5449 #[test]
spec_test_371()5450 fn spec_test_371() {
5451 let original = r##"_(_foo)
5452 "##;
5453 let expected = r##"<p>_(_foo)</p>
5454 "##;
5455
5456 test_markdown_html(original, expected);
5457 }
5458
5459 #[test]
spec_test_372()5460 fn spec_test_372() {
5461 let original = r##"_(_foo_)_
5462 "##;
5463 let expected = r##"<p><em>(<em>foo</em>)</em></p>
5464 "##;
5465
5466 test_markdown_html(original, expected);
5467 }
5468
5469 #[test]
spec_test_373()5470 fn spec_test_373() {
5471 let original = r##"_foo_bar
5472 "##;
5473 let expected = r##"<p>_foo_bar</p>
5474 "##;
5475
5476 test_markdown_html(original, expected);
5477 }
5478
5479 #[test]
spec_test_374()5480 fn spec_test_374() {
5481 let original = r##"_пристаням_стремятся
5482 "##;
5483 let expected = r##"<p>_пристаням_стремятся</p>
5484 "##;
5485
5486 test_markdown_html(original, expected);
5487 }
5488
5489 #[test]
spec_test_375()5490 fn spec_test_375() {
5491 let original = r##"_foo_bar_baz_
5492 "##;
5493 let expected = r##"<p><em>foo_bar_baz</em></p>
5494 "##;
5495
5496 test_markdown_html(original, expected);
5497 }
5498
5499 #[test]
spec_test_376()5500 fn spec_test_376() {
5501 let original = r##"_(bar)_.
5502 "##;
5503 let expected = r##"<p><em>(bar)</em>.</p>
5504 "##;
5505
5506 test_markdown_html(original, expected);
5507 }
5508
5509 #[test]
spec_test_377()5510 fn spec_test_377() {
5511 let original = r##"**foo bar**
5512 "##;
5513 let expected = r##"<p><strong>foo bar</strong></p>
5514 "##;
5515
5516 test_markdown_html(original, expected);
5517 }
5518
5519 #[test]
spec_test_378()5520 fn spec_test_378() {
5521 let original = r##"** foo bar**
5522 "##;
5523 let expected = r##"<p>** foo bar**</p>
5524 "##;
5525
5526 test_markdown_html(original, expected);
5527 }
5528
5529 #[test]
spec_test_379()5530 fn spec_test_379() {
5531 let original = r##"a**"foo"**
5532 "##;
5533 let expected = r##"<p>a**"foo"**</p>
5534 "##;
5535
5536 test_markdown_html(original, expected);
5537 }
5538
5539 #[test]
spec_test_380()5540 fn spec_test_380() {
5541 let original = r##"foo**bar**
5542 "##;
5543 let expected = r##"<p>foo<strong>bar</strong></p>
5544 "##;
5545
5546 test_markdown_html(original, expected);
5547 }
5548
5549 #[test]
spec_test_381()5550 fn spec_test_381() {
5551 let original = r##"__foo bar__
5552 "##;
5553 let expected = r##"<p><strong>foo bar</strong></p>
5554 "##;
5555
5556 test_markdown_html(original, expected);
5557 }
5558
5559 #[test]
spec_test_382()5560 fn spec_test_382() {
5561 let original = r##"__ foo bar__
5562 "##;
5563 let expected = r##"<p>__ foo bar__</p>
5564 "##;
5565
5566 test_markdown_html(original, expected);
5567 }
5568
5569 #[test]
spec_test_383()5570 fn spec_test_383() {
5571 let original = r##"__
5572 foo bar__
5573 "##;
5574 let expected = r##"<p>__
5575 foo bar__</p>
5576 "##;
5577
5578 test_markdown_html(original, expected);
5579 }
5580
5581 #[test]
spec_test_384()5582 fn spec_test_384() {
5583 let original = r##"a__"foo"__
5584 "##;
5585 let expected = r##"<p>a__"foo"__</p>
5586 "##;
5587
5588 test_markdown_html(original, expected);
5589 }
5590
5591 #[test]
spec_test_385()5592 fn spec_test_385() {
5593 let original = r##"foo__bar__
5594 "##;
5595 let expected = r##"<p>foo__bar__</p>
5596 "##;
5597
5598 test_markdown_html(original, expected);
5599 }
5600
5601 #[test]
spec_test_386()5602 fn spec_test_386() {
5603 let original = r##"5__6__78
5604 "##;
5605 let expected = r##"<p>5__6__78</p>
5606 "##;
5607
5608 test_markdown_html(original, expected);
5609 }
5610
5611 #[test]
spec_test_387()5612 fn spec_test_387() {
5613 let original = r##"пристаням__стремятся__
5614 "##;
5615 let expected = r##"<p>пристаням__стремятся__</p>
5616 "##;
5617
5618 test_markdown_html(original, expected);
5619 }
5620
5621 #[test]
spec_test_388()5622 fn spec_test_388() {
5623 let original = r##"__foo, __bar__, baz__
5624 "##;
5625 let expected = r##"<p><strong>foo, <strong>bar</strong>, baz</strong></p>
5626 "##;
5627
5628 test_markdown_html(original, expected);
5629 }
5630
5631 #[test]
spec_test_389()5632 fn spec_test_389() {
5633 let original = r##"foo-__(bar)__
5634 "##;
5635 let expected = r##"<p>foo-<strong>(bar)</strong></p>
5636 "##;
5637
5638 test_markdown_html(original, expected);
5639 }
5640
5641 #[test]
spec_test_390()5642 fn spec_test_390() {
5643 let original = r##"**foo bar **
5644 "##;
5645 let expected = r##"<p>**foo bar **</p>
5646 "##;
5647
5648 test_markdown_html(original, expected);
5649 }
5650
5651 #[test]
spec_test_391()5652 fn spec_test_391() {
5653 let original = r##"**(**foo)
5654 "##;
5655 let expected = r##"<p>**(**foo)</p>
5656 "##;
5657
5658 test_markdown_html(original, expected);
5659 }
5660
5661 #[test]
spec_test_392()5662 fn spec_test_392() {
5663 let original = r##"*(**foo**)*
5664 "##;
5665 let expected = r##"<p><em>(<strong>foo</strong>)</em></p>
5666 "##;
5667
5668 test_markdown_html(original, expected);
5669 }
5670
5671 #[test]
spec_test_393()5672 fn spec_test_393() {
5673 let original = r##"**Gomphocarpus (*Gomphocarpus physocarpus*, syn.
5674 *Asclepias physocarpa*)**
5675 "##;
5676 let expected = r##"<p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn.
5677 <em>Asclepias physocarpa</em>)</strong></p>
5678 "##;
5679
5680 test_markdown_html(original, expected);
5681 }
5682
5683 #[test]
spec_test_394()5684 fn spec_test_394() {
5685 let original = r##"**foo "*bar*" foo**
5686 "##;
5687 let expected = r##"<p><strong>foo "<em>bar</em>" foo</strong></p>
5688 "##;
5689
5690 test_markdown_html(original, expected);
5691 }
5692
5693 #[test]
spec_test_395()5694 fn spec_test_395() {
5695 let original = r##"**foo**bar
5696 "##;
5697 let expected = r##"<p><strong>foo</strong>bar</p>
5698 "##;
5699
5700 test_markdown_html(original, expected);
5701 }
5702
5703 #[test]
spec_test_396()5704 fn spec_test_396() {
5705 let original = r##"__foo bar __
5706 "##;
5707 let expected = r##"<p>__foo bar __</p>
5708 "##;
5709
5710 test_markdown_html(original, expected);
5711 }
5712
5713 #[test]
spec_test_397()5714 fn spec_test_397() {
5715 let original = r##"__(__foo)
5716 "##;
5717 let expected = r##"<p>__(__foo)</p>
5718 "##;
5719
5720 test_markdown_html(original, expected);
5721 }
5722
5723 #[test]
spec_test_398()5724 fn spec_test_398() {
5725 let original = r##"_(__foo__)_
5726 "##;
5727 let expected = r##"<p><em>(<strong>foo</strong>)</em></p>
5728 "##;
5729
5730 test_markdown_html(original, expected);
5731 }
5732
5733 #[test]
spec_test_399()5734 fn spec_test_399() {
5735 let original = r##"__foo__bar
5736 "##;
5737 let expected = r##"<p>__foo__bar</p>
5738 "##;
5739
5740 test_markdown_html(original, expected);
5741 }
5742
5743 #[test]
spec_test_400()5744 fn spec_test_400() {
5745 let original = r##"__пристаням__стремятся
5746 "##;
5747 let expected = r##"<p>__пристаням__стремятся</p>
5748 "##;
5749
5750 test_markdown_html(original, expected);
5751 }
5752
5753 #[test]
spec_test_401()5754 fn spec_test_401() {
5755 let original = r##"__foo__bar__baz__
5756 "##;
5757 let expected = r##"<p><strong>foo__bar__baz</strong></p>
5758 "##;
5759
5760 test_markdown_html(original, expected);
5761 }
5762
5763 #[test]
spec_test_402()5764 fn spec_test_402() {
5765 let original = r##"__(bar)__.
5766 "##;
5767 let expected = r##"<p><strong>(bar)</strong>.</p>
5768 "##;
5769
5770 test_markdown_html(original, expected);
5771 }
5772
5773 #[test]
spec_test_403()5774 fn spec_test_403() {
5775 let original = r##"*foo [bar](/url)*
5776 "##;
5777 let expected = r##"<p><em>foo <a href="/url">bar</a></em></p>
5778 "##;
5779
5780 test_markdown_html(original, expected);
5781 }
5782
5783 #[test]
spec_test_404()5784 fn spec_test_404() {
5785 let original = r##"*foo
5786 bar*
5787 "##;
5788 let expected = r##"<p><em>foo
5789 bar</em></p>
5790 "##;
5791
5792 test_markdown_html(original, expected);
5793 }
5794
5795 #[test]
spec_test_405()5796 fn spec_test_405() {
5797 let original = r##"_foo __bar__ baz_
5798 "##;
5799 let expected = r##"<p><em>foo <strong>bar</strong> baz</em></p>
5800 "##;
5801
5802 test_markdown_html(original, expected);
5803 }
5804
5805 #[test]
spec_test_406()5806 fn spec_test_406() {
5807 let original = r##"_foo _bar_ baz_
5808 "##;
5809 let expected = r##"<p><em>foo <em>bar</em> baz</em></p>
5810 "##;
5811
5812 test_markdown_html(original, expected);
5813 }
5814
5815 #[test]
spec_test_407()5816 fn spec_test_407() {
5817 let original = r##"__foo_ bar_
5818 "##;
5819 let expected = r##"<p><em><em>foo</em> bar</em></p>
5820 "##;
5821
5822 test_markdown_html(original, expected);
5823 }
5824
5825 #[test]
spec_test_408()5826 fn spec_test_408() {
5827 let original = r##"*foo *bar**
5828 "##;
5829 let expected = r##"<p><em>foo <em>bar</em></em></p>
5830 "##;
5831
5832 test_markdown_html(original, expected);
5833 }
5834
5835 #[test]
spec_test_409()5836 fn spec_test_409() {
5837 let original = r##"*foo **bar** baz*
5838 "##;
5839 let expected = r##"<p><em>foo <strong>bar</strong> baz</em></p>
5840 "##;
5841
5842 test_markdown_html(original, expected);
5843 }
5844
5845 #[test]
spec_test_410()5846 fn spec_test_410() {
5847 let original = r##"*foo**bar**baz*
5848 "##;
5849 let expected = r##"<p><em>foo<strong>bar</strong>baz</em></p>
5850 "##;
5851
5852 test_markdown_html(original, expected);
5853 }
5854
5855 #[test]
spec_test_411()5856 fn spec_test_411() {
5857 let original = r##"*foo**bar*
5858 "##;
5859 let expected = r##"<p><em>foo**bar</em></p>
5860 "##;
5861
5862 test_markdown_html(original, expected);
5863 }
5864
5865 #[test]
spec_test_412()5866 fn spec_test_412() {
5867 let original = r##"***foo** bar*
5868 "##;
5869 let expected = r##"<p><em><strong>foo</strong> bar</em></p>
5870 "##;
5871
5872 test_markdown_html(original, expected);
5873 }
5874
5875 #[test]
spec_test_413()5876 fn spec_test_413() {
5877 let original = r##"*foo **bar***
5878 "##;
5879 let expected = r##"<p><em>foo <strong>bar</strong></em></p>
5880 "##;
5881
5882 test_markdown_html(original, expected);
5883 }
5884
5885 #[test]
spec_test_414()5886 fn spec_test_414() {
5887 let original = r##"*foo**bar***
5888 "##;
5889 let expected = r##"<p><em>foo<strong>bar</strong></em></p>
5890 "##;
5891
5892 test_markdown_html(original, expected);
5893 }
5894
5895 #[test]
spec_test_415()5896 fn spec_test_415() {
5897 let original = r##"foo***bar***baz
5898 "##;
5899 let expected = r##"<p>foo<em><strong>bar</strong></em>baz</p>
5900 "##;
5901
5902 test_markdown_html(original, expected);
5903 }
5904
5905 #[test]
spec_test_416()5906 fn spec_test_416() {
5907 let original = r##"foo******bar*********baz
5908 "##;
5909 let expected = r##"<p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p>
5910 "##;
5911
5912 test_markdown_html(original, expected);
5913 }
5914
5915 #[test]
spec_test_417()5916 fn spec_test_417() {
5917 let original = r##"*foo **bar *baz* bim** bop*
5918 "##;
5919 let expected = r##"<p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p>
5920 "##;
5921
5922 test_markdown_html(original, expected);
5923 }
5924
5925 #[test]
spec_test_418()5926 fn spec_test_418() {
5927 let original = r##"*foo [*bar*](/url)*
5928 "##;
5929 let expected = r##"<p><em>foo <a href="/url"><em>bar</em></a></em></p>
5930 "##;
5931
5932 test_markdown_html(original, expected);
5933 }
5934
5935 #[test]
spec_test_419()5936 fn spec_test_419() {
5937 let original = r##"** is not an empty emphasis
5938 "##;
5939 let expected = r##"<p>** is not an empty emphasis</p>
5940 "##;
5941
5942 test_markdown_html(original, expected);
5943 }
5944
5945 #[test]
spec_test_420()5946 fn spec_test_420() {
5947 let original = r##"**** is not an empty strong emphasis
5948 "##;
5949 let expected = r##"<p>**** is not an empty strong emphasis</p>
5950 "##;
5951
5952 test_markdown_html(original, expected);
5953 }
5954
5955 #[test]
spec_test_421()5956 fn spec_test_421() {
5957 let original = r##"**foo [bar](/url)**
5958 "##;
5959 let expected = r##"<p><strong>foo <a href="/url">bar</a></strong></p>
5960 "##;
5961
5962 test_markdown_html(original, expected);
5963 }
5964
5965 #[test]
spec_test_422()5966 fn spec_test_422() {
5967 let original = r##"**foo
5968 bar**
5969 "##;
5970 let expected = r##"<p><strong>foo
5971 bar</strong></p>
5972 "##;
5973
5974 test_markdown_html(original, expected);
5975 }
5976
5977 #[test]
spec_test_423()5978 fn spec_test_423() {
5979 let original = r##"__foo _bar_ baz__
5980 "##;
5981 let expected = r##"<p><strong>foo <em>bar</em> baz</strong></p>
5982 "##;
5983
5984 test_markdown_html(original, expected);
5985 }
5986
5987 #[test]
spec_test_424()5988 fn spec_test_424() {
5989 let original = r##"__foo __bar__ baz__
5990 "##;
5991 let expected = r##"<p><strong>foo <strong>bar</strong> baz</strong></p>
5992 "##;
5993
5994 test_markdown_html(original, expected);
5995 }
5996
5997 #[test]
spec_test_425()5998 fn spec_test_425() {
5999 let original = r##"____foo__ bar__
6000 "##;
6001 let expected = r##"<p><strong><strong>foo</strong> bar</strong></p>
6002 "##;
6003
6004 test_markdown_html(original, expected);
6005 }
6006
6007 #[test]
spec_test_426()6008 fn spec_test_426() {
6009 let original = r##"**foo **bar****
6010 "##;
6011 let expected = r##"<p><strong>foo <strong>bar</strong></strong></p>
6012 "##;
6013
6014 test_markdown_html(original, expected);
6015 }
6016
6017 #[test]
spec_test_427()6018 fn spec_test_427() {
6019 let original = r##"**foo *bar* baz**
6020 "##;
6021 let expected = r##"<p><strong>foo <em>bar</em> baz</strong></p>
6022 "##;
6023
6024 test_markdown_html(original, expected);
6025 }
6026
6027 #[test]
spec_test_428()6028 fn spec_test_428() {
6029 let original = r##"**foo*bar*baz**
6030 "##;
6031 let expected = r##"<p><strong>foo<em>bar</em>baz</strong></p>
6032 "##;
6033
6034 test_markdown_html(original, expected);
6035 }
6036
6037 #[test]
spec_test_429()6038 fn spec_test_429() {
6039 let original = r##"***foo* bar**
6040 "##;
6041 let expected = r##"<p><strong><em>foo</em> bar</strong></p>
6042 "##;
6043
6044 test_markdown_html(original, expected);
6045 }
6046
6047 #[test]
spec_test_430()6048 fn spec_test_430() {
6049 let original = r##"**foo *bar***
6050 "##;
6051 let expected = r##"<p><strong>foo <em>bar</em></strong></p>
6052 "##;
6053
6054 test_markdown_html(original, expected);
6055 }
6056
6057 #[test]
spec_test_431()6058 fn spec_test_431() {
6059 let original = r##"**foo *bar **baz**
6060 bim* bop**
6061 "##;
6062 let expected = r##"<p><strong>foo <em>bar <strong>baz</strong>
6063 bim</em> bop</strong></p>
6064 "##;
6065
6066 test_markdown_html(original, expected);
6067 }
6068
6069 #[test]
spec_test_432()6070 fn spec_test_432() {
6071 let original = r##"**foo [*bar*](/url)**
6072 "##;
6073 let expected = r##"<p><strong>foo <a href="/url"><em>bar</em></a></strong></p>
6074 "##;
6075
6076 test_markdown_html(original, expected);
6077 }
6078
6079 #[test]
spec_test_433()6080 fn spec_test_433() {
6081 let original = r##"__ is not an empty emphasis
6082 "##;
6083 let expected = r##"<p>__ is not an empty emphasis</p>
6084 "##;
6085
6086 test_markdown_html(original, expected);
6087 }
6088
6089 #[test]
spec_test_434()6090 fn spec_test_434() {
6091 let original = r##"____ is not an empty strong emphasis
6092 "##;
6093 let expected = r##"<p>____ is not an empty strong emphasis</p>
6094 "##;
6095
6096 test_markdown_html(original, expected);
6097 }
6098
6099 #[test]
spec_test_435()6100 fn spec_test_435() {
6101 let original = r##"foo ***
6102 "##;
6103 let expected = r##"<p>foo ***</p>
6104 "##;
6105
6106 test_markdown_html(original, expected);
6107 }
6108
6109 #[test]
spec_test_436()6110 fn spec_test_436() {
6111 let original = r##"foo *\**
6112 "##;
6113 let expected = r##"<p>foo <em>*</em></p>
6114 "##;
6115
6116 test_markdown_html(original, expected);
6117 }
6118
6119 #[test]
spec_test_437()6120 fn spec_test_437() {
6121 let original = r##"foo *_*
6122 "##;
6123 let expected = r##"<p>foo <em>_</em></p>
6124 "##;
6125
6126 test_markdown_html(original, expected);
6127 }
6128
6129 #[test]
spec_test_438()6130 fn spec_test_438() {
6131 let original = r##"foo *****
6132 "##;
6133 let expected = r##"<p>foo *****</p>
6134 "##;
6135
6136 test_markdown_html(original, expected);
6137 }
6138
6139 #[test]
spec_test_439()6140 fn spec_test_439() {
6141 let original = r##"foo **\***
6142 "##;
6143 let expected = r##"<p>foo <strong>*</strong></p>
6144 "##;
6145
6146 test_markdown_html(original, expected);
6147 }
6148
6149 #[test]
spec_test_440()6150 fn spec_test_440() {
6151 let original = r##"foo **_**
6152 "##;
6153 let expected = r##"<p>foo <strong>_</strong></p>
6154 "##;
6155
6156 test_markdown_html(original, expected);
6157 }
6158
6159 #[test]
spec_test_441()6160 fn spec_test_441() {
6161 let original = r##"**foo*
6162 "##;
6163 let expected = r##"<p>*<em>foo</em></p>
6164 "##;
6165
6166 test_markdown_html(original, expected);
6167 }
6168
6169 #[test]
spec_test_442()6170 fn spec_test_442() {
6171 let original = r##"*foo**
6172 "##;
6173 let expected = r##"<p><em>foo</em>*</p>
6174 "##;
6175
6176 test_markdown_html(original, expected);
6177 }
6178
6179 #[test]
spec_test_443()6180 fn spec_test_443() {
6181 let original = r##"***foo**
6182 "##;
6183 let expected = r##"<p>*<strong>foo</strong></p>
6184 "##;
6185
6186 test_markdown_html(original, expected);
6187 }
6188
6189 #[test]
spec_test_444()6190 fn spec_test_444() {
6191 let original = r##"****foo*
6192 "##;
6193 let expected = r##"<p>***<em>foo</em></p>
6194 "##;
6195
6196 test_markdown_html(original, expected);
6197 }
6198
6199 #[test]
spec_test_445()6200 fn spec_test_445() {
6201 let original = r##"**foo***
6202 "##;
6203 let expected = r##"<p><strong>foo</strong>*</p>
6204 "##;
6205
6206 test_markdown_html(original, expected);
6207 }
6208
6209 #[test]
spec_test_446()6210 fn spec_test_446() {
6211 let original = r##"*foo****
6212 "##;
6213 let expected = r##"<p><em>foo</em>***</p>
6214 "##;
6215
6216 test_markdown_html(original, expected);
6217 }
6218
6219 #[test]
spec_test_447()6220 fn spec_test_447() {
6221 let original = r##"foo ___
6222 "##;
6223 let expected = r##"<p>foo ___</p>
6224 "##;
6225
6226 test_markdown_html(original, expected);
6227 }
6228
6229 #[test]
spec_test_448()6230 fn spec_test_448() {
6231 let original = r##"foo _\__
6232 "##;
6233 let expected = r##"<p>foo <em>_</em></p>
6234 "##;
6235
6236 test_markdown_html(original, expected);
6237 }
6238
6239 #[test]
spec_test_449()6240 fn spec_test_449() {
6241 let original = r##"foo _*_
6242 "##;
6243 let expected = r##"<p>foo <em>*</em></p>
6244 "##;
6245
6246 test_markdown_html(original, expected);
6247 }
6248
6249 #[test]
spec_test_450()6250 fn spec_test_450() {
6251 let original = r##"foo _____
6252 "##;
6253 let expected = r##"<p>foo _____</p>
6254 "##;
6255
6256 test_markdown_html(original, expected);
6257 }
6258
6259 #[test]
spec_test_451()6260 fn spec_test_451() {
6261 let original = r##"foo __\___
6262 "##;
6263 let expected = r##"<p>foo <strong>_</strong></p>
6264 "##;
6265
6266 test_markdown_html(original, expected);
6267 }
6268
6269 #[test]
spec_test_452()6270 fn spec_test_452() {
6271 let original = r##"foo __*__
6272 "##;
6273 let expected = r##"<p>foo <strong>*</strong></p>
6274 "##;
6275
6276 test_markdown_html(original, expected);
6277 }
6278
6279 #[test]
spec_test_453()6280 fn spec_test_453() {
6281 let original = r##"__foo_
6282 "##;
6283 let expected = r##"<p>_<em>foo</em></p>
6284 "##;
6285
6286 test_markdown_html(original, expected);
6287 }
6288
6289 #[test]
spec_test_454()6290 fn spec_test_454() {
6291 let original = r##"_foo__
6292 "##;
6293 let expected = r##"<p><em>foo</em>_</p>
6294 "##;
6295
6296 test_markdown_html(original, expected);
6297 }
6298
6299 #[test]
spec_test_455()6300 fn spec_test_455() {
6301 let original = r##"___foo__
6302 "##;
6303 let expected = r##"<p>_<strong>foo</strong></p>
6304 "##;
6305
6306 test_markdown_html(original, expected);
6307 }
6308
6309 #[test]
spec_test_456()6310 fn spec_test_456() {
6311 let original = r##"____foo_
6312 "##;
6313 let expected = r##"<p>___<em>foo</em></p>
6314 "##;
6315
6316 test_markdown_html(original, expected);
6317 }
6318
6319 #[test]
spec_test_457()6320 fn spec_test_457() {
6321 let original = r##"__foo___
6322 "##;
6323 let expected = r##"<p><strong>foo</strong>_</p>
6324 "##;
6325
6326 test_markdown_html(original, expected);
6327 }
6328
6329 #[test]
spec_test_458()6330 fn spec_test_458() {
6331 let original = r##"_foo____
6332 "##;
6333 let expected = r##"<p><em>foo</em>___</p>
6334 "##;
6335
6336 test_markdown_html(original, expected);
6337 }
6338
6339 #[test]
spec_test_459()6340 fn spec_test_459() {
6341 let original = r##"**foo**
6342 "##;
6343 let expected = r##"<p><strong>foo</strong></p>
6344 "##;
6345
6346 test_markdown_html(original, expected);
6347 }
6348
6349 #[test]
spec_test_460()6350 fn spec_test_460() {
6351 let original = r##"*_foo_*
6352 "##;
6353 let expected = r##"<p><em><em>foo</em></em></p>
6354 "##;
6355
6356 test_markdown_html(original, expected);
6357 }
6358
6359 #[test]
spec_test_461()6360 fn spec_test_461() {
6361 let original = r##"__foo__
6362 "##;
6363 let expected = r##"<p><strong>foo</strong></p>
6364 "##;
6365
6366 test_markdown_html(original, expected);
6367 }
6368
6369 #[test]
spec_test_462()6370 fn spec_test_462() {
6371 let original = r##"_*foo*_
6372 "##;
6373 let expected = r##"<p><em><em>foo</em></em></p>
6374 "##;
6375
6376 test_markdown_html(original, expected);
6377 }
6378
6379 #[test]
spec_test_463()6380 fn spec_test_463() {
6381 let original = r##"****foo****
6382 "##;
6383 let expected = r##"<p><strong><strong>foo</strong></strong></p>
6384 "##;
6385
6386 test_markdown_html(original, expected);
6387 }
6388
6389 #[test]
spec_test_464()6390 fn spec_test_464() {
6391 let original = r##"____foo____
6392 "##;
6393 let expected = r##"<p><strong><strong>foo</strong></strong></p>
6394 "##;
6395
6396 test_markdown_html(original, expected);
6397 }
6398
6399 #[test]
spec_test_465()6400 fn spec_test_465() {
6401 let original = r##"******foo******
6402 "##;
6403 let expected = r##"<p><strong><strong><strong>foo</strong></strong></strong></p>
6404 "##;
6405
6406 test_markdown_html(original, expected);
6407 }
6408
6409 #[test]
spec_test_466()6410 fn spec_test_466() {
6411 let original = r##"***foo***
6412 "##;
6413 let expected = r##"<p><em><strong>foo</strong></em></p>
6414 "##;
6415
6416 test_markdown_html(original, expected);
6417 }
6418
6419 #[test]
spec_test_467()6420 fn spec_test_467() {
6421 let original = r##"_____foo_____
6422 "##;
6423 let expected = r##"<p><em><strong><strong>foo</strong></strong></em></p>
6424 "##;
6425
6426 test_markdown_html(original, expected);
6427 }
6428
6429 #[test]
spec_test_468()6430 fn spec_test_468() {
6431 let original = r##"*foo _bar* baz_
6432 "##;
6433 let expected = r##"<p><em>foo _bar</em> baz_</p>
6434 "##;
6435
6436 test_markdown_html(original, expected);
6437 }
6438
6439 #[test]
spec_test_469()6440 fn spec_test_469() {
6441 let original = r##"*foo __bar *baz bim__ bam*
6442 "##;
6443 let expected = r##"<p><em>foo <strong>bar *baz bim</strong> bam</em></p>
6444 "##;
6445
6446 test_markdown_html(original, expected);
6447 }
6448
6449 #[test]
spec_test_470()6450 fn spec_test_470() {
6451 let original = r##"**foo **bar baz**
6452 "##;
6453 let expected = r##"<p>**foo <strong>bar baz</strong></p>
6454 "##;
6455
6456 test_markdown_html(original, expected);
6457 }
6458
6459 #[test]
spec_test_471()6460 fn spec_test_471() {
6461 let original = r##"*foo *bar baz*
6462 "##;
6463 let expected = r##"<p>*foo <em>bar baz</em></p>
6464 "##;
6465
6466 test_markdown_html(original, expected);
6467 }
6468
6469 #[test]
spec_test_472()6470 fn spec_test_472() {
6471 let original = r##"*[bar*](/url)
6472 "##;
6473 let expected = r##"<p>*<a href="/url">bar*</a></p>
6474 "##;
6475
6476 test_markdown_html(original, expected);
6477 }
6478
6479 #[test]
spec_test_473()6480 fn spec_test_473() {
6481 let original = r##"_foo [bar_](/url)
6482 "##;
6483 let expected = r##"<p>_foo <a href="/url">bar_</a></p>
6484 "##;
6485
6486 test_markdown_html(original, expected);
6487 }
6488
6489 #[test]
spec_test_474()6490 fn spec_test_474() {
6491 let original = r##"*<img src="foo" title="*"/>
6492 "##;
6493 let expected = r##"<p>*<img src="foo" title="*"/></p>
6494 "##;
6495
6496 test_markdown_html(original, expected);
6497 }
6498
6499 #[test]
spec_test_475()6500 fn spec_test_475() {
6501 let original = r##"**<a href="**">
6502 "##;
6503 let expected = r##"<p>**<a href="**"></p>
6504 "##;
6505
6506 test_markdown_html(original, expected);
6507 }
6508
6509 #[test]
spec_test_476()6510 fn spec_test_476() {
6511 let original = r##"__<a href="__">
6512 "##;
6513 let expected = r##"<p>__<a href="__"></p>
6514 "##;
6515
6516 test_markdown_html(original, expected);
6517 }
6518
6519 #[test]
spec_test_477()6520 fn spec_test_477() {
6521 let original = r##"*a `*`*
6522 "##;
6523 let expected = r##"<p><em>a <code>*</code></em></p>
6524 "##;
6525
6526 test_markdown_html(original, expected);
6527 }
6528
6529 #[test]
spec_test_478()6530 fn spec_test_478() {
6531 let original = r##"_a `_`_
6532 "##;
6533 let expected = r##"<p><em>a <code>_</code></em></p>
6534 "##;
6535
6536 test_markdown_html(original, expected);
6537 }
6538
6539 #[test]
spec_test_479()6540 fn spec_test_479() {
6541 let original = r##"**a<http://foo.bar/?q=**>
6542 "##;
6543 let expected = r##"<p>**a<a href="http://foo.bar/?q=**">http://foo.bar/?q=**</a></p>
6544 "##;
6545
6546 test_markdown_html(original, expected);
6547 }
6548
6549 #[test]
spec_test_480()6550 fn spec_test_480() {
6551 let original = r##"__a<http://foo.bar/?q=__>
6552 "##;
6553 let expected = r##"<p>__a<a href="http://foo.bar/?q=__">http://foo.bar/?q=__</a></p>
6554 "##;
6555
6556 test_markdown_html(original, expected);
6557 }
6558
6559 #[test]
spec_test_481()6560 fn spec_test_481() {
6561 let original = r##"[link](/uri "title")
6562 "##;
6563 let expected = r##"<p><a href="/uri" title="title">link</a></p>
6564 "##;
6565
6566 test_markdown_html(original, expected);
6567 }
6568
6569 #[test]
spec_test_482()6570 fn spec_test_482() {
6571 let original = r##"[link](/uri)
6572 "##;
6573 let expected = r##"<p><a href="/uri">link</a></p>
6574 "##;
6575
6576 test_markdown_html(original, expected);
6577 }
6578
6579 #[test]
spec_test_483()6580 fn spec_test_483() {
6581 let original = r##"[link]()
6582 "##;
6583 let expected = r##"<p><a href="">link</a></p>
6584 "##;
6585
6586 test_markdown_html(original, expected);
6587 }
6588
6589 #[test]
spec_test_484()6590 fn spec_test_484() {
6591 let original = r##"[link](<>)
6592 "##;
6593 let expected = r##"<p><a href="">link</a></p>
6594 "##;
6595
6596 test_markdown_html(original, expected);
6597 }
6598
6599 #[test]
spec_test_485()6600 fn spec_test_485() {
6601 let original = r##"[link](/my uri)
6602 "##;
6603 let expected = r##"<p>[link](/my uri)</p>
6604 "##;
6605
6606 test_markdown_html(original, expected);
6607 }
6608
6609 #[test]
spec_test_486()6610 fn spec_test_486() {
6611 let original = r##"[link](</my uri>)
6612 "##;
6613 let expected = r##"<p><a href="/my%20uri">link</a></p>
6614 "##;
6615
6616 test_markdown_html(original, expected);
6617 }
6618
6619 #[test]
spec_test_487()6620 fn spec_test_487() {
6621 let original = r##"[link](foo
6622 bar)
6623 "##;
6624 let expected = r##"<p>[link](foo
6625 bar)</p>
6626 "##;
6627
6628 test_markdown_html(original, expected);
6629 }
6630
6631 #[test]
spec_test_488()6632 fn spec_test_488() {
6633 let original = r##"[link](<foo
6634 bar>)
6635 "##;
6636 let expected = r##"<p>[link](<foo
6637 bar>)</p>
6638 "##;
6639
6640 test_markdown_html(original, expected);
6641 }
6642
6643 #[test]
spec_test_489()6644 fn spec_test_489() {
6645 let original = r##"[a](<b)c>)
6646 "##;
6647 let expected = r##"<p><a href="b)c">a</a></p>
6648 "##;
6649
6650 test_markdown_html(original, expected);
6651 }
6652
6653 #[test]
spec_test_490()6654 fn spec_test_490() {
6655 let original = r##"[link](<foo\>)
6656 "##;
6657 let expected = r##"<p>[link](<foo>)</p>
6658 "##;
6659
6660 test_markdown_html(original, expected);
6661 }
6662
6663 #[test]
spec_test_491()6664 fn spec_test_491() {
6665 let original = r##"[a](<b)c
6666 [a](<b)c>
6667 [a](<b>c)
6668 "##;
6669 let expected = r##"<p>[a](<b)c
6670 [a](<b)c>
6671 [a](<b>c)</p>
6672 "##;
6673
6674 test_markdown_html(original, expected);
6675 }
6676
6677 #[test]
spec_test_492()6678 fn spec_test_492() {
6679 let original = r##"[link](\(foo\))
6680 "##;
6681 let expected = r##"<p><a href="(foo)">link</a></p>
6682 "##;
6683
6684 test_markdown_html(original, expected);
6685 }
6686
6687 #[test]
spec_test_493()6688 fn spec_test_493() {
6689 let original = r##"[link](foo(and(bar)))
6690 "##;
6691 let expected = r##"<p><a href="foo(and(bar))">link</a></p>
6692 "##;
6693
6694 test_markdown_html(original, expected);
6695 }
6696
6697 #[test]
spec_test_494()6698 fn spec_test_494() {
6699 let original = r##"[link](foo\(and\(bar\))
6700 "##;
6701 let expected = r##"<p><a href="foo(and(bar)">link</a></p>
6702 "##;
6703
6704 test_markdown_html(original, expected);
6705 }
6706
6707 #[test]
spec_test_495()6708 fn spec_test_495() {
6709 let original = r##"[link](<foo(and(bar)>)
6710 "##;
6711 let expected = r##"<p><a href="foo(and(bar)">link</a></p>
6712 "##;
6713
6714 test_markdown_html(original, expected);
6715 }
6716
6717 #[test]
spec_test_496()6718 fn spec_test_496() {
6719 let original = r##"[link](foo\)\:)
6720 "##;
6721 let expected = r##"<p><a href="foo):">link</a></p>
6722 "##;
6723
6724 test_markdown_html(original, expected);
6725 }
6726
6727 #[test]
spec_test_497()6728 fn spec_test_497() {
6729 let original = r##"[link](#fragment)
6730
6731 [link](http://example.com#fragment)
6732
6733 [link](http://example.com?foo=3#frag)
6734 "##;
6735 let expected = r##"<p><a href="#fragment">link</a></p>
6736 <p><a href="http://example.com#fragment">link</a></p>
6737 <p><a href="http://example.com?foo=3#frag">link</a></p>
6738 "##;
6739
6740 test_markdown_html(original, expected);
6741 }
6742
6743 #[test]
spec_test_498()6744 fn spec_test_498() {
6745 let original = r##"[link](foo\bar)
6746 "##;
6747 let expected = r##"<p><a href="foo%5Cbar">link</a></p>
6748 "##;
6749
6750 test_markdown_html(original, expected);
6751 }
6752
6753 #[test]
spec_test_499()6754 fn spec_test_499() {
6755 let original = r##"[link](foo%20bä)
6756 "##;
6757 let expected = r##"<p><a href="foo%20b%C3%A4">link</a></p>
6758 "##;
6759
6760 test_markdown_html(original, expected);
6761 }
6762
6763 #[test]
spec_test_500()6764 fn spec_test_500() {
6765 let original = r##"[link]("title")
6766 "##;
6767 let expected = r##"<p><a href="%22title%22">link</a></p>
6768 "##;
6769
6770 test_markdown_html(original, expected);
6771 }
6772
6773 #[test]
spec_test_501()6774 fn spec_test_501() {
6775 let original = r##"[link](/url "title")
6776 [link](/url 'title')
6777 [link](/url (title))
6778 "##;
6779 let expected = r##"<p><a href="/url" title="title">link</a>
6780 <a href="/url" title="title">link</a>
6781 <a href="/url" title="title">link</a></p>
6782 "##;
6783
6784 test_markdown_html(original, expected);
6785 }
6786
6787 #[test]
spec_test_502()6788 fn spec_test_502() {
6789 let original = r##"[link](/url "title \""")
6790 "##;
6791 let expected = r##"<p><a href="/url" title="title """>link</a></p>
6792 "##;
6793
6794 test_markdown_html(original, expected);
6795 }
6796
6797 #[test]
spec_test_503()6798 fn spec_test_503() {
6799 let original = r##"[link](/url "title")
6800 "##;
6801 let expected = r##"<p><a href="/url%C2%A0%22title%22">link</a></p>
6802 "##;
6803
6804 test_markdown_html(original, expected);
6805 }
6806
6807 #[test]
spec_test_504()6808 fn spec_test_504() {
6809 let original = r##"[link](/url "title "and" title")
6810 "##;
6811 let expected = r##"<p>[link](/url "title "and" title")</p>
6812 "##;
6813
6814 test_markdown_html(original, expected);
6815 }
6816
6817 #[test]
spec_test_505()6818 fn spec_test_505() {
6819 let original = r##"[link](/url 'title "and" title')
6820 "##;
6821 let expected = r##"<p><a href="/url" title="title "and" title">link</a></p>
6822 "##;
6823
6824 test_markdown_html(original, expected);
6825 }
6826
6827 #[test]
spec_test_506()6828 fn spec_test_506() {
6829 let original = r##"[link]( /uri
6830 "title" )
6831 "##;
6832 let expected = r##"<p><a href="/uri" title="title">link</a></p>
6833 "##;
6834
6835 test_markdown_html(original, expected);
6836 }
6837
6838 #[test]
spec_test_507()6839 fn spec_test_507() {
6840 let original = r##"[link] (/uri)
6841 "##;
6842 let expected = r##"<p>[link] (/uri)</p>
6843 "##;
6844
6845 test_markdown_html(original, expected);
6846 }
6847
6848 #[test]
spec_test_508()6849 fn spec_test_508() {
6850 let original = r##"[link [foo [bar]]](/uri)
6851 "##;
6852 let expected = r##"<p><a href="/uri">link [foo [bar]]</a></p>
6853 "##;
6854
6855 test_markdown_html(original, expected);
6856 }
6857
6858 #[test]
spec_test_509()6859 fn spec_test_509() {
6860 let original = r##"[link] bar](/uri)
6861 "##;
6862 let expected = r##"<p>[link] bar](/uri)</p>
6863 "##;
6864
6865 test_markdown_html(original, expected);
6866 }
6867
6868 #[test]
spec_test_510()6869 fn spec_test_510() {
6870 let original = r##"[link [bar](/uri)
6871 "##;
6872 let expected = r##"<p>[link <a href="/uri">bar</a></p>
6873 "##;
6874
6875 test_markdown_html(original, expected);
6876 }
6877
6878 #[test]
spec_test_511()6879 fn spec_test_511() {
6880 let original = r##"[link \[bar](/uri)
6881 "##;
6882 let expected = r##"<p><a href="/uri">link [bar</a></p>
6883 "##;
6884
6885 test_markdown_html(original, expected);
6886 }
6887
6888 #[test]
spec_test_512()6889 fn spec_test_512() {
6890 let original = r##"[link *foo **bar** `#`*](/uri)
6891 "##;
6892 let expected = r##"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
6893 "##;
6894
6895 test_markdown_html(original, expected);
6896 }
6897
6898 #[test]
spec_test_513()6899 fn spec_test_513() {
6900 let original = r##"[![moon](moon.jpg)](/uri)
6901 "##;
6902 let expected = r##"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
6903 "##;
6904
6905 test_markdown_html(original, expected);
6906 }
6907
6908 #[test]
spec_test_514()6909 fn spec_test_514() {
6910 let original = r##"[foo [bar](/uri)](/uri)
6911 "##;
6912 let expected = r##"<p>[foo <a href="/uri">bar</a>](/uri)</p>
6913 "##;
6914
6915 test_markdown_html(original, expected);
6916 }
6917
6918 #[test]
spec_test_515()6919 fn spec_test_515() {
6920 let original = r##"[foo *[bar [baz](/uri)](/uri)*](/uri)
6921 "##;
6922 let expected = r##"<p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p>
6923 "##;
6924
6925 test_markdown_html(original, expected);
6926 }
6927
6928 #[test]
spec_test_516()6929 fn spec_test_516() {
6930 let original = r##"![[[foo](uri1)](uri2)](uri3)
6931 "##;
6932 let expected = r##"<p><img src="uri3" alt="[foo](uri2)" /></p>
6933 "##;
6934
6935 test_markdown_html(original, expected);
6936 }
6937
6938 #[test]
spec_test_517()6939 fn spec_test_517() {
6940 let original = r##"*[foo*](/uri)
6941 "##;
6942 let expected = r##"<p>*<a href="/uri">foo*</a></p>
6943 "##;
6944
6945 test_markdown_html(original, expected);
6946 }
6947
6948 #[test]
spec_test_518()6949 fn spec_test_518() {
6950 let original = r##"[foo *bar](baz*)
6951 "##;
6952 let expected = r##"<p><a href="baz*">foo *bar</a></p>
6953 "##;
6954
6955 test_markdown_html(original, expected);
6956 }
6957
6958 #[test]
spec_test_519()6959 fn spec_test_519() {
6960 let original = r##"*foo [bar* baz]
6961 "##;
6962 let expected = r##"<p><em>foo [bar</em> baz]</p>
6963 "##;
6964
6965 test_markdown_html(original, expected);
6966 }
6967
6968 #[test]
spec_test_520()6969 fn spec_test_520() {
6970 let original = r##"[foo <bar attr="](baz)">
6971 "##;
6972 let expected = r##"<p>[foo <bar attr="](baz)"></p>
6973 "##;
6974
6975 test_markdown_html(original, expected);
6976 }
6977
6978 #[test]
spec_test_521()6979 fn spec_test_521() {
6980 let original = r##"[foo`](/uri)`
6981 "##;
6982 let expected = r##"<p>[foo<code>](/uri)</code></p>
6983 "##;
6984
6985 test_markdown_html(original, expected);
6986 }
6987
6988 #[test]
spec_test_522()6989 fn spec_test_522() {
6990 let original = r##"[foo<http://example.com/?search=](uri)>
6991 "##;
6992 let expected = r##"<p>[foo<a href="http://example.com/?search=%5D(uri)">http://example.com/?search=](uri)</a></p>
6993 "##;
6994
6995 test_markdown_html(original, expected);
6996 }
6997
6998 #[test]
spec_test_523()6999 fn spec_test_523() {
7000 let original = r##"[foo][bar]
7001
7002 [bar]: /url "title"
7003 "##;
7004 let expected = r##"<p><a href="/url" title="title">foo</a></p>
7005 "##;
7006
7007 test_markdown_html(original, expected);
7008 }
7009
7010 #[test]
spec_test_524()7011 fn spec_test_524() {
7012 let original = r##"[link [foo [bar]]][ref]
7013
7014 [ref]: /uri
7015 "##;
7016 let expected = r##"<p><a href="/uri">link [foo [bar]]</a></p>
7017 "##;
7018
7019 test_markdown_html(original, expected);
7020 }
7021
7022 #[test]
spec_test_525()7023 fn spec_test_525() {
7024 let original = r##"[link \[bar][ref]
7025
7026 [ref]: /uri
7027 "##;
7028 let expected = r##"<p><a href="/uri">link [bar</a></p>
7029 "##;
7030
7031 test_markdown_html(original, expected);
7032 }
7033
7034 #[test]
spec_test_526()7035 fn spec_test_526() {
7036 let original = r##"[link *foo **bar** `#`*][ref]
7037
7038 [ref]: /uri
7039 "##;
7040 let expected = r##"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p>
7041 "##;
7042
7043 test_markdown_html(original, expected);
7044 }
7045
7046 #[test]
spec_test_527()7047 fn spec_test_527() {
7048 let original = r##"[![moon](moon.jpg)][ref]
7049
7050 [ref]: /uri
7051 "##;
7052 let expected = r##"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p>
7053 "##;
7054
7055 test_markdown_html(original, expected);
7056 }
7057
7058 #[test]
spec_test_528()7059 fn spec_test_528() {
7060 let original = r##"[foo [bar](/uri)][ref]
7061
7062 [ref]: /uri
7063 "##;
7064 let expected = r##"<p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p>
7065 "##;
7066
7067 test_markdown_html(original, expected);
7068 }
7069
7070 #[test]
spec_test_529()7071 fn spec_test_529() {
7072 let original = r##"[foo *bar [baz][ref]*][ref]
7073
7074 [ref]: /uri
7075 "##;
7076 let expected = r##"<p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p>
7077 "##;
7078
7079 test_markdown_html(original, expected);
7080 }
7081
7082 #[test]
spec_test_530()7083 fn spec_test_530() {
7084 let original = r##"*[foo*][ref]
7085
7086 [ref]: /uri
7087 "##;
7088 let expected = r##"<p>*<a href="/uri">foo*</a></p>
7089 "##;
7090
7091 test_markdown_html(original, expected);
7092 }
7093
7094 #[test]
spec_test_531()7095 fn spec_test_531() {
7096 let original = r##"[foo *bar][ref]
7097
7098 [ref]: /uri
7099 "##;
7100 let expected = r##"<p><a href="/uri">foo *bar</a></p>
7101 "##;
7102
7103 test_markdown_html(original, expected);
7104 }
7105
7106 #[test]
spec_test_532()7107 fn spec_test_532() {
7108 let original = r##"[foo <bar attr="][ref]">
7109
7110 [ref]: /uri
7111 "##;
7112 let expected = r##"<p>[foo <bar attr="][ref]"></p>
7113 "##;
7114
7115 test_markdown_html(original, expected);
7116 }
7117
7118 #[test]
spec_test_533()7119 fn spec_test_533() {
7120 let original = r##"[foo`][ref]`
7121
7122 [ref]: /uri
7123 "##;
7124 let expected = r##"<p>[foo<code>][ref]</code></p>
7125 "##;
7126
7127 test_markdown_html(original, expected);
7128 }
7129
7130 #[test]
spec_test_534()7131 fn spec_test_534() {
7132 let original = r##"[foo<http://example.com/?search=][ref]>
7133
7134 [ref]: /uri
7135 "##;
7136 let expected = r##"<p>[foo<a href="http://example.com/?search=%5D%5Bref%5D">http://example.com/?search=][ref]</a></p>
7137 "##;
7138
7139 test_markdown_html(original, expected);
7140 }
7141
7142 #[test]
spec_test_535()7143 fn spec_test_535() {
7144 let original = r##"[foo][BaR]
7145
7146 [bar]: /url "title"
7147 "##;
7148 let expected = r##"<p><a href="/url" title="title">foo</a></p>
7149 "##;
7150
7151 test_markdown_html(original, expected);
7152 }
7153
7154 #[test]
spec_test_536()7155 fn spec_test_536() {
7156 let original = r##"[Толпой][Толпой] is a Russian word.
7157
7158 [ТОЛПОЙ]: /url
7159 "##;
7160 let expected = r##"<p><a href="/url">Толпой</a> is a Russian word.</p>
7161 "##;
7162
7163 test_markdown_html(original, expected);
7164 }
7165
7166 #[test]
spec_test_537()7167 fn spec_test_537() {
7168 let original = r##"[Foo
7169 bar]: /url
7170
7171 [Baz][Foo bar]
7172 "##;
7173 let expected = r##"<p><a href="/url">Baz</a></p>
7174 "##;
7175
7176 test_markdown_html(original, expected);
7177 }
7178
7179 #[test]
spec_test_538()7180 fn spec_test_538() {
7181 let original = r##"[foo] [bar]
7182
7183 [bar]: /url "title"
7184 "##;
7185 let expected = r##"<p>[foo] <a href="/url" title="title">bar</a></p>
7186 "##;
7187
7188 test_markdown_html(original, expected);
7189 }
7190
7191 #[test]
spec_test_539()7192 fn spec_test_539() {
7193 let original = r##"[foo]
7194 [bar]
7195
7196 [bar]: /url "title"
7197 "##;
7198 let expected = r##"<p>[foo]
7199 <a href="/url" title="title">bar</a></p>
7200 "##;
7201
7202 test_markdown_html(original, expected);
7203 }
7204
7205 #[test]
spec_test_540()7206 fn spec_test_540() {
7207 let original = r##"[foo]: /url1
7208
7209 [foo]: /url2
7210
7211 [bar][foo]
7212 "##;
7213 let expected = r##"<p><a href="/url1">bar</a></p>
7214 "##;
7215
7216 test_markdown_html(original, expected);
7217 }
7218
7219 #[test]
spec_test_541()7220 fn spec_test_541() {
7221 let original = r##"[bar][foo\!]
7222
7223 [foo!]: /url
7224 "##;
7225 let expected = r##"<p>[bar][foo!]</p>
7226 "##;
7227
7228 test_markdown_html(original, expected);
7229 }
7230
7231 #[test]
spec_test_542()7232 fn spec_test_542() {
7233 let original = r##"[foo][ref[]
7234
7235 [ref[]: /uri
7236 "##;
7237 let expected = r##"<p>[foo][ref[]</p>
7238 <p>[ref[]: /uri</p>
7239 "##;
7240
7241 test_markdown_html(original, expected);
7242 }
7243
7244 #[test]
spec_test_543()7245 fn spec_test_543() {
7246 let original = r##"[foo][ref[bar]]
7247
7248 [ref[bar]]: /uri
7249 "##;
7250 let expected = r##"<p>[foo][ref[bar]]</p>
7251 <p>[ref[bar]]: /uri</p>
7252 "##;
7253
7254 test_markdown_html(original, expected);
7255 }
7256
7257 #[test]
spec_test_544()7258 fn spec_test_544() {
7259 let original = r##"[[[foo]]]
7260
7261 [[[foo]]]: /url
7262 "##;
7263 let expected = r##"<p>[[[foo]]]</p>
7264 <p>[[[foo]]]: /url</p>
7265 "##;
7266
7267 test_markdown_html(original, expected);
7268 }
7269
7270 #[test]
spec_test_545()7271 fn spec_test_545() {
7272 let original = r##"[foo][ref\[]
7273
7274 [ref\[]: /uri
7275 "##;
7276 let expected = r##"<p><a href="/uri">foo</a></p>
7277 "##;
7278
7279 test_markdown_html(original, expected);
7280 }
7281
7282 #[test]
spec_test_546()7283 fn spec_test_546() {
7284 let original = r##"[bar\\]: /uri
7285
7286 [bar\\]
7287 "##;
7288 let expected = r##"<p><a href="/uri">bar\</a></p>
7289 "##;
7290
7291 test_markdown_html(original, expected);
7292 }
7293
7294 #[test]
spec_test_547()7295 fn spec_test_547() {
7296 let original = r##"[]
7297
7298 []: /uri
7299 "##;
7300 let expected = r##"<p>[]</p>
7301 <p>[]: /uri</p>
7302 "##;
7303
7304 test_markdown_html(original, expected);
7305 }
7306
7307 #[test]
spec_test_548()7308 fn spec_test_548() {
7309 let original = r##"[
7310 ]
7311
7312 [
7313 ]: /uri
7314 "##;
7315 let expected = r##"<p>[
7316 ]</p>
7317 <p>[
7318 ]: /uri</p>
7319 "##;
7320
7321 test_markdown_html(original, expected);
7322 }
7323
7324 #[test]
spec_test_549()7325 fn spec_test_549() {
7326 let original = r##"[foo][]
7327
7328 [foo]: /url "title"
7329 "##;
7330 let expected = r##"<p><a href="/url" title="title">foo</a></p>
7331 "##;
7332
7333 test_markdown_html(original, expected);
7334 }
7335
7336 #[test]
spec_test_550()7337 fn spec_test_550() {
7338 let original = r##"[*foo* bar][]
7339
7340 [*foo* bar]: /url "title"
7341 "##;
7342 let expected = r##"<p><a href="/url" title="title"><em>foo</em> bar</a></p>
7343 "##;
7344
7345 test_markdown_html(original, expected);
7346 }
7347
7348 #[test]
spec_test_551()7349 fn spec_test_551() {
7350 let original = r##"[Foo][]
7351
7352 [foo]: /url "title"
7353 "##;
7354 let expected = r##"<p><a href="/url" title="title">Foo</a></p>
7355 "##;
7356
7357 test_markdown_html(original, expected);
7358 }
7359
7360 #[test]
spec_test_552()7361 fn spec_test_552() {
7362 let original = r##"[foo]
7363 []
7364
7365 [foo]: /url "title"
7366 "##;
7367 let expected = r##"<p><a href="/url" title="title">foo</a>
7368 []</p>
7369 "##;
7370
7371 test_markdown_html(original, expected);
7372 }
7373
7374 #[test]
spec_test_553()7375 fn spec_test_553() {
7376 let original = r##"[foo]
7377
7378 [foo]: /url "title"
7379 "##;
7380 let expected = r##"<p><a href="/url" title="title">foo</a></p>
7381 "##;
7382
7383 test_markdown_html(original, expected);
7384 }
7385
7386 #[test]
spec_test_554()7387 fn spec_test_554() {
7388 let original = r##"[*foo* bar]
7389
7390 [*foo* bar]: /url "title"
7391 "##;
7392 let expected = r##"<p><a href="/url" title="title"><em>foo</em> bar</a></p>
7393 "##;
7394
7395 test_markdown_html(original, expected);
7396 }
7397
7398 #[test]
spec_test_555()7399 fn spec_test_555() {
7400 let original = r##"[[*foo* bar]]
7401
7402 [*foo* bar]: /url "title"
7403 "##;
7404 let expected = r##"<p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p>
7405 "##;
7406
7407 test_markdown_html(original, expected);
7408 }
7409
7410 #[test]
spec_test_556()7411 fn spec_test_556() {
7412 let original = r##"[[bar [foo]
7413
7414 [foo]: /url
7415 "##;
7416 let expected = r##"<p>[[bar <a href="/url">foo</a></p>
7417 "##;
7418
7419 test_markdown_html(original, expected);
7420 }
7421
7422 #[test]
spec_test_557()7423 fn spec_test_557() {
7424 let original = r##"[Foo]
7425
7426 [foo]: /url "title"
7427 "##;
7428 let expected = r##"<p><a href="/url" title="title">Foo</a></p>
7429 "##;
7430
7431 test_markdown_html(original, expected);
7432 }
7433
7434 #[test]
spec_test_558()7435 fn spec_test_558() {
7436 let original = r##"[foo] bar
7437
7438 [foo]: /url
7439 "##;
7440 let expected = r##"<p><a href="/url">foo</a> bar</p>
7441 "##;
7442
7443 test_markdown_html(original, expected);
7444 }
7445
7446 #[test]
spec_test_559()7447 fn spec_test_559() {
7448 let original = r##"\[foo]
7449
7450 [foo]: /url "title"
7451 "##;
7452 let expected = r##"<p>[foo]</p>
7453 "##;
7454
7455 test_markdown_html(original, expected);
7456 }
7457
7458 #[test]
spec_test_560()7459 fn spec_test_560() {
7460 let original = r##"[foo*]: /url
7461
7462 *[foo*]
7463 "##;
7464 let expected = r##"<p>*<a href="/url">foo*</a></p>
7465 "##;
7466
7467 test_markdown_html(original, expected);
7468 }
7469
7470 #[test]
spec_test_561()7471 fn spec_test_561() {
7472 let original = r##"[foo][bar]
7473
7474 [foo]: /url1
7475 [bar]: /url2
7476 "##;
7477 let expected = r##"<p><a href="/url2">foo</a></p>
7478 "##;
7479
7480 test_markdown_html(original, expected);
7481 }
7482
7483 #[test]
spec_test_562()7484 fn spec_test_562() {
7485 let original = r##"[foo][]
7486
7487 [foo]: /url1
7488 "##;
7489 let expected = r##"<p><a href="/url1">foo</a></p>
7490 "##;
7491
7492 test_markdown_html(original, expected);
7493 }
7494
7495 #[test]
spec_test_563()7496 fn spec_test_563() {
7497 let original = r##"[foo]()
7498
7499 [foo]: /url1
7500 "##;
7501 let expected = r##"<p><a href="">foo</a></p>
7502 "##;
7503
7504 test_markdown_html(original, expected);
7505 }
7506
7507 #[test]
spec_test_564()7508 fn spec_test_564() {
7509 let original = r##"[foo](not a link)
7510
7511 [foo]: /url1
7512 "##;
7513 let expected = r##"<p><a href="/url1">foo</a>(not a link)</p>
7514 "##;
7515
7516 test_markdown_html(original, expected);
7517 }
7518
7519 #[test]
spec_test_565()7520 fn spec_test_565() {
7521 let original = r##"[foo][bar][baz]
7522
7523 [baz]: /url
7524 "##;
7525 let expected = r##"<p>[foo]<a href="/url">bar</a></p>
7526 "##;
7527
7528 test_markdown_html(original, expected);
7529 }
7530
7531 #[test]
spec_test_566()7532 fn spec_test_566() {
7533 let original = r##"[foo][bar][baz]
7534
7535 [baz]: /url1
7536 [bar]: /url2
7537 "##;
7538 let expected = r##"<p><a href="/url2">foo</a><a href="/url1">baz</a></p>
7539 "##;
7540
7541 test_markdown_html(original, expected);
7542 }
7543
7544 #[test]
spec_test_567()7545 fn spec_test_567() {
7546 let original = r##"[foo][bar][baz]
7547
7548 [baz]: /url1
7549 [foo]: /url2
7550 "##;
7551 let expected = r##"<p>[foo]<a href="/url1">bar</a></p>
7552 "##;
7553
7554 test_markdown_html(original, expected);
7555 }
7556
7557 #[test]
spec_test_568()7558 fn spec_test_568() {
7559 let original = r##"![foo](/url "title")
7560 "##;
7561 let expected = r##"<p><img src="/url" alt="foo" title="title" /></p>
7562 "##;
7563
7564 test_markdown_html(original, expected);
7565 }
7566
7567 #[test]
spec_test_569()7568 fn spec_test_569() {
7569 let original = r##"![foo *bar*]
7570
7571 [foo *bar*]: train.jpg "train & tracks"
7572 "##;
7573 let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
7574 "##;
7575
7576 test_markdown_html(original, expected);
7577 }
7578
7579 #[test]
spec_test_570()7580 fn spec_test_570() {
7581 let original = r##"![foo ![bar](/url)](/url2)
7582 "##;
7583 let expected = r##"<p><img src="/url2" alt="foo bar" /></p>
7584 "##;
7585
7586 test_markdown_html(original, expected);
7587 }
7588
7589 #[test]
spec_test_571()7590 fn spec_test_571() {
7591 let original = r##"![foo [bar](/url)](/url2)
7592 "##;
7593 let expected = r##"<p><img src="/url2" alt="foo bar" /></p>
7594 "##;
7595
7596 test_markdown_html(original, expected);
7597 }
7598
7599 #[test]
spec_test_572()7600 fn spec_test_572() {
7601 let original = r##"![foo *bar*][]
7602
7603 [foo *bar*]: train.jpg "train & tracks"
7604 "##;
7605 let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
7606 "##;
7607
7608 test_markdown_html(original, expected);
7609 }
7610
7611 #[test]
spec_test_573()7612 fn spec_test_573() {
7613 let original = r##"![foo *bar*][foobar]
7614
7615 [FOOBAR]: train.jpg "train & tracks"
7616 "##;
7617 let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p>
7618 "##;
7619
7620 test_markdown_html(original, expected);
7621 }
7622
7623 #[test]
spec_test_574()7624 fn spec_test_574() {
7625 let original = r##"![foo](train.jpg)
7626 "##;
7627 let expected = r##"<p><img src="train.jpg" alt="foo" /></p>
7628 "##;
7629
7630 test_markdown_html(original, expected);
7631 }
7632
7633 #[test]
spec_test_575()7634 fn spec_test_575() {
7635 let original = r##"My ![foo bar](/path/to/train.jpg "title" )
7636 "##;
7637 let expected = r##"<p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p>
7638 "##;
7639
7640 test_markdown_html(original, expected);
7641 }
7642
7643 #[test]
spec_test_576()7644 fn spec_test_576() {
7645 let original = r##"![foo](<url>)
7646 "##;
7647 let expected = r##"<p><img src="url" alt="foo" /></p>
7648 "##;
7649
7650 test_markdown_html(original, expected);
7651 }
7652
7653 #[test]
spec_test_577()7654 fn spec_test_577() {
7655 let original = r##"![](/url)
7656 "##;
7657 let expected = r##"<p><img src="/url" alt="" /></p>
7658 "##;
7659
7660 test_markdown_html(original, expected);
7661 }
7662
7663 #[test]
spec_test_578()7664 fn spec_test_578() {
7665 let original = r##"![foo][bar]
7666
7667 [bar]: /url
7668 "##;
7669 let expected = r##"<p><img src="/url" alt="foo" /></p>
7670 "##;
7671
7672 test_markdown_html(original, expected);
7673 }
7674
7675 #[test]
spec_test_579()7676 fn spec_test_579() {
7677 let original = r##"![foo][bar]
7678
7679 [BAR]: /url
7680 "##;
7681 let expected = r##"<p><img src="/url" alt="foo" /></p>
7682 "##;
7683
7684 test_markdown_html(original, expected);
7685 }
7686
7687 #[test]
spec_test_580()7688 fn spec_test_580() {
7689 let original = r##"![foo][]
7690
7691 [foo]: /url "title"
7692 "##;
7693 let expected = r##"<p><img src="/url" alt="foo" title="title" /></p>
7694 "##;
7695
7696 test_markdown_html(original, expected);
7697 }
7698
7699 #[test]
spec_test_581()7700 fn spec_test_581() {
7701 let original = r##"![*foo* bar][]
7702
7703 [*foo* bar]: /url "title"
7704 "##;
7705 let expected = r##"<p><img src="/url" alt="foo bar" title="title" /></p>
7706 "##;
7707
7708 test_markdown_html(original, expected);
7709 }
7710
7711 #[test]
spec_test_582()7712 fn spec_test_582() {
7713 let original = r##"![Foo][]
7714
7715 [foo]: /url "title"
7716 "##;
7717 let expected = r##"<p><img src="/url" alt="Foo" title="title" /></p>
7718 "##;
7719
7720 test_markdown_html(original, expected);
7721 }
7722
7723 #[test]
spec_test_583()7724 fn spec_test_583() {
7725 let original = r##"![foo]
7726 []
7727
7728 [foo]: /url "title"
7729 "##;
7730 let expected = r##"<p><img src="/url" alt="foo" title="title" />
7731 []</p>
7732 "##;
7733
7734 test_markdown_html(original, expected);
7735 }
7736
7737 #[test]
spec_test_584()7738 fn spec_test_584() {
7739 let original = r##"![foo]
7740
7741 [foo]: /url "title"
7742 "##;
7743 let expected = r##"<p><img src="/url" alt="foo" title="title" /></p>
7744 "##;
7745
7746 test_markdown_html(original, expected);
7747 }
7748
7749 #[test]
spec_test_585()7750 fn spec_test_585() {
7751 let original = r##"![*foo* bar]
7752
7753 [*foo* bar]: /url "title"
7754 "##;
7755 let expected = r##"<p><img src="/url" alt="foo bar" title="title" /></p>
7756 "##;
7757
7758 test_markdown_html(original, expected);
7759 }
7760
7761 #[test]
spec_test_586()7762 fn spec_test_586() {
7763 let original = r##"![[foo]]
7764
7765 [[foo]]: /url "title"
7766 "##;
7767 let expected = r##"<p>![[foo]]</p>
7768 <p>[[foo]]: /url "title"</p>
7769 "##;
7770
7771 test_markdown_html(original, expected);
7772 }
7773
7774 #[test]
spec_test_587()7775 fn spec_test_587() {
7776 let original = r##"![Foo]
7777
7778 [foo]: /url "title"
7779 "##;
7780 let expected = r##"<p><img src="/url" alt="Foo" title="title" /></p>
7781 "##;
7782
7783 test_markdown_html(original, expected);
7784 }
7785
7786 #[test]
spec_test_588()7787 fn spec_test_588() {
7788 let original = r##"!\[foo]
7789
7790 [foo]: /url "title"
7791 "##;
7792 let expected = r##"<p>![foo]</p>
7793 "##;
7794
7795 test_markdown_html(original, expected);
7796 }
7797
7798 #[test]
spec_test_589()7799 fn spec_test_589() {
7800 let original = r##"\![foo]
7801
7802 [foo]: /url "title"
7803 "##;
7804 let expected = r##"<p>!<a href="/url" title="title">foo</a></p>
7805 "##;
7806
7807 test_markdown_html(original, expected);
7808 }
7809
7810 #[test]
spec_test_590()7811 fn spec_test_590() {
7812 let original = r##"<http://foo.bar.baz>
7813 "##;
7814 let expected = r##"<p><a href="http://foo.bar.baz">http://foo.bar.baz</a></p>
7815 "##;
7816
7817 test_markdown_html(original, expected);
7818 }
7819
7820 #[test]
spec_test_591()7821 fn spec_test_591() {
7822 let original = r##"<http://foo.bar.baz/test?q=hello&id=22&boolean>
7823 "##;
7824 let expected = r##"<p><a href="http://foo.bar.baz/test?q=hello&id=22&boolean">http://foo.bar.baz/test?q=hello&id=22&boolean</a></p>
7825 "##;
7826
7827 test_markdown_html(original, expected);
7828 }
7829
7830 #[test]
spec_test_592()7831 fn spec_test_592() {
7832 let original = r##"<irc://foo.bar:2233/baz>
7833 "##;
7834 let expected = r##"<p><a href="irc://foo.bar:2233/baz">irc://foo.bar:2233/baz</a></p>
7835 "##;
7836
7837 test_markdown_html(original, expected);
7838 }
7839
7840 #[test]
spec_test_593()7841 fn spec_test_593() {
7842 let original = r##"<MAILTO:FOO@BAR.BAZ>
7843 "##;
7844 let expected = r##"<p><a href="MAILTO:FOO@BAR.BAZ">MAILTO:FOO@BAR.BAZ</a></p>
7845 "##;
7846
7847 test_markdown_html(original, expected);
7848 }
7849
7850 #[test]
spec_test_594()7851 fn spec_test_594() {
7852 let original = r##"<a+b+c:d>
7853 "##;
7854 let expected = r##"<p><a href="a+b+c:d">a+b+c:d</a></p>
7855 "##;
7856
7857 test_markdown_html(original, expected);
7858 }
7859
7860 #[test]
spec_test_595()7861 fn spec_test_595() {
7862 let original = r##"<made-up-scheme://foo,bar>
7863 "##;
7864 let expected = r##"<p><a href="made-up-scheme://foo,bar">made-up-scheme://foo,bar</a></p>
7865 "##;
7866
7867 test_markdown_html(original, expected);
7868 }
7869
7870 #[test]
spec_test_596()7871 fn spec_test_596() {
7872 let original = r##"<http://../>
7873 "##;
7874 let expected = r##"<p><a href="http://../">http://../</a></p>
7875 "##;
7876
7877 test_markdown_html(original, expected);
7878 }
7879
7880 #[test]
spec_test_597()7881 fn spec_test_597() {
7882 let original = r##"<localhost:5001/foo>
7883 "##;
7884 let expected = r##"<p><a href="localhost:5001/foo">localhost:5001/foo</a></p>
7885 "##;
7886
7887 test_markdown_html(original, expected);
7888 }
7889
7890 #[test]
spec_test_598()7891 fn spec_test_598() {
7892 let original = r##"<http://foo.bar/baz bim>
7893 "##;
7894 let expected = r##"<p><http://foo.bar/baz bim></p>
7895 "##;
7896
7897 test_markdown_html(original, expected);
7898 }
7899
7900 #[test]
spec_test_599()7901 fn spec_test_599() {
7902 let original = r##"<http://example.com/\[\>
7903 "##;
7904 let expected = r##"<p><a href="http://example.com/%5C%5B%5C">http://example.com/\[\</a></p>
7905 "##;
7906
7907 test_markdown_html(original, expected);
7908 }
7909
7910 #[test]
spec_test_600()7911 fn spec_test_600() {
7912 let original = r##"<foo@bar.example.com>
7913 "##;
7914 let expected = r##"<p><a href="mailto:foo@bar.example.com">foo@bar.example.com</a></p>
7915 "##;
7916
7917 test_markdown_html(original, expected);
7918 }
7919
7920 #[test]
spec_test_601()7921 fn spec_test_601() {
7922 let original = r##"<foo+special@Bar.baz-bar0.com>
7923 "##;
7924 let expected = r##"<p><a href="mailto:foo+special@Bar.baz-bar0.com">foo+special@Bar.baz-bar0.com</a></p>
7925 "##;
7926
7927 test_markdown_html(original, expected);
7928 }
7929
7930 #[test]
spec_test_602()7931 fn spec_test_602() {
7932 let original = r##"<foo\+@bar.example.com>
7933 "##;
7934 let expected = r##"<p><foo+@bar.example.com></p>
7935 "##;
7936
7937 test_markdown_html(original, expected);
7938 }
7939
7940 #[test]
spec_test_603()7941 fn spec_test_603() {
7942 let original = r##"<>
7943 "##;
7944 let expected = r##"<p><></p>
7945 "##;
7946
7947 test_markdown_html(original, expected);
7948 }
7949
7950 #[test]
spec_test_604()7951 fn spec_test_604() {
7952 let original = r##"< http://foo.bar >
7953 "##;
7954 let expected = r##"<p>< http://foo.bar ></p>
7955 "##;
7956
7957 test_markdown_html(original, expected);
7958 }
7959
7960 #[test]
spec_test_605()7961 fn spec_test_605() {
7962 let original = r##"<m:abc>
7963 "##;
7964 let expected = r##"<p><m:abc></p>
7965 "##;
7966
7967 test_markdown_html(original, expected);
7968 }
7969
7970 #[test]
spec_test_606()7971 fn spec_test_606() {
7972 let original = r##"<foo.bar.baz>
7973 "##;
7974 let expected = r##"<p><foo.bar.baz></p>
7975 "##;
7976
7977 test_markdown_html(original, expected);
7978 }
7979
7980 #[test]
spec_test_607()7981 fn spec_test_607() {
7982 let original = r##"http://example.com
7983 "##;
7984 let expected = r##"<p>http://example.com</p>
7985 "##;
7986
7987 test_markdown_html(original, expected);
7988 }
7989
7990 #[test]
spec_test_608()7991 fn spec_test_608() {
7992 let original = r##"foo@bar.example.com
7993 "##;
7994 let expected = r##"<p>foo@bar.example.com</p>
7995 "##;
7996
7997 test_markdown_html(original, expected);
7998 }
7999
8000 #[test]
spec_test_609()8001 fn spec_test_609() {
8002 let original = r##"<a><bab><c2c>
8003 "##;
8004 let expected = r##"<p><a><bab><c2c></p>
8005 "##;
8006
8007 test_markdown_html(original, expected);
8008 }
8009
8010 #[test]
spec_test_610()8011 fn spec_test_610() {
8012 let original = r##"<a/><b2/>
8013 "##;
8014 let expected = r##"<p><a/><b2/></p>
8015 "##;
8016
8017 test_markdown_html(original, expected);
8018 }
8019
8020 #[test]
spec_test_611()8021 fn spec_test_611() {
8022 let original = r##"<a /><b2
8023 data="foo" >
8024 "##;
8025 let expected = r##"<p><a /><b2
8026 data="foo" ></p>
8027 "##;
8028
8029 test_markdown_html(original, expected);
8030 }
8031
8032 #[test]
spec_test_612()8033 fn spec_test_612() {
8034 let original = r##"<a foo="bar" bam = 'baz <em>"</em>'
8035 _boolean zoop:33=zoop:33 />
8036 "##;
8037 let expected = r##"<p><a foo="bar" bam = 'baz <em>"</em>'
8038 _boolean zoop:33=zoop:33 /></p>
8039 "##;
8040
8041 test_markdown_html(original, expected);
8042 }
8043
8044 #[test]
spec_test_613()8045 fn spec_test_613() {
8046 let original = r##"Foo <responsive-image src="foo.jpg" />
8047 "##;
8048 let expected = r##"<p>Foo <responsive-image src="foo.jpg" /></p>
8049 "##;
8050
8051 test_markdown_html(original, expected);
8052 }
8053
8054 #[test]
spec_test_614()8055 fn spec_test_614() {
8056 let original = r##"<33> <__>
8057 "##;
8058 let expected = r##"<p><33> <__></p>
8059 "##;
8060
8061 test_markdown_html(original, expected);
8062 }
8063
8064 #[test]
spec_test_615()8065 fn spec_test_615() {
8066 let original = r##"<a h*#ref="hi">
8067 "##;
8068 let expected = r##"<p><a h*#ref="hi"></p>
8069 "##;
8070
8071 test_markdown_html(original, expected);
8072 }
8073
8074 #[test]
spec_test_616()8075 fn spec_test_616() {
8076 let original = r##"<a href="hi'> <a href=hi'>
8077 "##;
8078 let expected = r##"<p><a href="hi'> <a href=hi'></p>
8079 "##;
8080
8081 test_markdown_html(original, expected);
8082 }
8083
8084 #[test]
spec_test_617()8085 fn spec_test_617() {
8086 let original = r##"< a><
8087 foo><bar/ >
8088 <foo bar=baz
8089 bim!bop />
8090 "##;
8091 let expected = r##"<p>< a><
8092 foo><bar/ >
8093 <foo bar=baz
8094 bim!bop /></p>
8095 "##;
8096
8097 test_markdown_html(original, expected);
8098 }
8099
8100 #[test]
spec_test_618()8101 fn spec_test_618() {
8102 let original = r##"<a href='bar'title=title>
8103 "##;
8104 let expected = r##"<p><a href='bar'title=title></p>
8105 "##;
8106
8107 test_markdown_html(original, expected);
8108 }
8109
8110 #[test]
spec_test_619()8111 fn spec_test_619() {
8112 let original = r##"</a></foo >
8113 "##;
8114 let expected = r##"<p></a></foo ></p>
8115 "##;
8116
8117 test_markdown_html(original, expected);
8118 }
8119
8120 #[test]
spec_test_620()8121 fn spec_test_620() {
8122 let original = r##"</a href="foo">
8123 "##;
8124 let expected = r##"<p></a href="foo"></p>
8125 "##;
8126
8127 test_markdown_html(original, expected);
8128 }
8129
8130 #[test]
spec_test_621()8131 fn spec_test_621() {
8132 let original = r##"foo <!-- this is a
8133 comment - with hyphen -->
8134 "##;
8135 let expected = r##"<p>foo <!-- this is a
8136 comment - with hyphen --></p>
8137 "##;
8138
8139 test_markdown_html(original, expected);
8140 }
8141
8142 #[test]
spec_test_622()8143 fn spec_test_622() {
8144 let original = r##"foo <!-- not a comment -- two hyphens -->
8145 "##;
8146 let expected = r##"<p>foo <!-- not a comment -- two hyphens --></p>
8147 "##;
8148
8149 test_markdown_html(original, expected);
8150 }
8151
8152 #[test]
spec_test_623()8153 fn spec_test_623() {
8154 let original = r##"foo <!--> foo -->
8155
8156 foo <!-- foo--->
8157 "##;
8158 let expected = r##"<p>foo <!--> foo --></p>
8159 <p>foo <!-- foo---></p>
8160 "##;
8161
8162 test_markdown_html(original, expected);
8163 }
8164
8165 #[test]
spec_test_624()8166 fn spec_test_624() {
8167 let original = r##"foo <?php echo $a; ?>
8168 "##;
8169 let expected = r##"<p>foo <?php echo $a; ?></p>
8170 "##;
8171
8172 test_markdown_html(original, expected);
8173 }
8174
8175 #[test]
spec_test_625()8176 fn spec_test_625() {
8177 let original = r##"foo <!ELEMENT br EMPTY>
8178 "##;
8179 let expected = r##"<p>foo <!ELEMENT br EMPTY></p>
8180 "##;
8181
8182 test_markdown_html(original, expected);
8183 }
8184
8185 #[test]
spec_test_626()8186 fn spec_test_626() {
8187 let original = r##"foo <![CDATA[>&<]]>
8188 "##;
8189 let expected = r##"<p>foo <![CDATA[>&<]]></p>
8190 "##;
8191
8192 test_markdown_html(original, expected);
8193 }
8194
8195 #[test]
spec_test_627()8196 fn spec_test_627() {
8197 let original = r##"foo <a href="ö">
8198 "##;
8199 let expected = r##"<p>foo <a href="ö"></p>
8200 "##;
8201
8202 test_markdown_html(original, expected);
8203 }
8204
8205 #[test]
spec_test_628()8206 fn spec_test_628() {
8207 let original = r##"foo <a href="\*">
8208 "##;
8209 let expected = r##"<p>foo <a href="\*"></p>
8210 "##;
8211
8212 test_markdown_html(original, expected);
8213 }
8214
8215 #[test]
spec_test_629()8216 fn spec_test_629() {
8217 let original = r##"<a href="\"">
8218 "##;
8219 let expected = r##"<p><a href="""></p>
8220 "##;
8221
8222 test_markdown_html(original, expected);
8223 }
8224
8225 #[test]
spec_test_630()8226 fn spec_test_630() {
8227 let original = r##"foo
8228 baz
8229 "##;
8230 let expected = r##"<p>foo<br />
8231 baz</p>
8232 "##;
8233
8234 test_markdown_html(original, expected);
8235 }
8236
8237 #[test]
spec_test_631()8238 fn spec_test_631() {
8239 let original = r##"foo\
8240 baz
8241 "##;
8242 let expected = r##"<p>foo<br />
8243 baz</p>
8244 "##;
8245
8246 test_markdown_html(original, expected);
8247 }
8248
8249 #[test]
spec_test_632()8250 fn spec_test_632() {
8251 let original = r##"foo
8252 baz
8253 "##;
8254 let expected = r##"<p>foo<br />
8255 baz</p>
8256 "##;
8257
8258 test_markdown_html(original, expected);
8259 }
8260
8261 #[test]
spec_test_633()8262 fn spec_test_633() {
8263 let original = r##"foo
8264 bar
8265 "##;
8266 let expected = r##"<p>foo<br />
8267 bar</p>
8268 "##;
8269
8270 test_markdown_html(original, expected);
8271 }
8272
8273 #[test]
spec_test_634()8274 fn spec_test_634() {
8275 let original = r##"foo\
8276 bar
8277 "##;
8278 let expected = r##"<p>foo<br />
8279 bar</p>
8280 "##;
8281
8282 test_markdown_html(original, expected);
8283 }
8284
8285 #[test]
spec_test_635()8286 fn spec_test_635() {
8287 let original = r##"*foo
8288 bar*
8289 "##;
8290 let expected = r##"<p><em>foo<br />
8291 bar</em></p>
8292 "##;
8293
8294 test_markdown_html(original, expected);
8295 }
8296
8297 #[test]
spec_test_636()8298 fn spec_test_636() {
8299 let original = r##"*foo\
8300 bar*
8301 "##;
8302 let expected = r##"<p><em>foo<br />
8303 bar</em></p>
8304 "##;
8305
8306 test_markdown_html(original, expected);
8307 }
8308
8309 #[test]
spec_test_637()8310 fn spec_test_637() {
8311 let original = r##"`code
8312 span`
8313 "##;
8314 let expected = r##"<p><code>code span</code></p>
8315 "##;
8316
8317 test_markdown_html(original, expected);
8318 }
8319
8320 #[test]
spec_test_638()8321 fn spec_test_638() {
8322 let original = r##"`code\
8323 span`
8324 "##;
8325 let expected = r##"<p><code>code\ span</code></p>
8326 "##;
8327
8328 test_markdown_html(original, expected);
8329 }
8330
8331 #[test]
spec_test_639()8332 fn spec_test_639() {
8333 let original = r##"<a href="foo
8334 bar">
8335 "##;
8336 let expected = r##"<p><a href="foo
8337 bar"></p>
8338 "##;
8339
8340 test_markdown_html(original, expected);
8341 }
8342
8343 #[test]
spec_test_640()8344 fn spec_test_640() {
8345 let original = r##"<a href="foo\
8346 bar">
8347 "##;
8348 let expected = r##"<p><a href="foo\
8349 bar"></p>
8350 "##;
8351
8352 test_markdown_html(original, expected);
8353 }
8354
8355 #[test]
spec_test_641()8356 fn spec_test_641() {
8357 let original = r##"foo\
8358 "##;
8359 let expected = r##"<p>foo\</p>
8360 "##;
8361
8362 test_markdown_html(original, expected);
8363 }
8364
8365 #[test]
spec_test_642()8366 fn spec_test_642() {
8367 let original = r##"foo
8368 "##;
8369 let expected = r##"<p>foo</p>
8370 "##;
8371
8372 test_markdown_html(original, expected);
8373 }
8374
8375 #[test]
spec_test_643()8376 fn spec_test_643() {
8377 let original = r##"### foo\
8378 "##;
8379 let expected = r##"<h3>foo\</h3>
8380 "##;
8381
8382 test_markdown_html(original, expected);
8383 }
8384
8385 #[test]
spec_test_644()8386 fn spec_test_644() {
8387 let original = r##"### foo
8388 "##;
8389 let expected = r##"<h3>foo</h3>
8390 "##;
8391
8392 test_markdown_html(original, expected);
8393 }
8394
8395 #[test]
spec_test_645()8396 fn spec_test_645() {
8397 let original = r##"foo
8398 baz
8399 "##;
8400 let expected = r##"<p>foo
8401 baz</p>
8402 "##;
8403
8404 test_markdown_html(original, expected);
8405 }
8406
8407 #[test]
spec_test_646()8408 fn spec_test_646() {
8409 let original = r##"foo
8410 baz
8411 "##;
8412 let expected = r##"<p>foo
8413 baz</p>
8414 "##;
8415
8416 test_markdown_html(original, expected);
8417 }
8418
8419 #[test]
spec_test_647()8420 fn spec_test_647() {
8421 let original = r##"hello $.;'there
8422 "##;
8423 let expected = r##"<p>hello $.;'there</p>
8424 "##;
8425
8426 test_markdown_html(original, expected);
8427 }
8428
8429 #[test]
spec_test_648()8430 fn spec_test_648() {
8431 let original = r##"Foo χρῆν
8432 "##;
8433 let expected = r##"<p>Foo χρῆν</p>
8434 "##;
8435
8436 test_markdown_html(original, expected);
8437 }
8438
8439 #[test]
spec_test_649()8440 fn spec_test_649() {
8441 let original = r##"Multiple spaces
8442 "##;
8443 let expected = r##"<p>Multiple spaces</p>
8444 "##;
8445
8446 test_markdown_html(original, expected);
8447 }
8448