@diplodoc/cli-tests 5.2.2 → 5.3.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__/generate-map.spec.ts.snap +345 -0
- package/e2e/__snapshots__/preprocess.test.ts.snap +497 -0
- package/e2e/__snapshots__/regression.test.ts.snap +76 -57
- package/e2e/generate-map.spec.ts +9 -3
- package/e2e/preprocess.test.ts +21 -0
- package/mocks/preprocess/test1/input/.yfm +2 -0
- package/mocks/preprocess/test1/input/1.md +29 -0
- package/mocks/preprocess/test1/input/_assets/1.png +0 -0
- package/mocks/preprocess/test1/input/autotitle.md +23 -0
- package/mocks/preprocess/test1/input/commented-include.md +3 -0
- package/mocks/preprocess/test1/input/images.md +5 -0
- package/mocks/preprocess/test1/input/included-item.md +12 -0
- package/mocks/preprocess/test1/input/includes/deep.md +1 -0
- package/mocks/preprocess/test1/input/includes/presets.yaml +2 -0
- package/mocks/preprocess/test1/input/includes/sub/user.md +1 -0
- package/mocks/preprocess/test1/input/includes/test.md +1 -0
- package/mocks/preprocess/test1/input/includes/user.md +1 -0
- package/mocks/preprocess/test1/input/includes.md +14 -0
- package/mocks/preprocess/test1/input/latex.md +3 -0
- package/mocks/preprocess/test1/input/mermaid.md +13 -0
- package/mocks/preprocess/test1/input/presets.yaml +8 -0
- package/mocks/preprocess/test1/input/sub/folder/item-1.md +5 -0
- package/mocks/preprocess/test1/input/sub/toc.yaml +5 -0
- package/mocks/preprocess/test1/input/toc-i.yaml +3 -0
- package/mocks/preprocess/test1/input/toc.yaml +16 -0
- package/mocks/preprocess/test2/input/.yfm +2 -0
- package/mocks/preprocess/test2/input/1.md +29 -0
- package/mocks/preprocess/test2/input/_assets/1.png +0 -0
- package/mocks/preprocess/test2/input/autotitle.md +23 -0
- package/mocks/preprocess/test2/input/commented-include.md +3 -0
- package/mocks/preprocess/test2/input/images.md +5 -0
- package/mocks/preprocess/test2/input/included-item.md +12 -0
- package/mocks/preprocess/test2/input/includes/deep.md +1 -0
- package/mocks/preprocess/test2/input/includes/presets.yaml +2 -0
- package/mocks/preprocess/test2/input/includes/sub/user.md +1 -0
- package/mocks/preprocess/test2/input/includes/test.md +1 -0
- package/mocks/preprocess/test2/input/includes/user.md +1 -0
- package/mocks/preprocess/test2/input/includes.md +14 -0
- package/mocks/preprocess/test2/input/latex.md +3 -0
- package/mocks/preprocess/test2/input/mermaid.md +13 -0
- package/mocks/preprocess/test2/input/presets.yaml +8 -0
- package/mocks/preprocess/test2/input/sub/folder/item-1.md +5 -0
- package/mocks/preprocess/test2/input/sub/toc.yaml +5 -0
- package/mocks/preprocess/test2/input/toc-i.yaml +3 -0
- package/mocks/preprocess/test2/input/toc.yaml +16 -0
- package/mocks/regression/input/.yfm +2 -0
- package/mocks/regression/input/includes.md +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
items:
|
|
2
|
+
- name: Md item with not_var syntax
|
|
3
|
+
href: ./1.md
|
|
4
|
+
- name: Md item named without extension
|
|
5
|
+
href: ./1
|
|
6
|
+
- include: {path: toc-i.yaml}
|
|
7
|
+
- include: {path: sub/toc.yaml, mode: link}
|
|
8
|
+
- href: ./mermaid
|
|
9
|
+
- name: '{#T}'
|
|
10
|
+
href: ./latex
|
|
11
|
+
- name: Images
|
|
12
|
+
href: ./images
|
|
13
|
+
- name: Autotitle
|
|
14
|
+
href: ./autotitle
|
|
15
|
+
- name: includes
|
|
16
|
+
href: ./includes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Title
|
|
2
|
+
|
|
3
|
+
Text not_var{{not-var}} not_var{{skip()}} {{default-var}}
|
|
4
|
+
|
|
5
|
+
Text `not_var{{not-var}}` `not_var{{skip()}}` `{{default-var}}`
|
|
6
|
+
|
|
7
|
+
Text
|
|
8
|
+
```
|
|
9
|
+
not_var{{not-var}}
|
|
10
|
+
|
|
11
|
+
not_var{{skip()}}
|
|
12
|
+
|
|
13
|
+
{{default-var}}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
`[not a link](./path/to/relative/file.md)`
|
|
18
|
+
|
|
19
|
+
## Subtitle {#subtitle}
|
|
20
|
+
|
|
21
|
+
[{#T}](./mermaid.md)
|
|
22
|
+
|
|
23
|
+
[{#T}](./mermaid.md#info)
|
|
24
|
+
|
|
25
|
+
[](./latex.md)
|
|
26
|
+
|
|
27
|
+
[noext-link](./includes)
|
|
28
|
+
|
|
29
|
+
{% include [user](includes/user.md) %}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Autotitles
|
|
2
|
+
|
|
3
|
+
Empty title
|
|
4
|
+
[](./1.md)
|
|
5
|
+
|
|
6
|
+
Empty subtitle
|
|
7
|
+
[](./1.md#subtitle)
|
|
8
|
+
|
|
9
|
+
Special title
|
|
10
|
+
[{#T}](./1.md)
|
|
11
|
+
|
|
12
|
+
Special subtitle
|
|
13
|
+
[{#T}](./1.md#subtitle)
|
|
14
|
+
|
|
15
|
+
Empty local title
|
|
16
|
+
[](#header)
|
|
17
|
+
|
|
18
|
+
Special local title
|
|
19
|
+
[{#T}](#header)
|
|
20
|
+
|
|
21
|
+
## Header {#header}
|
|
22
|
+
|
|
23
|
+
Content
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% include [user](./sub/user.md) %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{user}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Test
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{{user}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Text
|
|
2
|
+
|
|
3
|
+
{% include [user](includes/user.md) %}
|
|
4
|
+
|
|
5
|
+
{% include [test](includes/test.md) %}
|
|
6
|
+
|
|
7
|
+
Link after include
|
|
8
|
+
[{#T}](./1.md)
|
|
9
|
+
|
|
10
|
+
<!--{% include [For includes/deep.md](includes/deep.md) %}-->
|
|
11
|
+
{% include [For includes/deep.md](includes/deep.md) %}
|
|
12
|
+
|
|
13
|
+
Link after include
|
|
14
|
+
[{#T}](./1.md#subtitle)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
items:
|
|
2
|
+
- name: Md item with not_var syntax
|
|
3
|
+
href: ./1.md
|
|
4
|
+
- name: Md item named without extension
|
|
5
|
+
href: ./1
|
|
6
|
+
- include: {path: toc-i.yaml}
|
|
7
|
+
- include: {path: sub/toc.yaml, mode: link}
|
|
8
|
+
- href: ./mermaid
|
|
9
|
+
- name: '{#T}'
|
|
10
|
+
href: ./latex
|
|
11
|
+
- name: Images
|
|
12
|
+
href: ./images
|
|
13
|
+
- name: Autotitle
|
|
14
|
+
href: ./autotitle
|
|
15
|
+
- name: includes
|
|
16
|
+
href: ./includes
|