@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.
Files changed (40) hide show
  1. package/e2e/__snapshots__/build-content-map.spec.ts.snap +329 -0
  2. package/e2e/__snapshots__/include-toc.test.ts.snap +23 -50
  3. package/e2e/__snapshots__/includes-conditions.test.ts.snap +15 -29
  4. package/e2e/__snapshots__/includes.test.ts.snap +437 -148
  5. package/e2e/__snapshots__/merge-includes.spec.ts.snap +4 -4
  6. package/e2e/__snapshots__/pdf-page.spec.ts.snap +0 -1
  7. package/e2e/__snapshots__/preprocess.test.ts.snap +108 -171
  8. package/e2e/__snapshots__/regression.test.ts.snap +167 -208
  9. package/e2e/build-content-map.spec.ts +220 -0
  10. package/mocks/build-content-map/autotitle-chain/input/.yfm +0 -0
  11. package/mocks/build-content-map/autotitle-chain/input/a.md +3 -0
  12. package/mocks/build-content-map/autotitle-chain/input/b.md +3 -0
  13. package/mocks/build-content-map/autotitle-chain/input/c.md +3 -0
  14. package/mocks/build-content-map/autotitle-chain/input/toc.yaml +9 -0
  15. package/mocks/build-content-map/autotitle-target-with-include/input/.yfm +0 -0
  16. package/mocks/build-content-map/autotitle-target-with-include/input/_includes/snippet.md +3 -0
  17. package/mocks/build-content-map/autotitle-target-with-include/input/a.md +3 -0
  18. package/mocks/build-content-map/autotitle-target-with-include/input/b.md +3 -0
  19. package/mocks/build-content-map/autotitle-target-with-include/input/toc.yaml +7 -0
  20. package/mocks/build-content-map/diamond-includes/input/.yfm +0 -0
  21. package/mocks/build-content-map/diamond-includes/input/_includes/branch-a.md +5 -0
  22. package/mocks/build-content-map/diamond-includes/input/_includes/branch-b.md +5 -0
  23. package/mocks/build-content-map/diamond-includes/input/_includes/shared.md +3 -0
  24. package/mocks/build-content-map/diamond-includes/input/index.md +7 -0
  25. package/mocks/build-content-map/diamond-includes/input/toc.yaml +5 -0
  26. package/mocks/build-content-map/nested-includes/input/.yfm +0 -0
  27. package/mocks/build-content-map/nested-includes/input/_includes/level1.md +5 -0
  28. package/mocks/build-content-map/nested-includes/input/_includes/level2.md +3 -0
  29. package/mocks/build-content-map/nested-includes/input/index.md +5 -0
  30. package/mocks/build-content-map/nested-includes/input/toc.yaml +5 -0
  31. package/mocks/build-content-map/with-autotitles/input/.yfm +0 -0
  32. package/mocks/build-content-map/with-autotitles/input/index.md +3 -0
  33. package/mocks/build-content-map/with-autotitles/input/other.md +3 -0
  34. package/mocks/build-content-map/with-autotitles/input/toc.yaml +7 -0
  35. package/mocks/build-content-map/with-includes/input/.yfm +0 -0
  36. package/mocks/build-content-map/with-includes/input/_includes/snippet.md +1 -0
  37. package/mocks/build-content-map/with-includes/input/index.md +5 -0
  38. package/mocks/build-content-map/with-includes/input/logo.svg +1 -0
  39. package/mocks/build-content-map/with-includes/input/toc.yaml +5 -0
  40. package/package.json +1 -1
@@ -0,0 +1,329 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`Build content map for > autotitle chain (hashIncludes default, mergeIncludes off) 1`] = `
4
+ {
5
+ "contentHashes": {
6
+ ".yfm": {
7
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
8
+ "size": 0,
9
+ },
10
+ "a.md": {
11
+ "hash": "sha256-ded797685220c60b5b4e4b625b57593625cd23a2769b740c8c04cfe96e56c207",
12
+ "size": 151,
13
+ },
14
+ "b.md": {
15
+ "hash": "sha256-6c43dbe0f71cd0f9a8c596be5b57e4b0f87acbfa70e064c1851f1e52fa9dc962",
16
+ "size": 155,
17
+ },
18
+ "c.md": {
19
+ "hash": "sha256-dd5586a9c7e73c90600c4af09e51aee7a953f388812c7d1d4cf847aa528fde9c",
20
+ "size": 142,
21
+ },
22
+ "toc.yaml": {
23
+ "hash": "sha256-8bf60b589e4bb972e7b9ca9d924f6f8911f9d41e268bf710f0d5197246b576fd",
24
+ "size": 157,
25
+ },
26
+ },
27
+ "pageAssets": {},
28
+ "schemaVersion": 1,
29
+ }
30
+ `;
31
+
32
+ exports[`Build content map for > autotitle chain (mergeIncludes on) 1`] = `
33
+ {
34
+ "contentHashes": {
35
+ ".yfm": {
36
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
37
+ "size": 0,
38
+ },
39
+ "a.md": {
40
+ "hash": "sha256-ded797685220c60b5b4e4b625b57593625cd23a2769b740c8c04cfe96e56c207",
41
+ "size": 151,
42
+ },
43
+ "b.md": {
44
+ "hash": "sha256-6c43dbe0f71cd0f9a8c596be5b57e4b0f87acbfa70e064c1851f1e52fa9dc962",
45
+ "size": 155,
46
+ },
47
+ "c.md": {
48
+ "hash": "sha256-dd5586a9c7e73c90600c4af09e51aee7a953f388812c7d1d4cf847aa528fde9c",
49
+ "size": 142,
50
+ },
51
+ "toc.yaml": {
52
+ "hash": "sha256-8bf60b589e4bb972e7b9ca9d924f6f8911f9d41e268bf710f0d5197246b576fd",
53
+ "size": 157,
54
+ },
55
+ },
56
+ "pageAssets": {},
57
+ "schemaVersion": 1,
58
+ }
59
+ `;
60
+
61
+ exports[`Build content map for > autotitle target with include (hashIncludes default, mergeIncludes off) 1`] = `
62
+ {
63
+ "contentHashes": {
64
+ ".yfm": {
65
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
66
+ "size": 0,
67
+ },
68
+ "_includes/snippet.md": {
69
+ "hash": "sha256-15e5534f3fd87d3799fc5ba720332adc871dc63ac87c27ab1baf6b083d5b5812",
70
+ "size": 57,
71
+ },
72
+ "a.md": {
73
+ "hash": "sha256-a3306e3527c16dd26e0080fd3b6a20a8149bbe200dd27f19a9f8661ba79a2b23",
74
+ "size": 157,
75
+ },
76
+ "b.md": {
77
+ "hash": "sha256-e725d8b1a33dc089e05b34501b611bc56533e48c96d8713ac08f87bc087bb556",
78
+ "size": 166,
79
+ },
80
+ "toc.yaml": {
81
+ "hash": "sha256-f0e5f8342a96da110f1a0c3dc468ce8bf536d9971b7f6268b7afc6327ba2d163",
82
+ "size": 144,
83
+ },
84
+ },
85
+ "pageAssets": {},
86
+ "schemaVersion": 1,
87
+ }
88
+ `;
89
+
90
+ exports[`Build content map for > autotitle target with include (mergeIncludes on) 1`] = `
91
+ {
92
+ "contentHashes": {
93
+ ".yfm": {
94
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
95
+ "size": 0,
96
+ },
97
+ "a.md": {
98
+ "hash": "sha256-a3306e3527c16dd26e0080fd3b6a20a8149bbe200dd27f19a9f8661ba79a2b23",
99
+ "size": 157,
100
+ },
101
+ "b.md": {
102
+ "hash": "sha256-a5ad363d0d18d412cd83964d8fe8716f848e6114af59a6b555aecd6595e587f0",
103
+ "size": 243,
104
+ },
105
+ "toc.yaml": {
106
+ "hash": "sha256-f0e5f8342a96da110f1a0c3dc468ce8bf536d9971b7f6268b7afc6327ba2d163",
107
+ "size": 144,
108
+ },
109
+ },
110
+ "pageAssets": {},
111
+ "schemaVersion": 1,
112
+ }
113
+ `;
114
+
115
+ exports[`Build content map for > diamond includes (hashIncludes default, mergeIncludes off) 1`] = `
116
+ {
117
+ "contentHashes": {
118
+ ".yfm": {
119
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
120
+ "size": 0,
121
+ },
122
+ "_includes/branch-a.md": {
123
+ "hash": "sha256-3314f60ae1fcaaccab27d5075d5a8ad01bb5d139cc37f4240304d83a9ce88ace",
124
+ "size": 101,
125
+ },
126
+ "_includes/branch-b.md": {
127
+ "hash": "sha256-0d5505b5775980c435e7cb35b0452089980640ff5bc0878a45db8b23901099dd",
128
+ "size": 102,
129
+ },
130
+ "_includes/shared.md": {
131
+ "hash": "sha256-42e099cba25de4c74b858b07c83d4feb6565738d4e21ad3e7208f6e35048931d",
132
+ "size": 55,
133
+ },
134
+ "index.md": {
135
+ "hash": "sha256-e784a8386482ca8274a2599533262d0e1a491e13bc0568a6b23ec317f157f9df",
136
+ "size": 276,
137
+ },
138
+ "toc.yaml": {
139
+ "hash": "sha256-5309b6c21d914169deeb265ac1988546c6c0ab47d100b89c4083efb3f711f872",
140
+ "size": 116,
141
+ },
142
+ },
143
+ "pageAssets": {},
144
+ "schemaVersion": 1,
145
+ }
146
+ `;
147
+
148
+ exports[`Build content map for > diamond includes (mergeIncludes on) 1`] = `
149
+ {
150
+ "contentHashes": {
151
+ ".yfm": {
152
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
153
+ "size": 0,
154
+ },
155
+ "index.md": {
156
+ "hash": "sha256-4a0b4cf64adc48609b3b0448e59bcfca847ca43e96a857673b838b95bfb3b79e",
157
+ "size": 689,
158
+ },
159
+ "toc.yaml": {
160
+ "hash": "sha256-5309b6c21d914169deeb265ac1988546c6c0ab47d100b89c4083efb3f711f872",
161
+ "size": 116,
162
+ },
163
+ },
164
+ "pageAssets": {},
165
+ "schemaVersion": 1,
166
+ }
167
+ `;
168
+
169
+ exports[`Build content map for > nested includes (hashIncludes default, mergeIncludes off) 1`] = `
170
+ {
171
+ "contentHashes": {
172
+ ".yfm": {
173
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
174
+ "size": 0,
175
+ },
176
+ "_includes/level1.md": {
177
+ "hash": "sha256-8720c7deb66b06273ae8fb303accf2a399e622b647e222cbb0dc12c74cdb0df7",
178
+ "size": 121,
179
+ },
180
+ "_includes/level2.md": {
181
+ "hash": "sha256-2ce37af4320216777549f95a5e533efb4486802619b4916aae31764ba98f3339",
182
+ "size": 62,
183
+ },
184
+ "index.md": {
185
+ "hash": "sha256-4ec9eb564530dbdb672c762da78022806922a4ef103956e9256c208fa3ebcc7c",
186
+ "size": 231,
187
+ },
188
+ "toc.yaml": {
189
+ "hash": "sha256-8044d42eecbbbfbf108ef785d04d322e72b2381cea30243cf3accc2ccf469f89",
190
+ "size": 115,
191
+ },
192
+ },
193
+ "pageAssets": {},
194
+ "schemaVersion": 1,
195
+ }
196
+ `;
197
+
198
+ exports[`Build content map for > nested includes (mergeIncludes on) 1`] = `
199
+ {
200
+ "contentHashes": {
201
+ ".yfm": {
202
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
203
+ "size": 0,
204
+ },
205
+ "index.md": {
206
+ "hash": "sha256-82cbe26702322efab28c5788884abd20224d7ab559baac612457d3e61b30f4c1",
207
+ "size": 464,
208
+ },
209
+ "toc.yaml": {
210
+ "hash": "sha256-8044d42eecbbbfbf108ef785d04d322e72b2381cea30243cf3accc2ccf469f89",
211
+ "size": 115,
212
+ },
213
+ },
214
+ "pageAssets": {},
215
+ "schemaVersion": 1,
216
+ }
217
+ `;
218
+
219
+ exports[`Build content map for > project with an include and a picture (mergeIncludes off) 1`] = `
220
+ {
221
+ "contentHashes": {
222
+ ".yfm": {
223
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
224
+ "size": 0,
225
+ },
226
+ "_includes/snippet.md": {
227
+ "hash": "sha256-25c382135c889a69ff3a79390f978f030364fc2fcec5e7db6e6e441c57791a61",
228
+ "size": 26,
229
+ },
230
+ "index.md": {
231
+ "hash": "sha256-aea78fb06925f83bf37d1af249c7a556988f2aa32adceaa42befd401de01e037",
232
+ "size": 210,
233
+ },
234
+ "logo.svg": {
235
+ "hash": "sha256-d13530939abcb6584d6b07c97ded2d9fc6d5751ef4c0262afe36cee3fad0d51c",
236
+ "size": 3402,
237
+ },
238
+ "toc.yaml": {
239
+ "hash": "sha256-08e2907230e064c5ce52e5859d5a3780ed84c41756f921f896a88033a40e0ae9",
240
+ "size": 108,
241
+ },
242
+ },
243
+ "pageAssets": {
244
+ "index.md": [
245
+ "logo.svg",
246
+ ],
247
+ },
248
+ "schemaVersion": 1,
249
+ }
250
+ `;
251
+
252
+ exports[`Build content map for > project with an include and a picture (mergeIncludes on) 1`] = `
253
+ {
254
+ "contentHashes": {
255
+ ".yfm": {
256
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
257
+ "size": 0,
258
+ },
259
+ "index.md": {
260
+ "hash": "sha256-7ecfc045bc85006edf4898acb85d62adc33473b7bdd5cdcb9678a46066b547dc",
261
+ "size": 256,
262
+ },
263
+ "logo.svg": {
264
+ "hash": "sha256-d13530939abcb6584d6b07c97ded2d9fc6d5751ef4c0262afe36cee3fad0d51c",
265
+ "size": 3402,
266
+ },
267
+ "toc.yaml": {
268
+ "hash": "sha256-08e2907230e064c5ce52e5859d5a3780ed84c41756f921f896a88033a40e0ae9",
269
+ "size": 108,
270
+ },
271
+ },
272
+ "pageAssets": {
273
+ "index.md": [
274
+ "logo.svg",
275
+ ],
276
+ },
277
+ "schemaVersion": 1,
278
+ }
279
+ `;
280
+
281
+ exports[`Build content map for > project with autotitle links between pages (mergeIncludes off) 1`] = `
282
+ {
283
+ "contentHashes": {
284
+ ".yfm": {
285
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
286
+ "size": 0,
287
+ },
288
+ "index.md": {
289
+ "hash": "sha256-7b81e86e1bcce905ef6d2cbf5af9421f1e3e6cd7a4f477e371498b30c07a859d",
290
+ "size": 152,
291
+ },
292
+ "other.md": {
293
+ "hash": "sha256-4807c9359ddc98c38441d32aaabeaa22218027ef69bc1d6118c4c006c8c25b36",
294
+ "size": 130,
295
+ },
296
+ "toc.yaml": {
297
+ "hash": "sha256-1455d101a04ae60d37e5ace467d36e4c650e481d90f22ce46cd7b637c33cf541",
298
+ "size": 145,
299
+ },
300
+ },
301
+ "pageAssets": {},
302
+ "schemaVersion": 1,
303
+ }
304
+ `;
305
+
306
+ exports[`Build content map for > project with autotitle links between pages (mergeIncludes on) 1`] = `
307
+ {
308
+ "contentHashes": {
309
+ ".yfm": {
310
+ "hash": "sha256-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
311
+ "size": 0,
312
+ },
313
+ "index.md": {
314
+ "hash": "sha256-7b81e86e1bcce905ef6d2cbf5af9421f1e3e6cd7a4f477e371498b30c07a859d",
315
+ "size": 152,
316
+ },
317
+ "other.md": {
318
+ "hash": "sha256-4807c9359ddc98c38441d32aaabeaa22218027ef69bc1d6118c4c006c8c25b36",
319
+ "size": 130,
320
+ },
321
+ "toc.yaml": {
322
+ "hash": "sha256-1455d101a04ae60d37e5ace467d36e4c650e481d90f22ce46cd7b637c33cf541",
323
+ "size": 145,
324
+ },
325
+ },
326
+ "pageAssets": {},
327
+ "schemaVersion": 1,
328
+ }
329
+ `;
@@ -2,14 +2,10 @@
2
2
 
3
3
  exports[`Include toc > Nested toc inclusions with mixed including modes > filelist 1`] = `
4
4
  "[
5
- "product1/_includes/inc-hash.md",
6
5
  "product1/article1.md",
7
6
  "product1/toc.yaml",
8
- "product2/overlay1/_includes/inc-hash.md",
9
7
  "product2/overlay1/article1.md",
10
- "product2/overlay2/_includes/inc-hash.md",
11
8
  "product2/overlay2/article1.md",
12
- "product2/overlay3/_includes/inc-hash.md",
13
9
  "product2/overlay3/article1.md",
14
10
  "product2/p2.md",
15
11
  "product2/toc.yaml"
@@ -18,13 +14,6 @@ exports[`Include toc > Nested toc inclusions with mixed including modes > fileli
18
14
 
19
15
  exports[`Include toc > Nested toc inclusions with mixed including modes 1`] = `
20
16
  "---
21
- sourcePath: product1/core/_includes/inc.md
22
- ---
23
- This is the core include."
24
- `;
25
-
26
- exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
27
- "---
28
17
  metadata:
29
18
  - name: generator
30
19
  content: Diplodoc Platform vDIPLODOC-VERSION
@@ -33,7 +22,18 @@ vcsPath: product1/core/article1.md
33
22
  ---
34
23
  This is the core content of Article 1.
35
24
 
36
- {% include [x](_includes/inc-hash.md) %}
25
+ <!-- source: product1/_includes/inc.md -->
26
+ This is the core include.
27
+ <!-- endsource: product1/_includes/inc.md -->
28
+ "
29
+ `;
30
+
31
+ exports[`Include toc > Nested toc inclusions with mixed including modes 2`] = `
32
+ "title: Product 1 title
33
+ items:
34
+ - name: Article1
35
+ href: article1.md
36
+ path: product1/toc.yaml
37
37
  "
38
38
  `;
39
39
 
@@ -59,23 +59,6 @@ path: toc.yaml
59
59
  `;
60
60
 
61
61
  exports[`Include toc > Nested toc inclusions with mixed including modes 3`] = `
62
- "title: Product 1 title
63
- items:
64
- - name: Article1
65
- href: article1.md
66
- path: product1/toc.yaml
67
- "
68
- `;
69
-
70
- exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
71
- "---
72
- sourcePath: product2/core/_includes/inc.md
73
- ---
74
- This is the core include.
75
- "
76
- `;
77
-
78
- exports[`Include toc > Nested toc inclusions with mixed including modes 5`] = `
79
62
  "---
80
63
  metadata:
81
64
  - name: generator
@@ -85,19 +68,13 @@ vcsPath: product2/overlay1/product/article1.md
85
68
  ---
86
69
  This is the overlay content of Article 1 for product 2.
87
70
 
88
- {% include [x](_includes/inc-hash.md) %}
89
- "
90
- `;
91
-
92
- exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
93
- "---
94
- sourcePath: product2/core/_includes/inc.md
95
- ---
71
+ <!-- source: product2/overlay1/_includes/inc.md -->
96
72
  This is the core include.
73
+ <!-- endsource: product2/overlay1/_includes/inc.md -->
97
74
  "
98
75
  `;
99
76
 
100
- exports[`Include toc > Nested toc inclusions with mixed including modes 7`] = `
77
+ exports[`Include toc > Nested toc inclusions with mixed including modes 4`] = `
101
78
  "---
102
79
  metadata:
103
80
  - name: generator
@@ -107,19 +84,13 @@ vcsPath: product2/overlay2/product/article1.md
107
84
  ---
108
85
  This is the overlay number #2 of Article 1 content for product 2.
109
86
 
110
- {% include [x](_includes/inc-hash.md) %}
111
- "
112
- `;
113
-
114
- exports[`Include toc > Nested toc inclusions with mixed including modes 8`] = `
115
- "---
116
- sourcePath: product2/core/_includes/inc.md
117
- ---
87
+ <!-- source: product2/overlay2/_includes/inc.md -->
118
88
  This is the core include.
89
+ <!-- endsource: product2/overlay2/_includes/inc.md -->
119
90
  "
120
91
  `;
121
92
 
122
- exports[`Include toc > Nested toc inclusions with mixed including modes 9`] = `
93
+ exports[`Include toc > Nested toc inclusions with mixed including modes 5`] = `
123
94
  "---
124
95
  metadata:
125
96
  - name: generator
@@ -129,11 +100,13 @@ vcsPath: product2/core/article1.md
129
100
  ---
130
101
  This is the core content of Article 1.
131
102
 
132
- {% include [x](_includes/inc-hash.md) %}
103
+ <!-- source: product2/overlay3/_includes/inc.md -->
104
+ This is the core include.
105
+ <!-- endsource: product2/overlay3/_includes/inc.md -->
133
106
  "
134
107
  `;
135
108
 
136
- exports[`Include toc > Nested toc inclusions with mixed including modes 10`] = `
109
+ exports[`Include toc > Nested toc inclusions with mixed including modes 6`] = `
137
110
  "---
138
111
  metadata:
139
112
  - name: generator
@@ -146,7 +119,7 @@ Check here link to [Article1 overlay 1](overlay1/article1.md)
146
119
  Check here link to [Article1 overlay 2](overlay2/article1.md)"
147
120
  `;
148
121
 
149
- exports[`Include toc > Nested toc inclusions with mixed including modes 11`] = `
122
+ exports[`Include toc > Nested toc inclusions with mixed including modes 7`] = `
150
123
  "title: Product 2 title
151
124
  items:
152
125
  - name: P2 Article
@@ -2,9 +2,6 @@
2
2
 
3
3
  exports[`Includes with conditions > Consecutive includes with false condition in the middle > filelist 1`] = `
4
4
  "[
5
- "includes/first-hash.md",
6
- "includes/second-hash.md",
7
- "includes/third-hash.md",
8
5
  "index.md",
9
6
  "toc.yaml"
10
7
  ]"
@@ -18,25 +15,6 @@ exports[`Includes with conditions > Consecutive includes with false condition in
18
15
  `;
19
16
 
20
17
  exports[`Includes with conditions > Consecutive includes with false condition in the middle 1`] = `
21
- "{% note info %}
22
-
23
- This is the first include.
24
-
25
- {% endnote %}
26
- "
27
- `;
28
-
29
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 2`] = `
30
- "
31
- "
32
- `;
33
-
34
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 3`] = `
35
- "This is the third include.
36
- "
37
- `;
38
-
39
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 4`] = `
40
18
  "---
41
19
  metadata:
42
20
  - name: generator
@@ -45,15 +23,23 @@ vcsPath: index.md
45
23
  ---
46
24
  # Test Includes Conditions
47
25
 
48
- {% include [first](includes/first-hash.md) %}
26
+ <!-- source: includes/first.md -->
27
+ {% note info %}
49
28
 
50
- {% include [second](includes/second-hash.md) %}
29
+ This is the first include.
51
30
 
52
- {% include [third](includes/third-hash.md) %}
31
+ {% endnote %}
32
+ <!-- endsource: includes/first.md -->
33
+
34
+
35
+
36
+ <!-- source: includes/third.md -->
37
+ This is the third include.
38
+ <!-- endsource: includes/third.md -->
53
39
  "
54
40
  `;
55
41
 
56
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 5`] = `
42
+ exports[`Includes with conditions > Consecutive includes with false condition in the middle 2`] = `
57
43
  "items:
58
44
  - name: Test Includes Conditions
59
45
  href: index.md
@@ -61,7 +47,7 @@ path: toc.yaml
61
47
  "
62
48
  `;
63
49
 
64
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 6`] = `
50
+ exports[`Includes with conditions > Consecutive includes with false condition in the middle 3`] = `
65
51
  "<!DOCTYPE html>
66
52
  <html lang="ru" dir="ltr">
67
53
  <head>
@@ -75,7 +61,7 @@ exports[`Includes with conditions > Consecutive includes with false condition in
75
61
  <body class="g-root g-root_theme_light">
76
62
  <div id="root"></div>
77
63
  <script type="application/json" id="diplodoc-state">
78
- {"data":{"leading":false,"html":"&lt;div class=\\"yfm-note yfm-accent-info\\" note-type=\\"info\\"&gt;&lt;p class=\\"yfm-note-title\\"&gt;Примечание&lt;/p&gt;/n&lt;div class=\\"yfm-note-content\\"&gt;&lt;p&gt;This is the first include.&lt;/p&gt;/n&lt;/div&gt;&lt;/div&gt;&lt;p&gt;This is the third include.&lt;/p&gt;/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[],"title":"Test Includes Conditions"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
64
+ {"data":{"leading":false,"html":"&lt;div class=\\"yfm-note yfm-accent-info\\" note-type=\\"info\\"&gt;&lt;p class=\\"yfm-note-title\\"&gt;Примечание&lt;/p&gt;/n&lt;div class=\\"yfm-note-content\\"&gt;&lt;p&gt;This is the first include.&lt;/p&gt;/n&lt;/div&gt;&lt;/div&gt;/n/n&lt;p&gt;This is the third include.&lt;/p&gt;/n/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[],"title":"Test Includes Conditions"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
79
65
  </script>
80
66
  <script type="application/javascript">
81
67
  const data = document.querySelector('script#diplodoc-state');
@@ -89,4 +75,4 @@ exports[`Includes with conditions > Consecutive includes with false condition in
89
75
  </html>"
90
76
  `;
91
77
 
92
- exports[`Includes with conditions > Consecutive includes with false condition in the middle 7`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes Conditions","href":"index.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
78
+ exports[`Includes with conditions > Consecutive includes with false condition in the middle 4`] = `"window.__DATA__.data.toc = {"items":[{"name":"Test Includes Conditions","href":"index.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;