Skip to content

Commit 39679d5

Browse files
committed
WIP: interim commit
1 parent 5c86e03 commit 39679d5

1 file changed

Lines changed: 217 additions & 3 deletions

File tree

flexmark-ext-spec-example/src/test/resources/ext_spec_example_formatter_spec.md

Lines changed: 217 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,68 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
1010

1111
## Spec Example
1212

13+
empty sections should be preserved
14+
15+
```````````````````````````````` example Spec Example: 1
16+
---
17+
title: Intentions Spec
18+
author:
19+
version:
20+
date: '2019-10-14'
21+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
22+
...
23+
24+
```````````````` example
25+
26+
````````````````
27+
.
28+
---
29+
title: Intentions Spec
30+
author:
31+
version:
32+
date: '2019-10-14'
33+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
34+
...
35+
36+
```````````````` example : 1
37+
38+
````````````````
39+
40+
41+
````````````````````````````````
42+
43+
44+
```````````````````````````````` example Spec Example: 2
45+
---
46+
title: Intentions Spec
47+
author:
48+
version:
49+
date: '2019-10-14'
50+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
51+
...
52+
53+
```````````````` example
54+
55+
56+
````````````````
57+
.
58+
---
59+
title: Intentions Spec
60+
author:
61+
version:
62+
date: '2019-10-14'
63+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
64+
...
65+
66+
```````````````` example : 1
67+
68+
69+
````````````````
70+
71+
72+
````````````````````````````````
73+
74+
1375
```````````````````````````````` example Spec Example: 1
1476
---
1577
title: Intentions Spec
@@ -53,6 +115,8 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
53115
54116
```````````````` example
55117
Markdown only
118+
119+
56120
````````````````
57121
.
58122
---
@@ -67,6 +131,7 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
67131
68132
```````````````` example Section: 1
69133
Markdown only
134+
70135
71136
````````````````
72137
@@ -87,6 +152,7 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
87152
88153
```````````````` example options
89154
Markdown only
155+
90156
````````````````
91157
.
92158
---
@@ -101,6 +167,7 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
101167
102168
```````````````` example Section: 1
103169
Markdown only
170+
104171
105172
````````````````
106173
@@ -155,6 +222,8 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
155222
156223
```````````````` example options test
157224
Markdown only
225+
226+
158227
````````````````
159228
.
160229
---
@@ -169,6 +238,7 @@ license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
169238
170239
```````````````` example(Section: 1) options(test)
171240
Markdown only
241+
172242
173243
````````````````
174244
@@ -265,12 +335,12 @@ Document[0, 246]
265335
Heading[142, 154] textOpen:[142, 144, "##"] text:[145, 152, "Section"] textClose:[152, 154, "##"]
266336
Text[145, 152] chars:[145, 152, "Section"]
267337
BlankLine[155, 160]
268-
SpecExampleBlock[160, 246] openingMarker:[160, 176] exampleKeyword:[177, 184] optionsKeyword:[185, 192] options:[193, 197] source:[198, 211] htmlSeparator:[212, 214] html:[214, 224] astSeparator:[225, 227] ast:[227, 230] closingMarker:[230, 246]
338+
SpecExampleBlock[160, 246] openingMarker:[160, 176] exampleKeyword:[177, 184] optionsKeyword:[185, 192] options:[193, 197] source:[198, 212] htmlSeparator:[212, 214] html:[214, 225] astSeparator:[225, 227] ast:[227, 230] closingMarker:[230, 246]
269339
SpecExampleOptionsList[193, 197] chars:[193, 197, "test"]
270340
SpecExampleOption[193, 197] chars:[193, 197, "test"]
271-
SpecExampleSource[198, 211] chars:[198, 211, "Markd … only"]
341+
SpecExampleSource[198, 212] chars:[198, 212, "Markd … only\n"]
272342
SpecExampleSeparator[212, 214] chars:[212, 214, "…\n"]
273-
SpecExampleHtml[214, 224] chars:[214, 224, "\n \n "]
343+
SpecExampleHtml[214, 225] chars:[214, 225, "\n \n"]
274344
SpecExampleSeparator[225, 227] chars:[225, 227, "…\n"]
275345
SpecExampleAst[227, 230] chars:[227, 230, "\n\n\n"]
276346
````````````````````````````````
@@ -294,6 +364,7 @@ some leading text
294364
'title')
295365
296366
<p><a href="link%22%20with%20spaces.html" title="title">Sample Link Spaces</a></p>
367+
297368
298369
Document[0, 53]
299370
Paragraph[0, 53]
@@ -306,6 +377,7 @@ Document[0, 53]
306377
'title')
307378
308379
<p><a href="link%22%20with%20spaces.html" title="title">Sample Link Spaces</a></p>
380+
309381
310382
Document[0, 53]
311383
Paragraph[0, 53]
@@ -330,6 +402,7 @@ some leading text
330402
'title')
331403
332404
<p><a href="link%22%20with%20spaces.html" title="title">Sample Link Spaces</a></p>
405+
333406
334407
Document[0, 53]
335408
Paragraph[0, 53]
@@ -343,6 +416,7 @@ Document[0, 53]
343416
'title')
344417
345418
<p><a href="link%22%20with%20spaces.html" title="title">Sample Link Spaces</a></p>
419+
346420
347421
Document[0, 53]
348422
Paragraph[0, 53]
@@ -354,3 +428,143 @@ Document[0, 53]
354428
````````````````````````````````
355429

356430

431+
## Tracked Offset
432+
433+
```````````````````````````````` example Tracked Offset: 1
434+
---
435+
title: Intentions Spec
436+
author:
437+
version:
438+
date: '2019-10-14'
439+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
440+
...
441+
442+
## Section
443+
444+
```````````````` example options test⦙
445+
Markdown only
446+
````````````````
447+
.
448+
---
449+
title: Intentions Spec
450+
author:
451+
version:
452+
date: '2019-10-14'
453+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
454+
...
455+
456+
## Section
457+
458+
```````````````` example(Section: 1) options(test⦙)
459+
Markdown only
460+
461+
````````````````
462+
463+
464+
````````````````````````````````
465+
466+
467+
```````````````````````````````` example Tracked Offset: 2
468+
---
469+
title⦙: Intentions Spec
470+
author:
471+
version:
472+
date: '2019-10-14'
473+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
474+
...
475+
476+
## Sec⦙tion
477+
478+
````````⦙```````` ⦙example⦙ ⦙options⦙ ⦙test⦙
479+
Markdown⦙ only
480+
⦙``````````````⦙``⦙
481+
.
482+
---
483+
title⦙: Intentions Spec
484+
author:
485+
version:
486+
date: '2019-10-14'
487+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
488+
...
489+
490+
## Sec⦙tion
491+
492+
````````⦙```````` ⦙example⦙(Section: 1) ⦙options⦙(⦙test⦙)
493+
Markdown⦙ only
494+
495+
⦙``````````````⦙``
496+
497+
498+
````````````````````````````````
499+
500+
501+
```````````````````````````````` example Tracked Offset: 3
502+
---
503+
title⦙: Intentions Spec
504+
author:
505+
version:
506+
date: '⦙2019-10-14'
507+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
508+
...
509+
510+
## Section
511+
512+
````````⦙```````` ⦙example⦙(⦙Section⦙: ⦙1) ⦙options⦙(⦙test)
513+
Markdown⦙ only
514+
515+
⦙``````````````⦙``
516+
.
517+
---
518+
title⦙: Intentions Spec
519+
author:
520+
version:
521+
date: '⦙2019-10-14'
522+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
523+
...
524+
525+
## Section
526+
527+
````````⦙```````` ⦙example⦙(⦙Section⦙: ⦙1) ⦙options⦙(⦙test)
528+
Markdown⦙ only
529+
530+
⦙``````````````⦙``
531+
532+
533+
````````````````````````````````
534+
535+
536+
```````````````````````````````` example Tracked Offset: 4
537+
---
538+
title⦙: Intentions Spec
539+
author:
540+
version:
541+
date: '2019-10-14'
542+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
543+
...
544+
545+
## Section
546+
547+
````````⦙```````` ⦙example⦙(⦙Xy⦙z⦙: ⦙1⦙) ⦙options⦙(⦙test)
548+
Markdown⦙ only
549+
550+
⦙``````````````⦙``
551+
.
552+
---
553+
title⦙: Intentions Spec
554+
author:
555+
version:
556+
date: '2019-10-14'
557+
license: '[CC-BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)'
558+
...
559+
560+
## Section
561+
562+
````````⦙```````` ⦙example⦙(S⦙⦙ection⦙: ⦙1⦙) ⦙options⦙(⦙test)
563+
Markdown⦙ only
564+
565+
⦙``````````````⦙``
566+
567+
568+
````````````````````````````````
569+
570+

0 commit comments

Comments
 (0)