@diplodoc/cli-tests 5.39.8 → 5.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/e2e/__snapshots__/build-content-map.spec.ts.snap +329 -0
- package/e2e/__snapshots__/include-toc.test.ts.snap +23 -50
- package/e2e/__snapshots__/includes-conditions.test.ts.snap +15 -29
- package/e2e/__snapshots__/includes.test.ts.snap +437 -148
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +4 -4
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +0 -1
- package/e2e/__snapshots__/preprocess.test.ts.snap +108 -171
- package/e2e/__snapshots__/regression.test.ts.snap +167 -208
- package/e2e/build-content-map.spec.ts +220 -0
- package/mocks/build-content-map/autotitle-chain/input/.yfm +0 -0
- package/mocks/build-content-map/autotitle-chain/input/a.md +3 -0
- package/mocks/build-content-map/autotitle-chain/input/b.md +3 -0
- package/mocks/build-content-map/autotitle-chain/input/c.md +3 -0
- package/mocks/build-content-map/autotitle-chain/input/toc.yaml +9 -0
- package/mocks/build-content-map/autotitle-target-with-include/input/.yfm +0 -0
- package/mocks/build-content-map/autotitle-target-with-include/input/_includes/snippet.md +3 -0
- package/mocks/build-content-map/autotitle-target-with-include/input/a.md +3 -0
- package/mocks/build-content-map/autotitle-target-with-include/input/b.md +3 -0
- package/mocks/build-content-map/autotitle-target-with-include/input/toc.yaml +7 -0
- package/mocks/build-content-map/diamond-includes/input/.yfm +0 -0
- package/mocks/build-content-map/diamond-includes/input/_includes/branch-a.md +5 -0
- package/mocks/build-content-map/diamond-includes/input/_includes/branch-b.md +5 -0
- package/mocks/build-content-map/diamond-includes/input/_includes/shared.md +3 -0
- package/mocks/build-content-map/diamond-includes/input/index.md +7 -0
- package/mocks/build-content-map/diamond-includes/input/toc.yaml +5 -0
- package/mocks/build-content-map/nested-includes/input/.yfm +0 -0
- package/mocks/build-content-map/nested-includes/input/_includes/level1.md +5 -0
- package/mocks/build-content-map/nested-includes/input/_includes/level2.md +3 -0
- package/mocks/build-content-map/nested-includes/input/index.md +5 -0
- package/mocks/build-content-map/nested-includes/input/toc.yaml +5 -0
- package/mocks/build-content-map/with-autotitles/input/.yfm +0 -0
- package/mocks/build-content-map/with-autotitles/input/index.md +3 -0
- package/mocks/build-content-map/with-autotitles/input/other.md +3 -0
- package/mocks/build-content-map/with-autotitles/input/toc.yaml +7 -0
- package/mocks/build-content-map/with-includes/input/.yfm +0 -0
- package/mocks/build-content-map/with-includes/input/_includes/snippet.md +1 -0
- package/mocks/build-content-map/with-includes/input/index.md +5 -0
- package/mocks/build-content-map/with-includes/input/logo.svg +1 -0
- package/mocks/build-content-map/with-includes/input/toc.yaml +5 -0
- package/package.json +1 -1
|
@@ -403,9 +403,7 @@ vcsPath: main.md
|
|
|
403
403
|
|
|
404
404
|
Real include below — should be inlined:
|
|
405
405
|
|
|
406
|
-
|
|
407
|
-
[*glossary]: Glossary section
|
|
408
|
-
<!-- endsource: _includes/glossary.md -->
|
|
406
|
+
|
|
409
407
|
|
|
410
408
|
Steps:
|
|
411
409
|
|
|
@@ -414,13 +412,15 @@ Steps:
|
|
|
414
412
|
|
|
415
413
|
\`\`\`plaintext
|
|
416
414
|
{% include notitle [glossary](_includes/glossary.md) %}
|
|
415
|
+
|
|
417
416
|
[*glossary]: Magic line
|
|
418
417
|
\`\`\`
|
|
419
418
|
|
|
420
419
|
1. Use the keys from glossary.
|
|
421
420
|
|
|
422
421
|
End of page.
|
|
423
|
-
|
|
422
|
+
|
|
423
|
+
[*glossary__glossary]: Glossary section"
|
|
424
424
|
`;
|
|
425
425
|
|
|
426
426
|
exports[`Merge includes (md2md) > include-in-code-block: include shown as code example is NOT expanded 3`] = `
|
|
@@ -11,13 +11,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=false > filelist 1`] = `
|
|
|
11
11
|
"images.md",
|
|
12
12
|
"included-item.md",
|
|
13
13
|
"includes.md",
|
|
14
|
-
"includes/deep-hash.md",
|
|
15
|
-
"includes/deepWithIndent-hash.md",
|
|
16
14
|
"includes/level11.md",
|
|
17
|
-
"includes/sub/user-hash.md",
|
|
18
|
-
"includes/sub/userWithIndent-hash.md",
|
|
19
|
-
"includes/test-hash.md",
|
|
20
|
-
"includes/user-hash.md",
|
|
21
15
|
"latex.md",
|
|
22
16
|
"level0.md",
|
|
23
17
|
"level1/level1.md",
|
|
@@ -69,7 +63,9 @@ default-var-value
|
|
|
69
63
|
|
|
70
64
|
[noext-link](includes)
|
|
71
65
|
|
|
72
|
-
|
|
66
|
+
<!-- source: includes/user.md -->
|
|
67
|
+
Bob
|
|
68
|
+
<!-- endsource: includes/user.md -->
|
|
73
69
|
"
|
|
74
70
|
`;
|
|
75
71
|
|
|
@@ -326,41 +322,47 @@ vcsPath: includes.md
|
|
|
326
322
|
---
|
|
327
323
|
Text
|
|
328
324
|
|
|
329
|
-
|
|
325
|
+
<!-- source: includes/user.md -->
|
|
326
|
+
Bob
|
|
327
|
+
<!-- endsource: includes/user.md -->
|
|
330
328
|
|
|
331
|
-
|
|
329
|
+
<!-- source: includes/test.md -->
|
|
330
|
+
Test
|
|
331
|
+
<!-- endsource: includes/test.md -->
|
|
332
332
|
|
|
333
333
|
Link after include
|
|
334
334
|
[{#T}](./1.md)
|
|
335
335
|
|
|
336
336
|
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
337
|
-
|
|
337
|
+
<!-- source: includes/deep.md -->
|
|
338
|
+
<!-- source: includes/sub/user.md -->
|
|
339
|
+
Bob
|
|
340
|
+
<!-- endsource: includes/sub/user.md -->
|
|
341
|
+
<!-- endsource: includes/deep.md -->
|
|
338
342
|
|
|
339
343
|
Include with big indent
|
|
340
344
|
|
|
341
|
-
|
|
345
|
+
<!-- source: includes/deepWithIndent.md -->
|
|
346
|
+
- list item
|
|
342
347
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
`;
|
|
347
|
-
|
|
348
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 7`] = `
|
|
349
|
-
"{% include [user](sub/user-hash.md) %}
|
|
350
|
-
"
|
|
351
|
-
`;
|
|
348
|
+
<!-- source: includes/sub/userWithIndent.md -->
|
|
349
|
+
Link to mermaid diagram from 2 level
|
|
350
|
+
[](mermaid.md)
|
|
352
351
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
{% include [user](sub/userWithIndent-hash.md) %}
|
|
352
|
+
- User
|
|
353
|
+
Bob
|
|
354
|
+
<!-- endsource: includes/sub/userWithIndent.md -->
|
|
357
355
|
|
|
358
356
|
Link to mermaid diagram from 1 level
|
|
359
|
-
[](
|
|
357
|
+
[](mermaid.md)
|
|
358
|
+
<!-- endsource: includes/deepWithIndent.md -->
|
|
359
|
+
|
|
360
|
+
Link after include
|
|
361
|
+
[{#T}](./1.md#subtitle)
|
|
360
362
|
"
|
|
361
363
|
`;
|
|
362
364
|
|
|
363
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
365
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 7`] = `
|
|
364
366
|
"---
|
|
365
367
|
metadata:
|
|
366
368
|
- name: generator
|
|
@@ -371,30 +373,7 @@ vcsPath: includes/level11.md
|
|
|
371
373
|
"
|
|
372
374
|
`;
|
|
373
375
|
|
|
374
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
375
|
-
"Bob
|
|
376
|
-
"
|
|
377
|
-
`;
|
|
378
|
-
|
|
379
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 11`] = `
|
|
380
|
-
"Link to mermaid diagram from 2 level
|
|
381
|
-
[](../../mermaid.md)
|
|
382
|
-
|
|
383
|
-
- User
|
|
384
|
-
Bob"
|
|
385
|
-
`;
|
|
386
|
-
|
|
387
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 12`] = `
|
|
388
|
-
"Test
|
|
389
|
-
"
|
|
390
|
-
`;
|
|
391
|
-
|
|
392
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
|
|
393
|
-
"Bob
|
|
394
|
-
"
|
|
395
|
-
`;
|
|
396
|
-
|
|
397
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
|
|
376
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 8`] = `
|
|
398
377
|
"---
|
|
399
378
|
metadata:
|
|
400
379
|
- name: generator
|
|
@@ -407,7 +386,7 @@ $/sqrt{3x-1}+(1+x)^2$
|
|
|
407
386
|
"
|
|
408
387
|
`;
|
|
409
388
|
|
|
410
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
389
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 9`] = `
|
|
411
390
|
"---
|
|
412
391
|
metadata:
|
|
413
392
|
- name: generator
|
|
@@ -424,7 +403,7 @@ vcsPath: level0.md
|
|
|
424
403
|
"
|
|
425
404
|
`;
|
|
426
405
|
|
|
427
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
406
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 10`] = `
|
|
428
407
|
"---
|
|
429
408
|
metadata:
|
|
430
409
|
- name: generator
|
|
@@ -440,7 +419,7 @@ vcsPath: level1/level1.md
|
|
|
440
419
|
[{#T}](../includes/level11.md)"
|
|
441
420
|
`;
|
|
442
421
|
|
|
443
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
422
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 11`] = `
|
|
444
423
|
"---
|
|
445
424
|
metadata:
|
|
446
425
|
- name: generator
|
|
@@ -456,7 +435,7 @@ vcsPath: level1/level2/level2.md
|
|
|
456
435
|
"
|
|
457
436
|
`;
|
|
458
437
|
|
|
459
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
438
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 12`] = `
|
|
460
439
|
"items:
|
|
461
440
|
- name: level1
|
|
462
441
|
href: level1.md
|
|
@@ -466,7 +445,7 @@ path: level1/toc.yaml
|
|
|
466
445
|
"
|
|
467
446
|
`;
|
|
468
447
|
|
|
469
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
448
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 13`] = `
|
|
470
449
|
"---
|
|
471
450
|
metadata:
|
|
472
451
|
- name: generator
|
|
@@ -489,7 +468,7 @@ Some mermaid info
|
|
|
489
468
|
"
|
|
490
469
|
`;
|
|
491
470
|
|
|
492
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
471
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 14`] = `
|
|
493
472
|
"---
|
|
494
473
|
metadata:
|
|
495
474
|
- name: generator
|
|
@@ -506,7 +485,7 @@ Item 1 text
|
|
|
506
485
|
"
|
|
507
486
|
`;
|
|
508
487
|
|
|
509
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=false
|
|
488
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=false 15`] = `
|
|
510
489
|
"items:
|
|
511
490
|
- name: Md item with not_var syntax
|
|
512
491
|
href: 1.md
|
|
@@ -551,13 +530,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
|
|
|
551
530
|
"images.md",
|
|
552
531
|
"included-item.md",
|
|
553
532
|
"includes.md",
|
|
554
|
-
"includes/deep-hash.md",
|
|
555
|
-
"includes/deepWithIndent-hash.md",
|
|
556
533
|
"includes/level11.md",
|
|
557
|
-
"includes/sub/user-hash.md",
|
|
558
|
-
"includes/sub/userWithIndent-hash.md",
|
|
559
|
-
"includes/test-hash.md",
|
|
560
|
-
"includes/user-hash.md",
|
|
561
534
|
"latex.md",
|
|
562
535
|
"level0.md",
|
|
563
536
|
"level1/level1.md",
|
|
@@ -609,7 +582,9 @@ default-var-value
|
|
|
609
582
|
|
|
610
583
|
[noext-link](includes)
|
|
611
584
|
|
|
612
|
-
|
|
585
|
+
<!-- source: includes/user.md -->
|
|
586
|
+
Bob
|
|
587
|
+
<!-- endsource: includes/user.md -->
|
|
613
588
|
"
|
|
614
589
|
`;
|
|
615
590
|
|
|
@@ -866,41 +841,47 @@ vcsPath: includes.md
|
|
|
866
841
|
---
|
|
867
842
|
Text
|
|
868
843
|
|
|
869
|
-
|
|
844
|
+
<!-- source: includes/user.md -->
|
|
845
|
+
Bob
|
|
846
|
+
<!-- endsource: includes/user.md -->
|
|
870
847
|
|
|
871
|
-
|
|
848
|
+
<!-- source: includes/test.md -->
|
|
849
|
+
Test
|
|
850
|
+
<!-- endsource: includes/test.md -->
|
|
872
851
|
|
|
873
852
|
Link after include
|
|
874
853
|
[Title](./1.md)
|
|
875
854
|
|
|
876
855
|
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
877
|
-
|
|
856
|
+
<!-- source: includes/deep.md -->
|
|
857
|
+
<!-- source: includes/sub/user.md -->
|
|
858
|
+
Bob
|
|
859
|
+
<!-- endsource: includes/sub/user.md -->
|
|
860
|
+
<!-- endsource: includes/deep.md -->
|
|
878
861
|
|
|
879
862
|
Include with big indent
|
|
880
863
|
|
|
881
|
-
|
|
864
|
+
<!-- source: includes/deepWithIndent.md -->
|
|
865
|
+
- list item
|
|
882
866
|
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
`;
|
|
867
|
+
<!-- source: includes/sub/userWithIndent.md -->
|
|
868
|
+
Link to mermaid diagram from 2 level
|
|
869
|
+
[Mermaid usage](mermaid.md)
|
|
887
870
|
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
`;
|
|
892
|
-
|
|
893
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 8`] = `
|
|
894
|
-
"- list item
|
|
895
|
-
|
|
896
|
-
{% include [user](sub/userWithIndent-hash.md) %}
|
|
871
|
+
- User
|
|
872
|
+
Bob
|
|
873
|
+
<!-- endsource: includes/sub/userWithIndent.md -->
|
|
897
874
|
|
|
898
875
|
Link to mermaid diagram from 1 level
|
|
899
|
-
[Mermaid usage](
|
|
876
|
+
[Mermaid usage](mermaid.md)
|
|
877
|
+
<!-- endsource: includes/deepWithIndent.md -->
|
|
878
|
+
|
|
879
|
+
Link after include
|
|
880
|
+
[Subtitle](./1.md#subtitle)
|
|
900
881
|
"
|
|
901
882
|
`;
|
|
902
883
|
|
|
903
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
884
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 7`] = `
|
|
904
885
|
"---
|
|
905
886
|
metadata:
|
|
906
887
|
- name: generator
|
|
@@ -911,30 +892,7 @@ vcsPath: includes/level11.md
|
|
|
911
892
|
"
|
|
912
893
|
`;
|
|
913
894
|
|
|
914
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
915
|
-
"Bob
|
|
916
|
-
"
|
|
917
|
-
`;
|
|
918
|
-
|
|
919
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
|
|
920
|
-
"Link to mermaid diagram from 2 level
|
|
921
|
-
[Mermaid usage](../../mermaid.md)
|
|
922
|
-
|
|
923
|
-
- User
|
|
924
|
-
Bob"
|
|
925
|
-
`;
|
|
926
|
-
|
|
927
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
|
|
928
|
-
"Test
|
|
929
|
-
"
|
|
930
|
-
`;
|
|
931
|
-
|
|
932
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
|
|
933
|
-
"Bob
|
|
934
|
-
"
|
|
935
|
-
`;
|
|
936
|
-
|
|
937
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
|
|
895
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 8`] = `
|
|
938
896
|
"---
|
|
939
897
|
metadata:
|
|
940
898
|
- name: generator
|
|
@@ -947,7 +905,7 @@ $/sqrt{3x-1}+(1+x)^2$
|
|
|
947
905
|
"
|
|
948
906
|
`;
|
|
949
907
|
|
|
950
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
908
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 9`] = `
|
|
951
909
|
"---
|
|
952
910
|
metadata:
|
|
953
911
|
- name: generator
|
|
@@ -964,7 +922,7 @@ vcsPath: level0.md
|
|
|
964
922
|
"
|
|
965
923
|
`;
|
|
966
924
|
|
|
967
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
925
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 10`] = `
|
|
968
926
|
"---
|
|
969
927
|
metadata:
|
|
970
928
|
- name: generator
|
|
@@ -980,7 +938,7 @@ vcsPath: level1/level1.md
|
|
|
980
938
|
[Level 11 svg header ](../includes/level11.md)"
|
|
981
939
|
`;
|
|
982
940
|
|
|
983
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
941
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
|
|
984
942
|
"---
|
|
985
943
|
metadata:
|
|
986
944
|
- name: generator
|
|
@@ -996,7 +954,7 @@ vcsPath: level1/level2/level2.md
|
|
|
996
954
|
"
|
|
997
955
|
`;
|
|
998
956
|
|
|
999
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
957
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
|
|
1000
958
|
"items:
|
|
1001
959
|
- name: level1
|
|
1002
960
|
href: level1.md
|
|
@@ -1006,7 +964,7 @@ path: level1/toc.yaml
|
|
|
1006
964
|
"
|
|
1007
965
|
`;
|
|
1008
966
|
|
|
1009
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
967
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
|
|
1010
968
|
"---
|
|
1011
969
|
metadata:
|
|
1012
970
|
- name: generator
|
|
@@ -1029,7 +987,7 @@ Some mermaid info
|
|
|
1029
987
|
"
|
|
1030
988
|
`;
|
|
1031
989
|
|
|
1032
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
990
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
|
|
1033
991
|
"---
|
|
1034
992
|
metadata:
|
|
1035
993
|
- name: generator
|
|
@@ -1046,7 +1004,7 @@ Item 1 text
|
|
|
1046
1004
|
"
|
|
1047
1005
|
`;
|
|
1048
1006
|
|
|
1049
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
1007
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
|
|
1050
1008
|
"items:
|
|
1051
1009
|
- name: Md item with not_var syntax
|
|
1052
1010
|
href: 1.md
|
|
@@ -1091,13 +1049,7 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true > filelist 1`]
|
|
|
1091
1049
|
"images.md",
|
|
1092
1050
|
"included-item.md",
|
|
1093
1051
|
"includes.md",
|
|
1094
|
-
"includes/deep-hash.md",
|
|
1095
|
-
"includes/deepWithIndent-hash.md",
|
|
1096
1052
|
"includes/level11.md",
|
|
1097
|
-
"includes/sub/user-hash.md",
|
|
1098
|
-
"includes/sub/userWithIndent-hash.md",
|
|
1099
|
-
"includes/test-hash.md",
|
|
1100
|
-
"includes/user-hash.md",
|
|
1101
1053
|
"latex.md",
|
|
1102
1054
|
"level0.md",
|
|
1103
1055
|
"level1/level1.md",
|
|
@@ -1149,7 +1101,9 @@ default-var-value
|
|
|
1149
1101
|
|
|
1150
1102
|
[noext-link](includes)
|
|
1151
1103
|
|
|
1152
|
-
|
|
1104
|
+
<!-- source: includes/user.md -->
|
|
1105
|
+
Bob
|
|
1106
|
+
<!-- endsource: includes/user.md -->
|
|
1153
1107
|
"
|
|
1154
1108
|
`;
|
|
1155
1109
|
|
|
@@ -1406,41 +1360,47 @@ vcsPath: includes.md
|
|
|
1406
1360
|
---
|
|
1407
1361
|
Text
|
|
1408
1362
|
|
|
1409
|
-
|
|
1363
|
+
<!-- source: includes/user.md -->
|
|
1364
|
+
Bob
|
|
1365
|
+
<!-- endsource: includes/user.md -->
|
|
1410
1366
|
|
|
1411
|
-
|
|
1367
|
+
<!-- source: includes/test.md -->
|
|
1368
|
+
Test
|
|
1369
|
+
<!-- endsource: includes/test.md -->
|
|
1412
1370
|
|
|
1413
1371
|
Link after include
|
|
1414
1372
|
[Title](./1.md)
|
|
1415
1373
|
|
|
1416
1374
|
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
1417
|
-
|
|
1375
|
+
<!-- source: includes/deep.md -->
|
|
1376
|
+
<!-- source: includes/sub/user.md -->
|
|
1377
|
+
Bob
|
|
1378
|
+
<!-- endsource: includes/sub/user.md -->
|
|
1379
|
+
<!-- endsource: includes/deep.md -->
|
|
1418
1380
|
|
|
1419
1381
|
Include with big indent
|
|
1420
1382
|
|
|
1421
|
-
|
|
1383
|
+
<!-- source: includes/deepWithIndent.md -->
|
|
1384
|
+
- list item
|
|
1422
1385
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
`;
|
|
1386
|
+
<!-- source: includes/sub/userWithIndent.md -->
|
|
1387
|
+
Link to mermaid diagram from 2 level
|
|
1388
|
+
[Mermaid usage](mermaid.md)
|
|
1427
1389
|
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
`;
|
|
1432
|
-
|
|
1433
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 8`] = `
|
|
1434
|
-
"- list item
|
|
1435
|
-
|
|
1436
|
-
{% include [user](sub/userWithIndent-hash.md) %}
|
|
1390
|
+
- User
|
|
1391
|
+
Bob
|
|
1392
|
+
<!-- endsource: includes/sub/userWithIndent.md -->
|
|
1437
1393
|
|
|
1438
1394
|
Link to mermaid diagram from 1 level
|
|
1439
|
-
[Mermaid usage](
|
|
1395
|
+
[Mermaid usage](mermaid.md)
|
|
1396
|
+
<!-- endsource: includes/deepWithIndent.md -->
|
|
1397
|
+
|
|
1398
|
+
Link after include
|
|
1399
|
+
[Subtitle](./1.md#subtitle)
|
|
1440
1400
|
"
|
|
1441
1401
|
`;
|
|
1442
1402
|
|
|
1443
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1403
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 7`] = `
|
|
1444
1404
|
"---
|
|
1445
1405
|
metadata:
|
|
1446
1406
|
- name: generator
|
|
@@ -1451,30 +1411,7 @@ vcsPath: includes/level11.md
|
|
|
1451
1411
|
"
|
|
1452
1412
|
`;
|
|
1453
1413
|
|
|
1454
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1455
|
-
"Bob
|
|
1456
|
-
"
|
|
1457
|
-
`;
|
|
1458
|
-
|
|
1459
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 11`] = `
|
|
1460
|
-
"Link to mermaid diagram from 2 level
|
|
1461
|
-
[Mermaid usage](../../mermaid.md)
|
|
1462
|
-
|
|
1463
|
-
- User
|
|
1464
|
-
Bob"
|
|
1465
|
-
`;
|
|
1466
|
-
|
|
1467
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 12`] = `
|
|
1468
|
-
"Test
|
|
1469
|
-
"
|
|
1470
|
-
`;
|
|
1471
|
-
|
|
1472
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 13`] = `
|
|
1473
|
-
"Bob
|
|
1474
|
-
"
|
|
1475
|
-
`;
|
|
1476
|
-
|
|
1477
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 14`] = `
|
|
1414
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 8`] = `
|
|
1478
1415
|
"---
|
|
1479
1416
|
metadata:
|
|
1480
1417
|
- name: generator
|
|
@@ -1487,7 +1424,7 @@ $/sqrt{3x-1}+(1+x)^2$
|
|
|
1487
1424
|
"
|
|
1488
1425
|
`;
|
|
1489
1426
|
|
|
1490
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1427
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 9`] = `
|
|
1491
1428
|
"---
|
|
1492
1429
|
metadata:
|
|
1493
1430
|
- name: generator
|
|
@@ -1504,7 +1441,7 @@ vcsPath: level0.md
|
|
|
1504
1441
|
"
|
|
1505
1442
|
`;
|
|
1506
1443
|
|
|
1507
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1444
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 10`] = `
|
|
1508
1445
|
"---
|
|
1509
1446
|
metadata:
|
|
1510
1447
|
- name: generator
|
|
@@ -1520,7 +1457,7 @@ vcsPath: level1/level1.md
|
|
|
1520
1457
|
[Level 11 svg header ](../includes/level11.md)"
|
|
1521
1458
|
`;
|
|
1522
1459
|
|
|
1523
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1460
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 11`] = `
|
|
1524
1461
|
"---
|
|
1525
1462
|
metadata:
|
|
1526
1463
|
- name: generator
|
|
@@ -1536,7 +1473,7 @@ vcsPath: level1/level2/level2.md
|
|
|
1536
1473
|
"
|
|
1537
1474
|
`;
|
|
1538
1475
|
|
|
1539
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1476
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 12`] = `
|
|
1540
1477
|
"items:
|
|
1541
1478
|
- name: level1
|
|
1542
1479
|
href: level1.md
|
|
@@ -1546,7 +1483,7 @@ path: level1/toc.yaml
|
|
|
1546
1483
|
"
|
|
1547
1484
|
`;
|
|
1548
1485
|
|
|
1549
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1486
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 13`] = `
|
|
1550
1487
|
"---
|
|
1551
1488
|
metadata:
|
|
1552
1489
|
- name: generator
|
|
@@ -1569,7 +1506,7 @@ Some mermaid info
|
|
|
1569
1506
|
"
|
|
1570
1507
|
`;
|
|
1571
1508
|
|
|
1572
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1509
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 14`] = `
|
|
1573
1510
|
"---
|
|
1574
1511
|
metadata:
|
|
1575
1512
|
- name: generator
|
|
@@ -1586,7 +1523,7 @@ Item 1 text
|
|
|
1586
1523
|
"
|
|
1587
1524
|
`;
|
|
1588
1525
|
|
|
1589
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true
|
|
1526
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true,Svg=true 15`] = `
|
|
1590
1527
|
"items:
|
|
1591
1528
|
- name: Md item with not_var syntax
|
|
1592
1529
|
href: 1.md
|