]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
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] | |
6889 | fn spec_test_512() { | |
6890 | let original = r##"[link *foo **bar** `#`*](/uri) | |
6891 | "##; | |
416331ca XL |
6892 | let expected = |
6893 | r##"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p> | |
48663c56 XL |
6894 | "##; |
6895 | ||
6896 | test_markdown_html(original, expected); | |
6897 | } | |
6898 | ||
6899 | #[test] | |
6900 | fn spec_test_513() { | |
6901 | let original = r##"[![moon](moon.jpg)](/uri) | |
6902 | "##; | |
6903 | let expected = r##"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p> | |
6904 | "##; | |
6905 | ||
6906 | test_markdown_html(original, expected); | |
6907 | } | |
6908 | ||
6909 | #[test] | |
6910 | fn spec_test_514() { | |
6911 | let original = r##"[foo [bar](/uri)](/uri) | |
6912 | "##; | |
6913 | let expected = r##"<p>[foo <a href="/uri">bar</a>](/uri)</p> | |
6914 | "##; | |
6915 | ||
6916 | test_markdown_html(original, expected); | |
6917 | } | |
6918 | ||
6919 | #[test] | |
6920 | fn spec_test_515() { | |
6921 | let original = r##"[foo *[bar [baz](/uri)](/uri)*](/uri) | |
6922 | "##; | |
6923 | let expected = r##"<p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p> | |
6924 | "##; | |
6925 | ||
6926 | test_markdown_html(original, expected); | |
6927 | } | |
6928 | ||
6929 | #[test] | |
6930 | fn spec_test_516() { | |
6931 | let original = r##"![[[foo](uri1)](uri2)](uri3) | |
6932 | "##; | |
6933 | let expected = r##"<p><img src="uri3" alt="[foo](uri2)" /></p> | |
6934 | "##; | |
6935 | ||
6936 | test_markdown_html(original, expected); | |
6937 | } | |
6938 | ||
6939 | #[test] | |
6940 | fn spec_test_517() { | |
6941 | let original = r##"*[foo*](/uri) | |
6942 | "##; | |
6943 | let expected = r##"<p>*<a href="/uri">foo*</a></p> | |
6944 | "##; | |
6945 | ||
6946 | test_markdown_html(original, expected); | |
6947 | } | |
6948 | ||
6949 | #[test] | |
6950 | fn spec_test_518() { | |
6951 | let original = r##"[foo *bar](baz*) | |
6952 | "##; | |
6953 | let expected = r##"<p><a href="baz*">foo *bar</a></p> | |
6954 | "##; | |
6955 | ||
6956 | test_markdown_html(original, expected); | |
6957 | } | |
6958 | ||
6959 | #[test] | |
6960 | fn spec_test_519() { | |
6961 | let original = r##"*foo [bar* baz] | |
6962 | "##; | |
6963 | let expected = r##"<p><em>foo [bar</em> baz]</p> | |
6964 | "##; | |
6965 | ||
6966 | test_markdown_html(original, expected); | |
6967 | } | |
6968 | ||
6969 | #[test] | |
6970 | fn spec_test_520() { | |
6971 | let original = r##"[foo <bar attr="](baz)"> | |
6972 | "##; | |
6973 | let expected = r##"<p>[foo <bar attr="](baz)"></p> | |
6974 | "##; | |
6975 | ||
6976 | test_markdown_html(original, expected); | |
6977 | } | |
6978 | ||
6979 | #[test] | |
6980 | fn spec_test_521() { | |
6981 | let original = r##"[foo`](/uri)` | |
6982 | "##; | |
6983 | let expected = r##"<p>[foo<code>](/uri)</code></p> | |
6984 | "##; | |
6985 | ||
6986 | test_markdown_html(original, expected); | |
6987 | } | |
6988 | ||
6989 | #[test] | |
6990 | fn spec_test_522() { | |
6991 | let original = r##"[foo<http://example.com/?search=](uri)> | |
6992 | "##; | |
6993 | let expected = r##"<p>[foo<a href="http://example.com/?search=%5D(uri)">http://example.com/?search=](uri)</a></p> | |
6994 | "##; | |
6995 | ||
6996 | test_markdown_html(original, expected); | |
6997 | } | |
6998 | ||
6999 | #[test] | |
7000 | fn spec_test_523() { | |
7001 | let original = r##"[foo][bar] | |
7002 | ||
7003 | [bar]: /url "title" | |
7004 | "##; | |
7005 | let expected = r##"<p><a href="/url" title="title">foo</a></p> | |
7006 | "##; | |
7007 | ||
7008 | test_markdown_html(original, expected); | |
7009 | } | |
7010 | ||
7011 | #[test] | |
7012 | fn spec_test_524() { | |
7013 | let original = r##"[link [foo [bar]]][ref] | |
7014 | ||
7015 | [ref]: /uri | |
7016 | "##; | |
7017 | let expected = r##"<p><a href="/uri">link [foo [bar]]</a></p> | |
7018 | "##; | |
7019 | ||
7020 | test_markdown_html(original, expected); | |
7021 | } | |
7022 | ||
7023 | #[test] | |
7024 | fn spec_test_525() { | |
7025 | let original = r##"[link \[bar][ref] | |
7026 | ||
7027 | [ref]: /uri | |
7028 | "##; | |
7029 | let expected = r##"<p><a href="/uri">link [bar</a></p> | |
7030 | "##; | |
7031 | ||
7032 | test_markdown_html(original, expected); | |
7033 | } | |
7034 | ||
7035 | #[test] | |
7036 | fn spec_test_526() { | |
7037 | let original = r##"[link *foo **bar** `#`*][ref] | |
7038 | ||
7039 | [ref]: /uri | |
7040 | "##; | |
416331ca XL |
7041 | let expected = |
7042 | r##"<p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p> | |
48663c56 XL |
7043 | "##; |
7044 | ||
7045 | test_markdown_html(original, expected); | |
7046 | } | |
7047 | ||
7048 | #[test] | |
7049 | fn spec_test_527() { | |
7050 | let original = r##"[![moon](moon.jpg)][ref] | |
7051 | ||
7052 | [ref]: /uri | |
7053 | "##; | |
7054 | let expected = r##"<p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p> | |
7055 | "##; | |
7056 | ||
7057 | test_markdown_html(original, expected); | |
7058 | } | |
7059 | ||
7060 | #[test] | |
7061 | fn spec_test_528() { | |
7062 | let original = r##"[foo [bar](/uri)][ref] | |
7063 | ||
7064 | [ref]: /uri | |
7065 | "##; | |
7066 | let expected = r##"<p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p> | |
7067 | "##; | |
7068 | ||
7069 | test_markdown_html(original, expected); | |
7070 | } | |
7071 | ||
7072 | #[test] | |
7073 | fn spec_test_529() { | |
7074 | let original = r##"[foo *bar [baz][ref]*][ref] | |
7075 | ||
7076 | [ref]: /uri | |
7077 | "##; | |
7078 | let expected = r##"<p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p> | |
7079 | "##; | |
7080 | ||
7081 | test_markdown_html(original, expected); | |
7082 | } | |
7083 | ||
7084 | #[test] | |
7085 | fn spec_test_530() { | |
7086 | let original = r##"*[foo*][ref] | |
7087 | ||
7088 | [ref]: /uri | |
7089 | "##; | |
7090 | let expected = r##"<p>*<a href="/uri">foo*</a></p> | |
7091 | "##; | |
7092 | ||
7093 | test_markdown_html(original, expected); | |
7094 | } | |
7095 | ||
7096 | #[test] | |
7097 | fn spec_test_531() { | |
7098 | let original = r##"[foo *bar][ref] | |
7099 | ||
7100 | [ref]: /uri | |
7101 | "##; | |
7102 | let expected = r##"<p><a href="/uri">foo *bar</a></p> | |
7103 | "##; | |
7104 | ||
7105 | test_markdown_html(original, expected); | |
7106 | } | |
7107 | ||
7108 | #[test] | |
7109 | fn spec_test_532() { | |
7110 | let original = r##"[foo <bar attr="][ref]"> | |
7111 | ||
7112 | [ref]: /uri | |
7113 | "##; | |
7114 | let expected = r##"<p>[foo <bar attr="][ref]"></p> | |
7115 | "##; | |
7116 | ||
7117 | test_markdown_html(original, expected); | |
7118 | } | |
7119 | ||
7120 | #[test] | |
7121 | fn spec_test_533() { | |
7122 | let original = r##"[foo`][ref]` | |
7123 | ||
7124 | [ref]: /uri | |
7125 | "##; | |
7126 | let expected = r##"<p>[foo<code>][ref]</code></p> | |
7127 | "##; | |
7128 | ||
7129 | test_markdown_html(original, expected); | |
7130 | } | |
7131 | ||
7132 | #[test] | |
7133 | fn spec_test_534() { | |
7134 | let original = r##"[foo<http://example.com/?search=][ref]> | |
7135 | ||
7136 | [ref]: /uri | |
7137 | "##; | |
7138 | let expected = r##"<p>[foo<a href="http://example.com/?search=%5D%5Bref%5D">http://example.com/?search=][ref]</a></p> | |
7139 | "##; | |
7140 | ||
7141 | test_markdown_html(original, expected); | |
7142 | } | |
7143 | ||
7144 | #[test] | |
7145 | fn spec_test_535() { | |
7146 | let original = r##"[foo][BaR] | |
7147 | ||
7148 | [bar]: /url "title" | |
7149 | "##; | |
7150 | let expected = r##"<p><a href="/url" title="title">foo</a></p> | |
7151 | "##; | |
7152 | ||
7153 | test_markdown_html(original, expected); | |
7154 | } | |
7155 | ||
7156 | #[test] | |
7157 | fn spec_test_536() { | |
7158 | let original = r##"[Толпой][Толпой] is a Russian word. | |
7159 | ||
7160 | [ТОЛПОЙ]: /url | |
7161 | "##; | |
7162 | let expected = r##"<p><a href="/url">Толпой</a> is a Russian word.</p> | |
7163 | "##; | |
7164 | ||
7165 | test_markdown_html(original, expected); | |
7166 | } | |
7167 | ||
7168 | #[test] | |
7169 | fn spec_test_537() { | |
7170 | let original = r##"[Foo | |
7171 | bar]: /url | |
7172 | ||
7173 | [Baz][Foo bar] | |
7174 | "##; | |
7175 | let expected = r##"<p><a href="/url">Baz</a></p> | |
7176 | "##; | |
7177 | ||
7178 | test_markdown_html(original, expected); | |
7179 | } | |
7180 | ||
7181 | #[test] | |
7182 | fn spec_test_538() { | |
7183 | let original = r##"[foo] [bar] | |
7184 | ||
7185 | [bar]: /url "title" | |
7186 | "##; | |
7187 | let expected = r##"<p>[foo] <a href="/url" title="title">bar</a></p> | |
7188 | "##; | |
7189 | ||
7190 | test_markdown_html(original, expected); | |
7191 | } | |
7192 | ||
7193 | #[test] | |
7194 | fn spec_test_539() { | |
7195 | let original = r##"[foo] | |
7196 | [bar] | |
7197 | ||
7198 | [bar]: /url "title" | |
7199 | "##; | |
7200 | let expected = r##"<p>[foo] | |
7201 | <a href="/url" title="title">bar</a></p> | |
7202 | "##; | |
7203 | ||
7204 | test_markdown_html(original, expected); | |
7205 | } | |
7206 | ||
7207 | #[test] | |
7208 | fn spec_test_540() { | |
7209 | let original = r##"[foo]: /url1 | |
7210 | ||
7211 | [foo]: /url2 | |
7212 | ||
7213 | [bar][foo] | |
7214 | "##; | |
7215 | let expected = r##"<p><a href="/url1">bar</a></p> | |
7216 | "##; | |
7217 | ||
7218 | test_markdown_html(original, expected); | |
7219 | } | |
7220 | ||
7221 | #[test] | |
7222 | fn spec_test_541() { | |
7223 | let original = r##"[bar][foo\!] | |
7224 | ||
7225 | [foo!]: /url | |
7226 | "##; | |
7227 | let expected = r##"<p>[bar][foo!]</p> | |
7228 | "##; | |
7229 | ||
7230 | test_markdown_html(original, expected); | |
7231 | } | |
7232 | ||
7233 | #[test] | |
7234 | fn spec_test_542() { | |
7235 | let original = r##"[foo][ref[] | |
7236 | ||
7237 | [ref[]: /uri | |
7238 | "##; | |
7239 | let expected = r##"<p>[foo][ref[]</p> | |
7240 | <p>[ref[]: /uri</p> | |
7241 | "##; | |
7242 | ||
7243 | test_markdown_html(original, expected); | |
7244 | } | |
7245 | ||
7246 | #[test] | |
7247 | fn spec_test_543() { | |
7248 | let original = r##"[foo][ref[bar]] | |
7249 | ||
7250 | [ref[bar]]: /uri | |
7251 | "##; | |
7252 | let expected = r##"<p>[foo][ref[bar]]</p> | |
7253 | <p>[ref[bar]]: /uri</p> | |
7254 | "##; | |
7255 | ||
7256 | test_markdown_html(original, expected); | |
7257 | } | |
7258 | ||
7259 | #[test] | |
7260 | fn spec_test_544() { | |
7261 | let original = r##"[[[foo]]] | |
7262 | ||
7263 | [[[foo]]]: /url | |
7264 | "##; | |
7265 | let expected = r##"<p>[[[foo]]]</p> | |
7266 | <p>[[[foo]]]: /url</p> | |
7267 | "##; | |
7268 | ||
7269 | test_markdown_html(original, expected); | |
7270 | } | |
7271 | ||
7272 | #[test] | |
7273 | fn spec_test_545() { | |
7274 | let original = r##"[foo][ref\[] | |
7275 | ||
7276 | [ref\[]: /uri | |
7277 | "##; | |
7278 | let expected = r##"<p><a href="/uri">foo</a></p> | |
7279 | "##; | |
7280 | ||
7281 | test_markdown_html(original, expected); | |
7282 | } | |
7283 | ||
7284 | #[test] | |
7285 | fn spec_test_546() { | |
7286 | let original = r##"[bar\\]: /uri | |
7287 | ||
7288 | [bar\\] | |
7289 | "##; | |
7290 | let expected = r##"<p><a href="/uri">bar\</a></p> | |
7291 | "##; | |
7292 | ||
7293 | test_markdown_html(original, expected); | |
7294 | } | |
7295 | ||
7296 | #[test] | |
7297 | fn spec_test_547() { | |
7298 | let original = r##"[] | |
7299 | ||
7300 | []: /uri | |
7301 | "##; | |
7302 | let expected = r##"<p>[]</p> | |
7303 | <p>[]: /uri</p> | |
7304 | "##; | |
7305 | ||
7306 | test_markdown_html(original, expected); | |
7307 | } | |
7308 | ||
7309 | #[test] | |
7310 | fn spec_test_548() { | |
7311 | let original = r##"[ | |
7312 | ] | |
7313 | ||
7314 | [ | |
7315 | ]: /uri | |
7316 | "##; | |
7317 | let expected = r##"<p>[ | |
7318 | ]</p> | |
7319 | <p>[ | |
7320 | ]: /uri</p> | |
7321 | "##; | |
7322 | ||
7323 | test_markdown_html(original, expected); | |
7324 | } | |
7325 | ||
7326 | #[test] | |
7327 | fn spec_test_549() { | |
7328 | let original = r##"[foo][] | |
7329 | ||
7330 | [foo]: /url "title" | |
7331 | "##; | |
7332 | let expected = r##"<p><a href="/url" title="title">foo</a></p> | |
7333 | "##; | |
7334 | ||
7335 | test_markdown_html(original, expected); | |
7336 | } | |
7337 | ||
7338 | #[test] | |
7339 | fn spec_test_550() { | |
7340 | let original = r##"[*foo* bar][] | |
7341 | ||
7342 | [*foo* bar]: /url "title" | |
7343 | "##; | |
7344 | let expected = r##"<p><a href="/url" title="title"><em>foo</em> bar</a></p> | |
7345 | "##; | |
7346 | ||
7347 | test_markdown_html(original, expected); | |
7348 | } | |
7349 | ||
7350 | #[test] | |
7351 | fn spec_test_551() { | |
7352 | let original = r##"[Foo][] | |
7353 | ||
7354 | [foo]: /url "title" | |
7355 | "##; | |
7356 | let expected = r##"<p><a href="/url" title="title">Foo</a></p> | |
7357 | "##; | |
7358 | ||
7359 | test_markdown_html(original, expected); | |
7360 | } | |
7361 | ||
7362 | #[test] | |
7363 | fn spec_test_552() { | |
7364 | let original = r##"[foo] | |
7365 | [] | |
7366 | ||
7367 | [foo]: /url "title" | |
7368 | "##; | |
7369 | let expected = r##"<p><a href="/url" title="title">foo</a> | |
7370 | []</p> | |
7371 | "##; | |
7372 | ||
7373 | test_markdown_html(original, expected); | |
7374 | } | |
7375 | ||
7376 | #[test] | |
7377 | fn spec_test_553() { | |
7378 | let original = r##"[foo] | |
7379 | ||
7380 | [foo]: /url "title" | |
7381 | "##; | |
7382 | let expected = r##"<p><a href="/url" title="title">foo</a></p> | |
7383 | "##; | |
7384 | ||
7385 | test_markdown_html(original, expected); | |
7386 | } | |
7387 | ||
7388 | #[test] | |
7389 | fn spec_test_554() { | |
7390 | let original = r##"[*foo* bar] | |
7391 | ||
7392 | [*foo* bar]: /url "title" | |
7393 | "##; | |
7394 | let expected = r##"<p><a href="/url" title="title"><em>foo</em> bar</a></p> | |
7395 | "##; | |
7396 | ||
7397 | test_markdown_html(original, expected); | |
7398 | } | |
7399 | ||
7400 | #[test] | |
7401 | fn spec_test_555() { | |
7402 | let original = r##"[[*foo* bar]] | |
7403 | ||
7404 | [*foo* bar]: /url "title" | |
7405 | "##; | |
7406 | let expected = r##"<p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p> | |
7407 | "##; | |
7408 | ||
7409 | test_markdown_html(original, expected); | |
7410 | } | |
7411 | ||
7412 | #[test] | |
7413 | fn spec_test_556() { | |
7414 | let original = r##"[[bar [foo] | |
7415 | ||
7416 | [foo]: /url | |
7417 | "##; | |
7418 | let expected = r##"<p>[[bar <a href="/url">foo</a></p> | |
7419 | "##; | |
7420 | ||
7421 | test_markdown_html(original, expected); | |
7422 | } | |
7423 | ||
7424 | #[test] | |
7425 | fn spec_test_557() { | |
7426 | let original = r##"[Foo] | |
7427 | ||
7428 | [foo]: /url "title" | |
7429 | "##; | |
7430 | let expected = r##"<p><a href="/url" title="title">Foo</a></p> | |
7431 | "##; | |
7432 | ||
7433 | test_markdown_html(original, expected); | |
7434 | } | |
7435 | ||
7436 | #[test] | |
7437 | fn spec_test_558() { | |
7438 | let original = r##"[foo] bar | |
7439 | ||
7440 | [foo]: /url | |
7441 | "##; | |
7442 | let expected = r##"<p><a href="/url">foo</a> bar</p> | |
7443 | "##; | |
7444 | ||
7445 | test_markdown_html(original, expected); | |
7446 | } | |
7447 | ||
7448 | #[test] | |
7449 | fn spec_test_559() { | |
7450 | let original = r##"\[foo] | |
7451 | ||
7452 | [foo]: /url "title" | |
7453 | "##; | |
7454 | let expected = r##"<p>[foo]</p> | |
7455 | "##; | |
7456 | ||
7457 | test_markdown_html(original, expected); | |
7458 | } | |
7459 | ||
7460 | #[test] | |
7461 | fn spec_test_560() { | |
7462 | let original = r##"[foo*]: /url | |
7463 | ||
7464 | *[foo*] | |
7465 | "##; | |
7466 | let expected = r##"<p>*<a href="/url">foo*</a></p> | |
7467 | "##; | |
7468 | ||
7469 | test_markdown_html(original, expected); | |
7470 | } | |
7471 | ||
7472 | #[test] | |
7473 | fn spec_test_561() { | |
7474 | let original = r##"[foo][bar] | |
7475 | ||
7476 | [foo]: /url1 | |
7477 | [bar]: /url2 | |
7478 | "##; | |
7479 | let expected = r##"<p><a href="/url2">foo</a></p> | |
7480 | "##; | |
7481 | ||
7482 | test_markdown_html(original, expected); | |
7483 | } | |
7484 | ||
7485 | #[test] | |
7486 | fn spec_test_562() { | |
7487 | let original = r##"[foo][] | |
7488 | ||
7489 | [foo]: /url1 | |
7490 | "##; | |
7491 | let expected = r##"<p><a href="/url1">foo</a></p> | |
7492 | "##; | |
7493 | ||
7494 | test_markdown_html(original, expected); | |
7495 | } | |
7496 | ||
7497 | #[test] | |
7498 | fn spec_test_563() { | |
7499 | let original = r##"[foo]() | |
7500 | ||
7501 | [foo]: /url1 | |
7502 | "##; | |
7503 | let expected = r##"<p><a href="">foo</a></p> | |
7504 | "##; | |
7505 | ||
7506 | test_markdown_html(original, expected); | |
7507 | } | |
7508 | ||
7509 | #[test] | |
7510 | fn spec_test_564() { | |
7511 | let original = r##"[foo](not a link) | |
7512 | ||
7513 | [foo]: /url1 | |
7514 | "##; | |
7515 | let expected = r##"<p><a href="/url1">foo</a>(not a link)</p> | |
7516 | "##; | |
7517 | ||
7518 | test_markdown_html(original, expected); | |
7519 | } | |
7520 | ||
7521 | #[test] | |
7522 | fn spec_test_565() { | |
7523 | let original = r##"[foo][bar][baz] | |
7524 | ||
7525 | [baz]: /url | |
7526 | "##; | |
7527 | let expected = r##"<p>[foo]<a href="/url">bar</a></p> | |
7528 | "##; | |
7529 | ||
7530 | test_markdown_html(original, expected); | |
7531 | } | |
7532 | ||
7533 | #[test] | |
7534 | fn spec_test_566() { | |
7535 | let original = r##"[foo][bar][baz] | |
7536 | ||
7537 | [baz]: /url1 | |
7538 | [bar]: /url2 | |
7539 | "##; | |
7540 | let expected = r##"<p><a href="/url2">foo</a><a href="/url1">baz</a></p> | |
7541 | "##; | |
7542 | ||
7543 | test_markdown_html(original, expected); | |
7544 | } | |
7545 | ||
7546 | #[test] | |
7547 | fn spec_test_567() { | |
7548 | let original = r##"[foo][bar][baz] | |
7549 | ||
7550 | [baz]: /url1 | |
7551 | [foo]: /url2 | |
7552 | "##; | |
7553 | let expected = r##"<p>[foo]<a href="/url1">bar</a></p> | |
7554 | "##; | |
7555 | ||
7556 | test_markdown_html(original, expected); | |
7557 | } | |
7558 | ||
7559 | #[test] | |
7560 | fn spec_test_568() { | |
7561 | let original = r##"![foo](/url "title") | |
7562 | "##; | |
7563 | let expected = r##"<p><img src="/url" alt="foo" title="title" /></p> | |
7564 | "##; | |
7565 | ||
7566 | test_markdown_html(original, expected); | |
7567 | } | |
7568 | ||
7569 | #[test] | |
7570 | fn spec_test_569() { | |
7571 | let original = r##"![foo *bar*] | |
7572 | ||
7573 | [foo *bar*]: train.jpg "train & tracks" | |
7574 | "##; | |
7575 | let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p> | |
7576 | "##; | |
7577 | ||
7578 | test_markdown_html(original, expected); | |
7579 | } | |
7580 | ||
7581 | #[test] | |
7582 | fn spec_test_570() { | |
7583 | let original = r##"![foo ![bar](/url)](/url2) | |
7584 | "##; | |
7585 | let expected = r##"<p><img src="/url2" alt="foo bar" /></p> | |
7586 | "##; | |
7587 | ||
7588 | test_markdown_html(original, expected); | |
7589 | } | |
7590 | ||
7591 | #[test] | |
7592 | fn spec_test_571() { | |
7593 | let original = r##"![foo [bar](/url)](/url2) | |
7594 | "##; | |
7595 | let expected = r##"<p><img src="/url2" alt="foo bar" /></p> | |
7596 | "##; | |
7597 | ||
7598 | test_markdown_html(original, expected); | |
7599 | } | |
7600 | ||
7601 | #[test] | |
7602 | fn spec_test_572() { | |
7603 | let original = r##"![foo *bar*][] | |
7604 | ||
7605 | [foo *bar*]: train.jpg "train & tracks" | |
7606 | "##; | |
7607 | let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p> | |
7608 | "##; | |
7609 | ||
7610 | test_markdown_html(original, expected); | |
7611 | } | |
7612 | ||
7613 | #[test] | |
7614 | fn spec_test_573() { | |
7615 | let original = r##"![foo *bar*][foobar] | |
7616 | ||
7617 | [FOOBAR]: train.jpg "train & tracks" | |
7618 | "##; | |
7619 | let expected = r##"<p><img src="train.jpg" alt="foo bar" title="train & tracks" /></p> | |
7620 | "##; | |
7621 | ||
7622 | test_markdown_html(original, expected); | |
7623 | } | |
7624 | ||
7625 | #[test] | |
7626 | fn spec_test_574() { | |
7627 | let original = r##"![foo](train.jpg) | |
7628 | "##; | |
7629 | let expected = r##"<p><img src="train.jpg" alt="foo" /></p> | |
7630 | "##; | |
7631 | ||
7632 | test_markdown_html(original, expected); | |
7633 | } | |
7634 | ||
7635 | #[test] | |
7636 | fn spec_test_575() { | |
7637 | let original = r##"My ![foo bar](/path/to/train.jpg "title" ) | |
7638 | "##; | |
7639 | let expected = r##"<p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p> | |
7640 | "##; | |
7641 | ||
7642 | test_markdown_html(original, expected); | |
7643 | } | |
7644 | ||
7645 | #[test] | |
7646 | fn spec_test_576() { | |
7647 | let original = r##"![foo](<url>) | |
7648 | "##; | |
7649 | let expected = r##"<p><img src="url" alt="foo" /></p> | |
7650 | "##; | |
7651 | ||
7652 | test_markdown_html(original, expected); | |
7653 | } | |
7654 | ||
7655 | #[test] | |
7656 | fn spec_test_577() { | |
7657 | let original = r##"![](/url) | |
7658 | "##; | |
7659 | let expected = r##"<p><img src="/url" alt="" /></p> | |
7660 | "##; | |
7661 | ||
7662 | test_markdown_html(original, expected); | |
7663 | } | |
7664 | ||
7665 | #[test] | |
7666 | fn spec_test_578() { | |
7667 | let original = r##"![foo][bar] | |
7668 | ||
7669 | [bar]: /url | |
7670 | "##; | |
7671 | let expected = r##"<p><img src="/url" alt="foo" /></p> | |
7672 | "##; | |
7673 | ||
7674 | test_markdown_html(original, expected); | |
7675 | } | |
7676 | ||
7677 | #[test] | |
7678 | fn spec_test_579() { | |
7679 | let original = r##"![foo][bar] | |
7680 | ||
7681 | [BAR]: /url | |
7682 | "##; | |
7683 | let expected = r##"<p><img src="/url" alt="foo" /></p> | |
7684 | "##; | |
7685 | ||
7686 | test_markdown_html(original, expected); | |
7687 | } | |
7688 | ||
7689 | #[test] | |
7690 | fn spec_test_580() { | |
7691 | let original = r##"![foo][] | |
7692 | ||
7693 | [foo]: /url "title" | |
7694 | "##; | |
7695 | let expected = r##"<p><img src="/url" alt="foo" title="title" /></p> | |
7696 | "##; | |
7697 | ||
7698 | test_markdown_html(original, expected); | |
7699 | } | |
7700 | ||
7701 | #[test] | |
7702 | fn spec_test_581() { | |
7703 | let original = r##"![*foo* bar][] | |
7704 | ||
7705 | [*foo* bar]: /url "title" | |
7706 | "##; | |
7707 | let expected = r##"<p><img src="/url" alt="foo bar" title="title" /></p> | |
7708 | "##; | |
7709 | ||
7710 | test_markdown_html(original, expected); | |
7711 | } | |
7712 | ||
7713 | #[test] | |
7714 | fn spec_test_582() { | |
7715 | let original = r##"![Foo][] | |
7716 | ||
7717 | [foo]: /url "title" | |
7718 | "##; | |
7719 | let expected = r##"<p><img src="/url" alt="Foo" title="title" /></p> | |
7720 | "##; | |
7721 | ||
7722 | test_markdown_html(original, expected); | |
7723 | } | |
7724 | ||
7725 | #[test] | |
7726 | fn spec_test_583() { | |
7727 | let original = r##"![foo] | |
7728 | [] | |
7729 | ||
7730 | [foo]: /url "title" | |
7731 | "##; | |
7732 | let expected = r##"<p><img src="/url" alt="foo" title="title" /> | |
7733 | []</p> | |
7734 | "##; | |
7735 | ||
7736 | test_markdown_html(original, expected); | |
7737 | } | |
7738 | ||
7739 | #[test] | |
7740 | fn spec_test_584() { | |
7741 | let original = r##"![foo] | |
7742 | ||
7743 | [foo]: /url "title" | |
7744 | "##; | |
7745 | let expected = r##"<p><img src="/url" alt="foo" title="title" /></p> | |
7746 | "##; | |
7747 | ||
7748 | test_markdown_html(original, expected); | |
7749 | } | |
7750 | ||
7751 | #[test] | |
7752 | fn spec_test_585() { | |
7753 | let original = r##"![*foo* bar] | |
7754 | ||
7755 | [*foo* bar]: /url "title" | |
7756 | "##; | |
7757 | let expected = r##"<p><img src="/url" alt="foo bar" title="title" /></p> | |
7758 | "##; | |
7759 | ||
7760 | test_markdown_html(original, expected); | |
7761 | } | |
7762 | ||
7763 | #[test] | |
7764 | fn spec_test_586() { | |
7765 | let original = r##"![[foo]] | |
7766 | ||
7767 | [[foo]]: /url "title" | |
7768 | "##; | |
7769 | let expected = r##"<p>![[foo]]</p> | |
7770 | <p>[[foo]]: /url "title"</p> | |
7771 | "##; | |
7772 | ||
7773 | test_markdown_html(original, expected); | |
7774 | } | |
7775 | ||
7776 | #[test] | |
7777 | fn spec_test_587() { | |
7778 | let original = r##"![Foo] | |
7779 | ||
7780 | [foo]: /url "title" | |
7781 | "##; | |
7782 | let expected = r##"<p><img src="/url" alt="Foo" title="title" /></p> | |
7783 | "##; | |
7784 | ||
7785 | test_markdown_html(original, expected); | |
7786 | } | |
7787 | ||
7788 | #[test] | |
7789 | fn spec_test_588() { | |
7790 | let original = r##"!\[foo] | |
7791 | ||
7792 | [foo]: /url "title" | |
7793 | "##; | |
7794 | let expected = r##"<p>![foo]</p> | |
7795 | "##; | |
7796 | ||
7797 | test_markdown_html(original, expected); | |
7798 | } | |
7799 | ||
7800 | #[test] | |
7801 | fn spec_test_589() { | |
7802 | let original = r##"\![foo] | |
7803 | ||
7804 | [foo]: /url "title" | |
7805 | "##; | |
7806 | let expected = r##"<p>!<a href="/url" title="title">foo</a></p> | |
7807 | "##; | |
7808 | ||
7809 | test_markdown_html(original, expected); | |
7810 | } | |
7811 | ||
7812 | #[test] | |
7813 | fn spec_test_590() { | |
7814 | let original = r##"<http://foo.bar.baz> | |
7815 | "##; | |
7816 | let expected = r##"<p><a href="http://foo.bar.baz">http://foo.bar.baz</a></p> | |
7817 | "##; | |
7818 | ||
7819 | test_markdown_html(original, expected); | |
7820 | } | |
7821 | ||
7822 | #[test] | |
7823 | fn spec_test_591() { | |
7824 | let original = r##"<http://foo.bar.baz/test?q=hello&id=22&boolean> | |
7825 | "##; | |
7826 | 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> | |
7827 | "##; | |
7828 | ||
7829 | test_markdown_html(original, expected); | |
7830 | } | |
7831 | ||
7832 | #[test] | |
7833 | fn spec_test_592() { | |
7834 | let original = r##"<irc://foo.bar:2233/baz> | |
7835 | "##; | |
7836 | let expected = r##"<p><a href="irc://foo.bar:2233/baz">irc://foo.bar:2233/baz</a></p> | |
7837 | "##; | |
7838 | ||
7839 | test_markdown_html(original, expected); | |
7840 | } | |
7841 | ||
7842 | #[test] | |
7843 | fn spec_test_593() { | |
7844 | let original = r##"<MAILTO:FOO@BAR.BAZ> | |
7845 | "##; | |
7846 | let expected = r##"<p><a href="MAILTO:FOO@BAR.BAZ">MAILTO:FOO@BAR.BAZ</a></p> | |
7847 | "##; | |
7848 | ||
7849 | test_markdown_html(original, expected); | |
7850 | } | |
7851 | ||
7852 | #[test] | |
7853 | fn spec_test_594() { | |
7854 | let original = r##"<a+b+c:d> | |
7855 | "##; | |
7856 | let expected = r##"<p><a href="a+b+c:d">a+b+c:d</a></p> | |
7857 | "##; | |
7858 | ||
7859 | test_markdown_html(original, expected); | |
7860 | } | |
7861 | ||
7862 | #[test] | |
7863 | fn spec_test_595() { | |
7864 | let original = r##"<made-up-scheme://foo,bar> | |
7865 | "##; | |
7866 | let expected = r##"<p><a href="made-up-scheme://foo,bar">made-up-scheme://foo,bar</a></p> | |
7867 | "##; | |
7868 | ||
7869 | test_markdown_html(original, expected); | |
7870 | } | |
7871 | ||
7872 | #[test] | |
7873 | fn spec_test_596() { | |
7874 | let original = r##"<http://../> | |
7875 | "##; | |
7876 | let expected = r##"<p><a href="http://../">http://../</a></p> | |
7877 | "##; | |
7878 | ||
7879 | test_markdown_html(original, expected); | |
7880 | } | |
7881 | ||
7882 | #[test] | |
7883 | fn spec_test_597() { | |
7884 | let original = r##"<localhost:5001/foo> | |
7885 | "##; | |
7886 | let expected = r##"<p><a href="localhost:5001/foo">localhost:5001/foo</a></p> | |
7887 | "##; | |
7888 | ||
7889 | test_markdown_html(original, expected); | |
7890 | } | |
7891 | ||
7892 | #[test] | |
7893 | fn spec_test_598() { | |
7894 | let original = r##"<http://foo.bar/baz bim> | |
7895 | "##; | |
7896 | let expected = r##"<p><http://foo.bar/baz bim></p> | |
7897 | "##; | |
7898 | ||
7899 | test_markdown_html(original, expected); | |
7900 | } | |
7901 | ||
7902 | #[test] | |
7903 | fn spec_test_599() { | |
7904 | let original = r##"<http://example.com/\[\> | |
7905 | "##; | |
7906 | let expected = r##"<p><a href="http://example.com/%5C%5B%5C">http://example.com/\[\</a></p> | |
7907 | "##; | |
7908 | ||
7909 | test_markdown_html(original, expected); | |
7910 | } | |
7911 | ||
7912 | #[test] | |
7913 | fn spec_test_600() { | |
7914 | let original = r##"<foo@bar.example.com> | |
7915 | "##; | |
7916 | let expected = r##"<p><a href="mailto:foo@bar.example.com">foo@bar.example.com</a></p> | |
7917 | "##; | |
7918 | ||
7919 | test_markdown_html(original, expected); | |
7920 | } | |
7921 | ||
7922 | #[test] | |
7923 | fn spec_test_601() { | |
7924 | let original = r##"<foo+special@Bar.baz-bar0.com> | |
7925 | "##; | |
416331ca XL |
7926 | let expected = |
7927 | r##"<p><a href="mailto:foo+special@Bar.baz-bar0.com">foo+special@Bar.baz-bar0.com</a></p> | |
48663c56 XL |
7928 | "##; |
7929 | ||
7930 | test_markdown_html(original, expected); | |
7931 | } | |
7932 | ||
7933 | #[test] | |
7934 | fn spec_test_602() { | |
7935 | let original = r##"<foo\+@bar.example.com> | |
7936 | "##; | |
7937 | let expected = r##"<p><foo+@bar.example.com></p> | |
7938 | "##; | |
7939 | ||
7940 | test_markdown_html(original, expected); | |
7941 | } | |
7942 | ||
7943 | #[test] | |
7944 | fn spec_test_603() { | |
7945 | let original = r##"<> | |
7946 | "##; | |
7947 | let expected = r##"<p><></p> | |
7948 | "##; | |
7949 | ||
7950 | test_markdown_html(original, expected); | |
7951 | } | |
7952 | ||
7953 | #[test] | |
7954 | fn spec_test_604() { | |
7955 | let original = r##"< http://foo.bar > | |
7956 | "##; | |
7957 | let expected = r##"<p>< http://foo.bar ></p> | |
7958 | "##; | |
7959 | ||
7960 | test_markdown_html(original, expected); | |
7961 | } | |
7962 | ||
7963 | #[test] | |
7964 | fn spec_test_605() { | |
7965 | let original = r##"<m:abc> | |
7966 | "##; | |
7967 | let expected = r##"<p><m:abc></p> | |
7968 | "##; | |
7969 | ||
7970 | test_markdown_html(original, expected); | |
7971 | } | |
7972 | ||
7973 | #[test] | |
7974 | fn spec_test_606() { | |
7975 | let original = r##"<foo.bar.baz> | |
7976 | "##; | |
7977 | let expected = r##"<p><foo.bar.baz></p> | |
7978 | "##; | |
7979 | ||
7980 | test_markdown_html(original, expected); | |
7981 | } | |
7982 | ||
7983 | #[test] | |
7984 | fn spec_test_607() { | |
7985 | let original = r##"http://example.com | |
7986 | "##; | |
7987 | let expected = r##"<p>http://example.com</p> | |
7988 | "##; | |
7989 | ||
7990 | test_markdown_html(original, expected); | |
7991 | } | |
7992 | ||
7993 | #[test] | |
7994 | fn spec_test_608() { | |
7995 | let original = r##"foo@bar.example.com | |
7996 | "##; | |
7997 | let expected = r##"<p>foo@bar.example.com</p> | |
7998 | "##; | |
7999 | ||
8000 | test_markdown_html(original, expected); | |
8001 | } | |
8002 | ||
8003 | #[test] | |
8004 | fn spec_test_609() { | |
8005 | let original = r##"<a><bab><c2c> | |
8006 | "##; | |
8007 | let expected = r##"<p><a><bab><c2c></p> | |
8008 | "##; | |
8009 | ||
8010 | test_markdown_html(original, expected); | |
8011 | } | |
8012 | ||
8013 | #[test] | |
8014 | fn spec_test_610() { | |
8015 | let original = r##"<a/><b2/> | |
8016 | "##; | |
8017 | let expected = r##"<p><a/><b2/></p> | |
8018 | "##; | |
8019 | ||
8020 | test_markdown_html(original, expected); | |
8021 | } | |
8022 | ||
8023 | #[test] | |
8024 | fn spec_test_611() { | |
8025 | let original = r##"<a /><b2 | |
8026 | data="foo" > | |
8027 | "##; | |
8028 | let expected = r##"<p><a /><b2 | |
8029 | data="foo" ></p> | |
8030 | "##; | |
8031 | ||
8032 | test_markdown_html(original, expected); | |
8033 | } | |
8034 | ||
8035 | #[test] | |
8036 | fn spec_test_612() { | |
8037 | let original = r##"<a foo="bar" bam = 'baz <em>"</em>' | |
8038 | _boolean zoop:33=zoop:33 /> | |
8039 | "##; | |
8040 | let expected = r##"<p><a foo="bar" bam = 'baz <em>"</em>' | |
8041 | _boolean zoop:33=zoop:33 /></p> | |
8042 | "##; | |
8043 | ||
8044 | test_markdown_html(original, expected); | |
8045 | } | |
8046 | ||
8047 | #[test] | |
8048 | fn spec_test_613() { | |
8049 | let original = r##"Foo <responsive-image src="foo.jpg" /> | |
8050 | "##; | |
8051 | let expected = r##"<p>Foo <responsive-image src="foo.jpg" /></p> | |
8052 | "##; | |
8053 | ||
8054 | test_markdown_html(original, expected); | |
8055 | } | |
8056 | ||
8057 | #[test] | |
8058 | fn spec_test_614() { | |
8059 | let original = r##"<33> <__> | |
8060 | "##; | |
8061 | let expected = r##"<p><33> <__></p> | |
8062 | "##; | |
8063 | ||
8064 | test_markdown_html(original, expected); | |
8065 | } | |
8066 | ||
8067 | #[test] | |
8068 | fn spec_test_615() { | |
8069 | let original = r##"<a h*#ref="hi"> | |
8070 | "##; | |
8071 | let expected = r##"<p><a h*#ref="hi"></p> | |
8072 | "##; | |
8073 | ||
8074 | test_markdown_html(original, expected); | |
8075 | } | |
8076 | ||
8077 | #[test] | |
8078 | fn spec_test_616() { | |
8079 | let original = r##"<a href="hi'> <a href=hi'> | |
8080 | "##; | |
8081 | let expected = r##"<p><a href="hi'> <a href=hi'></p> | |
8082 | "##; | |
8083 | ||
8084 | test_markdown_html(original, expected); | |
8085 | } | |
8086 | ||
8087 | #[test] | |
8088 | fn spec_test_617() { | |
8089 | let original = r##"< a>< | |
8090 | foo><bar/ > | |
8091 | <foo bar=baz | |
8092 | bim!bop /> | |
8093 | "##; | |
8094 | let expected = r##"<p>< a>< | |
8095 | foo><bar/ > | |
8096 | <foo bar=baz | |
8097 | bim!bop /></p> | |
8098 | "##; | |
8099 | ||
8100 | test_markdown_html(original, expected); | |
8101 | } | |
8102 | ||
8103 | #[test] | |
8104 | fn spec_test_618() { | |
8105 | let original = r##"<a href='bar'title=title> | |
8106 | "##; | |
8107 | let expected = r##"<p><a href='bar'title=title></p> | |
8108 | "##; | |
8109 | ||
8110 | test_markdown_html(original, expected); | |
8111 | } | |
8112 | ||
8113 | #[test] | |
8114 | fn spec_test_619() { | |
8115 | let original = r##"</a></foo > | |
8116 | "##; | |
8117 | let expected = r##"<p></a></foo ></p> | |
8118 | "##; | |
8119 | ||
8120 | test_markdown_html(original, expected); | |
8121 | } | |
8122 | ||
8123 | #[test] | |
8124 | fn spec_test_620() { | |
8125 | let original = r##"</a href="foo"> | |
8126 | "##; | |
8127 | let expected = r##"<p></a href="foo"></p> | |
8128 | "##; | |
8129 | ||
8130 | test_markdown_html(original, expected); | |
8131 | } | |
8132 | ||
8133 | #[test] | |
8134 | fn spec_test_621() { | |
8135 | let original = r##"foo <!-- this is a | |
8136 | comment - with hyphen --> | |
8137 | "##; | |
8138 | let expected = r##"<p>foo <!-- this is a | |
8139 | comment - with hyphen --></p> | |
8140 | "##; | |
8141 | ||
8142 | test_markdown_html(original, expected); | |
8143 | } | |
8144 | ||
8145 | #[test] | |
8146 | fn spec_test_622() { | |
8147 | let original = r##"foo <!-- not a comment -- two hyphens --> | |
8148 | "##; | |
8149 | let expected = r##"<p>foo <!-- not a comment -- two hyphens --></p> | |
8150 | "##; | |
8151 | ||
8152 | test_markdown_html(original, expected); | |
8153 | } | |
8154 | ||
8155 | #[test] | |
8156 | fn spec_test_623() { | |
8157 | let original = r##"foo <!--> foo --> | |
8158 | ||
8159 | foo <!-- foo---> | |
8160 | "##; | |
8161 | let expected = r##"<p>foo <!--> foo --></p> | |
8162 | <p>foo <!-- foo---></p> | |
8163 | "##; | |
8164 | ||
8165 | test_markdown_html(original, expected); | |
8166 | } | |
8167 | ||
8168 | #[test] | |
8169 | fn spec_test_624() { | |
8170 | let original = r##"foo <?php echo $a; ?> | |
8171 | "##; | |
8172 | let expected = r##"<p>foo <?php echo $a; ?></p> | |
8173 | "##; | |
8174 | ||
8175 | test_markdown_html(original, expected); | |
8176 | } | |
8177 | ||
8178 | #[test] | |
8179 | fn spec_test_625() { | |
8180 | let original = r##"foo <!ELEMENT br EMPTY> | |
8181 | "##; | |
8182 | let expected = r##"<p>foo <!ELEMENT br EMPTY></p> | |
8183 | "##; | |
8184 | ||
8185 | test_markdown_html(original, expected); | |
8186 | } | |
8187 | ||
8188 | #[test] | |
8189 | fn spec_test_626() { | |
8190 | let original = r##"foo <![CDATA[>&<]]> | |
8191 | "##; | |
8192 | let expected = r##"<p>foo <![CDATA[>&<]]></p> | |
8193 | "##; | |
8194 | ||
8195 | test_markdown_html(original, expected); | |
8196 | } | |
8197 | ||
8198 | #[test] | |
8199 | fn spec_test_627() { | |
8200 | let original = r##"foo <a href="ö"> | |
8201 | "##; | |
8202 | let expected = r##"<p>foo <a href="ö"></p> | |
8203 | "##; | |
8204 | ||
8205 | test_markdown_html(original, expected); | |
8206 | } | |
8207 | ||
8208 | #[test] | |
8209 | fn spec_test_628() { | |
8210 | let original = r##"foo <a href="\*"> | |
8211 | "##; | |
8212 | let expected = r##"<p>foo <a href="\*"></p> | |
8213 | "##; | |
8214 | ||
8215 | test_markdown_html(original, expected); | |
8216 | } | |
8217 | ||
8218 | #[test] | |
8219 | fn spec_test_629() { | |
8220 | let original = r##"<a href="\""> | |
8221 | "##; | |
8222 | let expected = r##"<p><a href="""></p> | |
8223 | "##; | |
8224 | ||
8225 | test_markdown_html(original, expected); | |
8226 | } | |
8227 | ||
8228 | #[test] | |
8229 | fn spec_test_630() { | |
8230 | let original = r##"foo | |
8231 | baz | |
8232 | "##; | |
8233 | let expected = r##"<p>foo<br /> | |
8234 | baz</p> | |
8235 | "##; | |
8236 | ||
8237 | test_markdown_html(original, expected); | |
8238 | } | |
8239 | ||
8240 | #[test] | |
8241 | fn spec_test_631() { | |
8242 | let original = r##"foo\ | |
8243 | baz | |
8244 | "##; | |
8245 | let expected = r##"<p>foo<br /> | |
8246 | baz</p> | |
8247 | "##; | |
8248 | ||
8249 | test_markdown_html(original, expected); | |
8250 | } | |
8251 | ||
8252 | #[test] | |
8253 | fn spec_test_632() { | |
8254 | let original = r##"foo | |
8255 | baz | |
8256 | "##; | |
8257 | let expected = r##"<p>foo<br /> | |
8258 | baz</p> | |
8259 | "##; | |
8260 | ||
8261 | test_markdown_html(original, expected); | |
8262 | } | |
8263 | ||
8264 | #[test] | |
8265 | fn spec_test_633() { | |
8266 | let original = r##"foo | |
8267 | bar | |
8268 | "##; | |
8269 | let expected = r##"<p>foo<br /> | |
8270 | bar</p> | |
8271 | "##; | |
8272 | ||
8273 | test_markdown_html(original, expected); | |
8274 | } | |
8275 | ||
8276 | #[test] | |
8277 | fn spec_test_634() { | |
8278 | let original = r##"foo\ | |
8279 | bar | |
8280 | "##; | |
8281 | let expected = r##"<p>foo<br /> | |
8282 | bar</p> | |
8283 | "##; | |
8284 | ||
8285 | test_markdown_html(original, expected); | |
8286 | } | |
8287 | ||
8288 | #[test] | |
8289 | fn spec_test_635() { | |
8290 | let original = r##"*foo | |
8291 | bar* | |
8292 | "##; | |
8293 | let expected = r##"<p><em>foo<br /> | |
8294 | bar</em></p> | |
8295 | "##; | |
8296 | ||
8297 | test_markdown_html(original, expected); | |
8298 | } | |
8299 | ||
8300 | #[test] | |
8301 | fn spec_test_636() { | |
8302 | let original = r##"*foo\ | |
8303 | bar* | |
8304 | "##; | |
8305 | let expected = r##"<p><em>foo<br /> | |
8306 | bar</em></p> | |
8307 | "##; | |
8308 | ||
8309 | test_markdown_html(original, expected); | |
8310 | } | |
8311 | ||
8312 | #[test] | |
8313 | fn spec_test_637() { | |
8314 | let original = r##"`code | |
8315 | span` | |
8316 | "##; | |
8317 | let expected = r##"<p><code>code span</code></p> | |
8318 | "##; | |
8319 | ||
8320 | test_markdown_html(original, expected); | |
8321 | } | |
8322 | ||
8323 | #[test] | |
8324 | fn spec_test_638() { | |
8325 | let original = r##"`code\ | |
8326 | span` | |
8327 | "##; | |
8328 | let expected = r##"<p><code>code\ span</code></p> | |
8329 | "##; | |
8330 | ||
8331 | test_markdown_html(original, expected); | |
8332 | } | |
8333 | ||
8334 | #[test] | |
8335 | fn spec_test_639() { | |
8336 | let original = r##"<a href="foo | |
8337 | bar"> | |
8338 | "##; | |
8339 | let expected = r##"<p><a href="foo | |
8340 | bar"></p> | |
8341 | "##; | |
8342 | ||
8343 | test_markdown_html(original, expected); | |
8344 | } | |
8345 | ||
8346 | #[test] | |
8347 | fn spec_test_640() { | |
8348 | let original = r##"<a href="foo\ | |
8349 | bar"> | |
8350 | "##; | |
8351 | let expected = r##"<p><a href="foo\ | |
8352 | bar"></p> | |
8353 | "##; | |
8354 | ||
8355 | test_markdown_html(original, expected); | |
8356 | } | |
8357 | ||
8358 | #[test] | |
8359 | fn spec_test_641() { | |
8360 | let original = r##"foo\ | |
8361 | "##; | |
8362 | let expected = r##"<p>foo\</p> | |
8363 | "##; | |
8364 | ||
8365 | test_markdown_html(original, expected); | |
8366 | } | |
8367 | ||
8368 | #[test] | |
8369 | fn spec_test_642() { | |
8370 | let original = r##"foo | |
8371 | "##; | |
8372 | let expected = r##"<p>foo</p> | |
8373 | "##; | |
8374 | ||
8375 | test_markdown_html(original, expected); | |
8376 | } | |
8377 | ||
8378 | #[test] | |
8379 | fn spec_test_643() { | |
8380 | let original = r##"### foo\ | |
8381 | "##; | |
8382 | let expected = r##"<h3>foo\</h3> | |
8383 | "##; | |
8384 | ||
8385 | test_markdown_html(original, expected); | |
8386 | } | |
8387 | ||
8388 | #[test] | |
8389 | fn spec_test_644() { | |
8390 | let original = r##"### foo | |
8391 | "##; | |
8392 | let expected = r##"<h3>foo</h3> | |
8393 | "##; | |
8394 | ||
8395 | test_markdown_html(original, expected); | |
8396 | } | |
8397 | ||
8398 | #[test] | |
8399 | fn spec_test_645() { | |
8400 | let original = r##"foo | |
8401 | baz | |
8402 | "##; | |
8403 | let expected = r##"<p>foo | |
8404 | baz</p> | |
8405 | "##; | |
8406 | ||
8407 | test_markdown_html(original, expected); | |
8408 | } | |
8409 | ||
8410 | #[test] | |
8411 | fn spec_test_646() { | |
8412 | let original = r##"foo | |
8413 | baz | |
8414 | "##; | |
8415 | let expected = r##"<p>foo | |
8416 | baz</p> | |
8417 | "##; | |
8418 | ||
8419 | test_markdown_html(original, expected); | |
8420 | } | |
8421 | ||
8422 | #[test] | |
8423 | fn spec_test_647() { | |
8424 | let original = r##"hello $.;'there | |
8425 | "##; | |
8426 | let expected = r##"<p>hello $.;'there</p> | |
8427 | "##; | |
8428 | ||
8429 | test_markdown_html(original, expected); | |
8430 | } | |
8431 | ||
8432 | #[test] | |
8433 | fn spec_test_648() { | |
8434 | let original = r##"Foo χρῆν | |
8435 | "##; | |
8436 | let expected = r##"<p>Foo χρῆν</p> | |
8437 | "##; | |
8438 | ||
8439 | test_markdown_html(original, expected); | |
8440 | } | |
8441 | ||
8442 | #[test] | |
8443 | fn spec_test_649() { | |
8444 | let original = r##"Multiple spaces | |
8445 | "##; | |
8446 | let expected = r##"<p>Multiple spaces</p> | |
8447 | "##; | |
8448 | ||
8449 | test_markdown_html(original, expected); | |
416331ca | 8450 | } |