@diplodoc/cli-tests 5.3.1 → 5.3.2
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__/preprocess.test.ts.snap +29 -6
- package/e2e/errors.spec.ts +1 -1
- package/mocks/preprocess/test2/input/includes/deepWithIndent.md +6 -0
- package/mocks/preprocess/test2/input/includes/sub/userWithIndent.md +5 -0
- package/mocks/preprocess/test2/input/includes.md +4 -0
- package/package.json +1 -1
|
@@ -258,7 +258,9 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true > filelist 1`] = `
|
|
|
258
258
|
"included-item.md",
|
|
259
259
|
"includes.md",
|
|
260
260
|
"includes/deep-hash.md",
|
|
261
|
+
"includes/deepWithIndent-hash.md",
|
|
261
262
|
"includes/sub/user-hash.md",
|
|
263
|
+
"includes/sub/userWithIndent-hash.md",
|
|
262
264
|
"includes/test-hash.md",
|
|
263
265
|
"includes/user-hash.md",
|
|
264
266
|
"latex.md",
|
|
@@ -397,6 +399,10 @@ Link after include
|
|
|
397
399
|
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
398
400
|
{% include [For includes/deep-hash.md](includes/deep-hash.md) %}
|
|
399
401
|
|
|
402
|
+
Include with big indent
|
|
403
|
+
|
|
404
|
+
{% include [For includes/deep.md](includes/deepWithIndent-hash.md) %}
|
|
405
|
+
|
|
400
406
|
Link after include
|
|
401
407
|
[Subtitle](./1.md#subtitle)
|
|
402
408
|
"
|
|
@@ -408,21 +414,38 @@ exports[`Preprocess > HashIncludes=true,Autotitles=true 7`] = `
|
|
|
408
414
|
`;
|
|
409
415
|
|
|
410
416
|
exports[`Preprocess > HashIncludes=true,Autotitles=true 8`] = `
|
|
417
|
+
"- list item
|
|
418
|
+
|
|
419
|
+
{% include [user](./sub/userWithIndent-hash.md) %}
|
|
420
|
+
|
|
421
|
+
Link to mermaid diagram from 1 level
|
|
422
|
+
[Mermaid usage](../mermaid.md)"
|
|
423
|
+
`;
|
|
424
|
+
|
|
425
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 9`] = `
|
|
411
426
|
"Bob
|
|
412
427
|
"
|
|
413
428
|
`;
|
|
414
429
|
|
|
415
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
430
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 10`] = `
|
|
431
|
+
"Link to mermaid diagram from 2 level
|
|
432
|
+
[Mermaid usage](../../mermaid.md)
|
|
433
|
+
|
|
434
|
+
- User
|
|
435
|
+
Bob"
|
|
436
|
+
`;
|
|
437
|
+
|
|
438
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 11`] = `
|
|
416
439
|
"Test
|
|
417
440
|
"
|
|
418
441
|
`;
|
|
419
442
|
|
|
420
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
443
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 12`] = `
|
|
421
444
|
"Bob
|
|
422
445
|
"
|
|
423
446
|
`;
|
|
424
447
|
|
|
425
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
448
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 13`] = `
|
|
426
449
|
"---
|
|
427
450
|
metadata:
|
|
428
451
|
- name: generator
|
|
@@ -434,7 +457,7 @@ $/sqrt{3x-1}+(1+x)^2$
|
|
|
434
457
|
"
|
|
435
458
|
`;
|
|
436
459
|
|
|
437
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
460
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 14`] = `
|
|
438
461
|
"---
|
|
439
462
|
metadata:
|
|
440
463
|
- name: generator
|
|
@@ -456,7 +479,7 @@ Some mermaid info
|
|
|
456
479
|
"
|
|
457
480
|
`;
|
|
458
481
|
|
|
459
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
482
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 15`] = `
|
|
460
483
|
"---
|
|
461
484
|
metadata:
|
|
462
485
|
- name: generator
|
|
@@ -470,7 +493,7 @@ Item 1 text
|
|
|
470
493
|
"
|
|
471
494
|
`;
|
|
472
495
|
|
|
473
|
-
exports[`Preprocess > HashIncludes=true,Autotitles=true
|
|
496
|
+
exports[`Preprocess > HashIncludes=true,Autotitles=true 16`] = `
|
|
474
497
|
"items:
|
|
475
498
|
- name: Md item with not_var syntax
|
|
476
499
|
href: 1.md
|
package/e2e/errors.spec.ts
CHANGED
|
@@ -13,7 +13,7 @@ function test(path: string, expect: Function) {
|
|
|
13
13
|
const {inputPath, outputPath} = getTestPaths(path);
|
|
14
14
|
|
|
15
15
|
const md = await TestAdapter.build.run(inputPath, outputPath, ['-j2', '-f', 'md']);
|
|
16
|
-
const html = await TestAdapter.build.run(
|
|
16
|
+
const html = await TestAdapter.build.run(inputPath, outputPath + '-html', ['-j2', '-f', 'html']);
|
|
17
17
|
|
|
18
18
|
return expect({md, html});
|
|
19
19
|
});
|
|
@@ -10,5 +10,9 @@ Link after include
|
|
|
10
10
|
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
11
11
|
{% include [For includes/deep.md](includes/deep.md) %}
|
|
12
12
|
|
|
13
|
+
Include with big indent
|
|
14
|
+
|
|
15
|
+
{% include [For includes/deep.md](includes/deepWithIndent.md) %}
|
|
16
|
+
|
|
13
17
|
Link after include
|
|
14
18
|
[{#T}](./1.md#subtitle)
|