Commit 74e5f7a9a79a81af66d5dde47f2b33907c147a6f

Martin Mitas 2024-01-16T14:56:09

Tests: Specify md2html command line options for each example as needed. Previously the caller (or the script scripts/run_tests.sh) needed to know what options to specify.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 53ce7fd..b5c1ff3 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -36,43 +36,43 @@ $PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/coverage.txt" -p "$PROGRAM"
 
 echo
 echo "Permissive e-mail autolinks extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-email-autolinks.txt" -p "$PROGRAM --fpermissive-email-autolinks"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-email-autolinks.txt" -p "$PROGRAM"
 
 echo
 echo "Permissive URL autolinks extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-url-autolinks.txt" -p "$PROGRAM --fpermissive-url-autolinks"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-url-autolinks.txt" -p "$PROGRAM"
 
 echo
 echo "WWW autolinks extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-www-autolinks.txt" -p "$PROGRAM --fpermissive-www-autolinks"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/permissive-www-autolinks.txt" -p "$PROGRAM"
 
 echo
 echo "Hard soft breaks extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/hard-soft-breaks.txt" -p "$PROGRAM --fhard-soft-breaks"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/hard-soft-breaks.txt" -p "$PROGRAM"
 
 echo
 echo "Tables extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/tables.txt" -p "$PROGRAM --ftables"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/tables.txt" -p "$PROGRAM"
 
 echo
 echo "Strikethrough extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/strikethrough.txt" -p "$PROGRAM --fstrikethrough"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/strikethrough.txt" -p "$PROGRAM"
 
 echo
 echo "Task lists extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/tasklists.txt" -p "$PROGRAM --ftasklists"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/tasklists.txt" -p "$PROGRAM"
 
 echo
 echo "LaTeX extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/latex-math.txt" -p "$PROGRAM --flatex-math"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/latex-math.txt" -p "$PROGRAM"
 
 echo
 echo "Wiki links extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/wiki-links.txt" -p "$PROGRAM --fwiki-links --ftables"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/wiki-links.txt" -p "$PROGRAM"
 
 echo
 echo "Underline extension:"
-$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/underline.txt" -p "$PROGRAM --funderline"
+$PYTHON "$TEST_DIR/spec_tests.py" -s "$TEST_DIR/underline.txt" -p "$PROGRAM"
 
 echo
 echo "Pathological input:"
diff --git a/test/hard-soft-breaks.txt b/test/hard-soft-breaks.txt
index 45cb383..b33f6c7 100644
--- a/test/hard-soft-breaks.txt
+++ b/test/hard-soft-breaks.txt
@@ -10,6 +10,8 @@ baz
 .
 <p>foo<br>
 baz</p>
+.
+--fhard-soft-breaks
 ````````````````````````````````
 
 ```````````````````````````````` example
@@ -21,4 +23,6 @@ render soft line breaks as hard line breaks.
 <p>A quote from the CommonMark Spec below:</p>
 <p>A renderer may also provide an option to<br>
 render soft line breaks as hard line breaks.</p>
+.
+--fhard-soft-breaks
 ````````````````````````````````
diff --git a/test/latex-math.txt b/test/latex-math.txt
index 2a5774c..1f44fea 100644
--- a/test/latex-math.txt
+++ b/test/latex-math.txt
@@ -11,6 +11,8 @@ A math span is is any text wrapped in dollars or double dollars (`$...$` or
 $a+b=c$ Hello, world!
 .
 <p><x-equation>a+b=c</x-equation> Hello, world!</p>
+.
+--flatex-math
 ````````````````````````````````
 
 If the double dollar sign is used, the math span is a display math span.
@@ -19,6 +21,8 @@ If the double dollar sign is used, the math span is a display math span.
 This is a display equation: $$\int_a^b x dx$$.
 .
 <p>This is a display equation: <x-equation type="display">\int_a^b x dx</x-equation>.</p>
+.
+--flatex-math
 ````````````````````````````````
 
 Math spans may span multiple lines as they are normal spans:
@@ -30,6 +34,8 @@ f(x) dx
 $$
 .
 <p><x-equation type="display">\int_a^b f(x) dx </x-equation></p>
+.
+--flatex-math
 ````````````````````````````````
 
 Note though that many (simple) renderers may output the math spans just as a
diff --git a/test/permissive-email-autolinks.txt b/test/permissive-email-autolinks.txt
index 12e8786..f2e8997 100644
--- a/test/permissive-email-autolinks.txt
+++ b/test/permissive-email-autolinks.txt
@@ -12,6 +12,8 @@ This is standard CommonMark e-mail autolink:
 E-mail: <mailto:john.doe@gmail.com>
 .
 <p>E-mail: <a href="mailto:john.doe@gmail.com">mailto:john.doe@gmail.com</a></p>
+.
+--fpermissive-email-autolinks
 ````````````````````````````````
 
 With the permissive autolinks enabled, this is sufficient:
@@ -20,6 +22,8 @@ With the permissive autolinks enabled, this is sufficient:
 E-mail: john.doe@gmail.com
 .
 <p>E-mail: <a href="mailto:john.doe@gmail.com">john.doe@gmail.com</a></p>
+.
+--fpermissive-email-autolinks
 ````````````````````````````````
 
 `+` can occur before the `@`, but not after.
@@ -28,6 +32,8 @@ E-mail: john.doe@gmail.com
 hello@mail+xyz.example isn't valid, but hello+xyz@mail.example is.
 .
 <p>hello@mail+xyz.example isn't valid, but <a href="mailto:hello+xyz@mail.example">hello+xyz@mail.example</a> is.</p>
+.
+--fpermissive-email-autolinks
 ````````````````````````````````
 
 `.`, `-`, and `_` can occur on both sides of the `@`, but only `.` may occur at
@@ -47,4 +53,6 @@ a.b-c_d@a.b_
 <p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a>.</p>
 <p>a.b-c_d@a.b-</p>
 <p>a.b-c_d@a.b_</p>
+.
+--fpermissive-email-autolinks
 ````````````````````````````````
diff --git a/test/permissive-url-autolinks.txt b/test/permissive-url-autolinks.txt
index dfd6b5d..e449d98 100644
--- a/test/permissive-url-autolinks.txt
+++ b/test/permissive-url-autolinks.txt
@@ -11,6 +11,8 @@ This is a standard CommonMark autolink:
 Homepage: <https://github.com/mity/md4c>
 .
 <p>Homepage: <a href="https://github.com/mity/md4c">https://github.com/mity/md4c</a></p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 With the permissive autolinks enabled, this is sufficient:
@@ -19,6 +21,8 @@ With the permissive autolinks enabled, this is sufficient:
 Homepage: https://github.com/mity/md4c
 .
 <p>Homepage: <a href="https://github.com/mity/md4c">https://github.com/mity/md4c</a></p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 But this permissive autolink feature can work only for very widely used URL
@@ -30,6 +34,8 @@ That's why this is not a permissive autolink:
 ssh://root@example.com
 .
 <p>ssh://root@example.com</p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 The same rules for path validation as for permissivve WWW autolinks apply.
@@ -39,6 +45,8 @@ Therefore the final question mark here is not part of the autolink:
 Have you ever visited http://www.zombo.com?
 .
 <p>Have you ever visited <a href="http://www.zombo.com">http://www.zombo.com</a>?</p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 But in contrast, in this example it is:
@@ -47,6 +55,8 @@ But in contrast, in this example it is:
 http://www.bing.com/search?q=md4c
 .
 <p><a href="http://www.bing.com/search?q=md4c">http://www.bing.com/search?q=md4c</a></p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 And finally one complex example:
@@ -61,6 +71,8 @@ Anonymous FTP is available at ftp://foo.bar.baz.
 <p><a href="http://commonmark.org">http://commonmark.org</a></p>
 <p>(Visit <a href="https://encrypted.google.com/search?q=Markup+(business)">https://encrypted.google.com/search?q=Markup+(business)</a>)</p>
 <p>Anonymous FTP is available at <a href="ftp://foo.bar.baz">ftp://foo.bar.baz</a>.</p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 
@@ -72,12 +84,16 @@ Anonymous FTP is available at ftp://foo.bar.baz.
 This is [link](http://github.com/).
 .
 <p>This is <a href="http://github.com/">link</a>.</p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 ```````````````````````````````` example
 This is [link](http://github.com/)X
 .
 <p>This is <a href="http://github.com/">link</a>X</p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 
@@ -87,6 +103,8 @@ This is [link](http://github.com/)X
 *(http://example.com)*
 .
 <p><em>(<a href="http://example.com">http://example.com</a>)</em></p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
 
 
@@ -96,4 +114,6 @@ This is [link](http://github.com/)X
 [http://example.com](http://example.com)
 .
 <p><a href="http://example.com">http://example.com</a></p>
+.
+--fpermissive-url-autolinks
 ````````````````````````````````
diff --git a/test/permissive-www-autolinks.txt b/test/permissive-www-autolinks.txt
index 046de9d..39729cd 100644
--- a/test/permissive-www-autolinks.txt
+++ b/test/permissive-www-autolinks.txt
@@ -20,6 +20,8 @@ The scheme `http` will be inserted automatically:
 www.commonmark.org
 .
 <p><a href="http://www.commonmark.org">www.commonmark.org</a></p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 After a valid domain, zero or more non-space non-`<` characters may follow:
@@ -28,6 +30,8 @@ After a valid domain, zero or more non-space non-`<` characters may follow:
 Visit www.commonmark.org/help for more information.
 .
 <p>Visit <a href="http://www.commonmark.org/help">www.commonmark.org/help</a> for more information.</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 We then apply extended autolink path validation as follows:
@@ -43,6 +47,8 @@ Visit www.commonmark.org/a.b.
 .
 <p>Visit <a href="http://www.commonmark.org">www.commonmark.org</a>.</p>
 <p>Visit <a href="http://www.commonmark.org/a.b">www.commonmark.org/a.b</a>.</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 When an autolink ends in `)`, we scan the entire autolink for the total number
@@ -57,6 +63,8 @@ www.google.com/search?q=Markup+(business)
 .
 <p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p>
 <p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>)</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 This check is only done when the link ends in a closing parentheses `)`, so if
@@ -67,6 +75,8 @@ applied:
 www.google.com/search?q=(business))+ok
 .
 <p><a href="http://www.google.com/search?q=(business))+ok">www.google.com/search?q=(business))+ok</a></p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 If an autolink ends in a semicolon (`;`), we check to see if it appears to
@@ -81,6 +91,8 @@ www.google.com/search?q=commonmark&hl;
 .
 <p><a href="http://www.google.com/search?q=commonmark&amp;hl=en">www.google.com/search?q=commonmark&amp;hl=en</a></p>
 <p><a href="http://www.google.com/search?q=commonmark">www.google.com/search?q=commonmark</a>&amp;hl;</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 `<` immediately ends an autolink.
@@ -89,6 +101,8 @@ www.google.com/search?q=commonmark&hl;
 www.commonmark.org/he<lp
 .
 <p><a href="http://www.commonmark.org/he">www.commonmark.org/he</a>&lt;lp</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 
 
@@ -99,9 +113,13 @@ www.commonmark.org/he<lp
 This is [link](www.github.com/).
 .
 <p>This is <a href="www.github.com/">link</a>.</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
 ```````````````````````````````` example
 This is [link](www.github.com/)X
 .
 <p>This is <a href="www.github.com/">link</a>X</p>
+.
+--fpermissive-www-autolinks
 ````````````````````````````````
diff --git a/test/strikethrough.txt b/test/strikethrough.txt
index 884ce59..fbd04b5 100644
--- a/test/strikethrough.txt
+++ b/test/strikethrough.txt
@@ -10,6 +10,8 @@ Strike-through text is any text wrapped in one or two tildes (`~`).
 ~Hi~ Hello, world!
 .
 <p><del>Hi</del> Hello, world!</p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 If the length of the opener and closer doesn't match, the strike-through is
@@ -19,6 +21,8 @@ not recognized.
 This ~text~~ is curious.
 .
 <p>This ~text~~ is curious.</p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 Too long tilde sequence won't be recognized:
@@ -27,6 +31,8 @@ Too long tilde sequence won't be recognized:
 foo ~~~bar~~~
 .
 <p>foo ~~~bar~~~</p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 Also note the markers cannot open a strike-through span if they are followed
@@ -37,6 +43,8 @@ preceded with a whitespace:
 ~foo ~bar
 .
 <p>~foo ~bar</p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 
@@ -50,6 +58,8 @@ new paragraph~~.
 .
 <p>This ~~has a</p>
 <p>new paragraph~~.</p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 
@@ -60,16 +70,22 @@ new paragraph~~.
 ~`foo`~
 .
 <p><del><code>foo</code></del></p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 ```````````````````````````````` example
 ~*foo*~
 .
 <p><del><em>foo</em></del></p>
+.
+--fstrikethrough
 ````````````````````````````````
 
 ```````````````````````````````` example
 *~foo~*
 .
 <p><em><del>foo</del></em></p>
+.
+--fstrikethrough
 ````````````````````````````````
diff --git a/test/tables.txt b/test/tables.txt
index cd62100..25dd012 100644
--- a/test/tables.txt
+++ b/test/tables.txt
@@ -24,6 +24,8 @@ counting the header) is as follows:
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 The leading and succeeding pipe characters (`|`) on each line are optional:
@@ -45,6 +47,8 @@ quux     | quuz     |
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 ```````````````````````````````` example
@@ -64,6 +68,8 @@ quux     | quuz     |
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 ```````````````````````````````` example
@@ -83,6 +89,8 @@ quux     | quuz
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 However for one-column table, at least one pipe has to be used in the table
@@ -100,6 +108,8 @@ quux
 <p>foo
 baz
 quux</p>
+.
+--ftables
 ````````````````````````````````
 
 Leading and trailing whitespace in a table cell is ignored and the columns do
@@ -122,6 +132,8 @@ quux|quuz
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 The table cannot interrupt a paragraph.
@@ -163,6 +175,8 @@ Lorem ipsum dolor sit amet.
 <tr><td>Lorem ipsum dolor sit amet.</td><td></td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 The first, the last or both the first and the last dash in each column
@@ -182,6 +196,8 @@ alignment of the respective column:
 <tr><td>default</td><td align="left">left</td><td align="center">center</td><td align="right">right</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 To include a literal pipe character in any cell, it has to be escaped.
@@ -203,6 +219,8 @@ quux     | quuz
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 Contents of each cell is parsed as an inline text which may contents any
@@ -227,6 +245,8 @@ quux     | [quuz](/url2)
 <tr><td>quux</td><td><a href="/url2">quuz</a></td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 However pipes which are inside a code span are not recognized as cell
@@ -249,6 +269,8 @@ quux     | quuz
 <tr><td>quux</td><td>quuz</td></tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 
@@ -263,6 +285,8 @@ quux     | quuz
 <li>x|x
 ---|---</li>
 </ul>
+.
+--ftables
 ````````````````````````````````
 (Not a table, because the underline has wrong indentation and is not part of the
 list item.)
@@ -284,6 +308,8 @@ x|x
 </li>
 </ul>
 <p>x|x</p>
+.
+--ftables
 ````````````````````````````````
 (Here the underline has the right indentation so the table is detected.
 But the last line is not part of it due its indentation.)
@@ -313,6 +339,8 @@ But the last line is not part of it due its indentation.)
 </tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 
@@ -337,6 +365,8 @@ A | B
 </tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 
@@ -354,6 +384,8 @@ A | B
 </tr>
 </thead>
 </table>
+.
+--ftables
 ````````````````````````````````
 
 
@@ -376,4 +408,6 @@ x
 </tr>
 </tbody>
 </table>
+.
+--ftables
 ````````````````````````````````
diff --git a/test/tasklists.txt b/test/tasklists.txt
index aae1bf8..59de3f1 100644
--- a/test/tasklists.txt
+++ b/test/tasklists.txt
@@ -16,6 +16,8 @@ Basic task list may look as follows:
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled checked>bar</li>
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled>baz</li>
 </ul>
+.
+--ftasklists
 ````````````````````````````````
 
 Task lists can also be in ordered lists:
@@ -30,6 +32,8 @@ Task lists can also be in ordered lists:
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled checked>bar</li>
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled>baz</li>
 </ol>
+.
+--ftasklists
 ````````````````````````````````
 
 Task lists can also be nested in ordinary lists:
@@ -58,6 +62,8 @@ Task lists can also be nested in ordinary lists:
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled>quuz</li>
 </ul></li>
 </ul>
+.
+--ftasklists
 ````````````````````````````````
 
 Or in a parent task list:
@@ -86,6 +92,8 @@ Or in a parent task list:
 <li class="task-list-item"><input type="checkbox" class="task-list-item-checkbox" disabled>quuz</li>
 </ul></li>
 </ol>
+.
+--ftasklists
 ````````````````````````````````
 
 Also, ordinary lists can be nested in the task lists.
@@ -114,4 +122,6 @@ Also, ordinary lists can be nested in the task lists.
 <li>quuz</li>
 </ul></li>
 </ul>
+.
+--ftasklists
 ````````````````````````````````
diff --git a/test/underline.txt b/test/underline.txt
index 289e97f..d7e66ac 100644
--- a/test/underline.txt
+++ b/test/underline.txt
@@ -9,6 +9,8 @@ emphasis).
 _foo_
 .
 <p><u>foo</u></p>
+.
+--funderline
 ````````````````````````````````
 
 In sequences of multiple underscores, each single one translates into an
@@ -18,6 +20,8 @@ underline span mark.
 ___foo___
 .
 <p><u><u><u>foo</u></u></u></p>
+.
+--funderline
 ````````````````````````````````
 
 Intra-word underscores are not recognized as underline marks:
@@ -26,6 +30,8 @@ Intra-word underscores are not recognized as underline marks:
 foo_bar_baz
 .
 <p>foo_bar_baz</p>
+.
+--funderline
 ````````````````````````````````
 
 Also the parser follows the standard understanding when the underscore can
@@ -36,4 +42,6 @@ example because no underline can be seen as a closing mark.
 _foo _bar
 .
 <p>_foo _bar</p>
+.
+--funderline
 ````````````````````````````````
diff --git a/test/wiki-links.txt b/test/wiki-links.txt
index 00d394e..0793a32 100644
--- a/test/wiki-links.txt
+++ b/test/wiki-links.txt
@@ -10,6 +10,8 @@ The simple wiki-link is a wiki-link destination enclosed in `[[` followed with
 [[foo]]
 .
 <p><x-wikilink data-target="foo">foo</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 However wiki-link may contain an explicit label, delimited from the destination
@@ -19,6 +21,8 @@ with `|`.
 [[foo|bar]]
 .
 <p><x-wikilink data-target="foo">bar</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 A wiki-link destination cannot be empty.
@@ -27,12 +31,16 @@ A wiki-link destination cannot be empty.
 [[]]
 .
 <p>[[]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 ```````````````````````````````` example
 [[|foo]]
 .
 <p>[[|foo]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 
@@ -44,6 +52,8 @@ bar]]
 .
 <p>[[foo
 bar]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 ```````````````````````````````` example
@@ -52,6 +62,8 @@ bar|baz]]
 .
 <p>[[foo
 bar|baz]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 The wiki-link destination is rendered verbatim; inline markup in it is not
@@ -61,12 +73,16 @@ recognized.
 [[*foo*]]
 .
 <p><x-wikilink data-target="*foo*">*foo*</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 ```````````````````````````````` example
 [[foo|![bar](bar.jpg)]]
 .
 <p><x-wikilink data-target="foo"><img src="bar.jpg" alt="bar"></x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 With multiple `|` delimiters, only the first one is recognized and the other
@@ -76,6 +92,8 @@ ones are part of the label.
 [[foo|bar|baz]]
 .
 <p><x-wikilink data-target="foo">bar|baz</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 However the delimiter `|` can be escaped with `/`.
@@ -84,6 +102,8 @@ However the delimiter `|` can be escaped with `/`.
 [[foo\|bar|baz]]
 .
 <p><x-wikilink data-target="foo|bar">baz</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 The label can contain inline elements.
@@ -92,6 +112,8 @@ The label can contain inline elements.
 [[foo|*bar*]]
 .
 <p><x-wikilink data-target="foo"><em>bar</em></x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Empty explicit label is the same as using the implicit label; i.e. the verbatim
@@ -101,6 +123,8 @@ destination string is used as the label.
 [[foo|]]
 .
 <p><x-wikilink data-target="foo">foo</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 The label can span multiple lines.
@@ -113,6 +137,8 @@ baz]]
 <p><x-wikilink data-target="foo">foo
 bar
 baz</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Wiki-links have higher priority than links.
@@ -121,6 +147,8 @@ Wiki-links have higher priority than links.
 [[foo]](foo.jpg)
 .
 <p><x-wikilink data-target="foo">foo</x-wikilink>(foo.jpg)</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 ```````````````````````````````` example
@@ -129,6 +157,8 @@ Wiki-links have higher priority than links.
 [[foo]]
 .
 <p><x-wikilink data-target="foo">foo</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Wiki links can be inlined in tables.
@@ -152,6 +182,8 @@ Wiki links can be inlined in tables.
 </tr>
 </tbody>
 </table>
+.
+--fwiki-links --ftables
 ````````````````````````````````
 
 Wiki-links are not prioritized over images.
@@ -160,6 +192,8 @@ Wiki-links are not prioritized over images.
 ![[foo]](foo.jpg)
 .
 <p><img src="foo.jpg" alt="[foo]"></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Something that may look like a wiki-link at first, but turns out not to be,
@@ -171,6 +205,8 @@ is recognized as a normal link.
 [foo]: /url
 .
 <p>[<a href="/url">foo</a></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Escaping the opening `[` escapes only that one character, not the whole `[[`
@@ -182,6 +218,8 @@ opener:
 [foo]: /url
 .
 <p>[<a href="/url">foo</a>]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 Like with other inline links, the innermost wiki-link is preferred.
@@ -190,6 +228,8 @@ Like with other inline links, the innermost wiki-link is preferred.
 [[foo[[bar]]]]
 .
 <p>[[foo<x-wikilink data-target="bar">bar</x-wikilink>]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 There is limit of 100 characters for the wiki-link destination.
@@ -200,6 +240,8 @@ There is limit of 100 characters for the wiki-link destination.
 .
 <p>[[12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901]]
 [[12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901|foo]]</p>
+.
+--fwiki-links
 ````````````````````````````````
 
 100 characters inside a wiki link target works.
@@ -210,6 +252,8 @@ There is limit of 100 characters for the wiki-link destination.
 .
 <p><x-wikilink data-target="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890">1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890</x-wikilink>
 <x-wikilink data-target="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890">foo</x-wikilink></p>
+.
+--fwiki-links
 ````````````````````````````````
 
 The limit on link content does not include any characters belonging to a block
@@ -229,4 +273,6 @@ quote, if the label spans multiple lines contained in a block quote.
 1234567890
 123456789</x-wikilink></p>
 </blockquote>
+.
+--fwiki-links
 ````````````````````````````````