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