@diplodoc/cli-tests 0.0.0-rc-svg-inline-18225893126 → 0.0.0-rc-fix-manifest-18464020849
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__/alternates.test.ts.snap +2 -2
- package/e2e/__snapshots__/preprocess.test.ts.snap +19 -52
- package/e2e/__snapshots__/rtl.spec.ts.snap +8 -8
- package/e2e/errors.spec.ts +0 -11
- package/mocks/preprocess/input/images.md +9 -20
- package/package.json +1 -1
- package/e2e/__snapshots__/pdf-page.spec.ts.snap +0 -41
- package/e2e/pdf-page.spec.ts +0 -17
- package/mocks/errors/object-validation/input/index.md +0 -3
- package/mocks/errors/object-validation/input/toc.yaml +0 -14
- package/mocks/pdf-page/input/.yfm +0 -5
- package/mocks/pdf-page/input/index.md +0 -6
- package/mocks/pdf-page/input/page1.md +0 -3
- package/mocks/pdf-page/input/page2.md +0 -7
- package/mocks/pdf-page/input/page3.md +0 -1
- package/mocks/pdf-page/input/toc.yaml +0 -15
|
@@ -468,8 +468,8 @@ exports[`Alternates > internal 24`] = `
|
|
|
468
468
|
<link rel="canonical" href="ru/about.html">
|
|
469
469
|
<link rel="alternate" href="az/about.html" hreflang="az" />
|
|
470
470
|
<link rel="alternate" href="en/about.html" hreflang="en" />
|
|
471
|
-
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
472
471
|
<link rel="alternate" href="ru/about.html" hreflang="ru" />
|
|
472
|
+
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
473
473
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
474
474
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
475
475
|
</head>
|
|
@@ -807,8 +807,8 @@ exports[`Alternates > skip-html-extension 11`] = `
|
|
|
807
807
|
<link rel="canonical" href="ru/about">
|
|
808
808
|
<link rel="alternate" href="az/about" hreflang="az" />
|
|
809
809
|
<link rel="alternate" href="en/about" hreflang="en" />
|
|
810
|
-
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
811
810
|
<link rel="alternate" href="ru/about" hreflang="ru" />
|
|
811
|
+
<link rel="alternate" href="https://my-other-site.com/about" />
|
|
812
812
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
813
813
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
814
814
|
</head>
|
|
@@ -157,6 +157,7 @@ vcsPath: images.md
|
|
|
157
157
|
6. \`[{width=100 height=200}](https://yandex.com/images/search?text=mountain)\`
|
|
158
158
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
159
159
|
|
|
160
|
+
|
|
160
161
|
7. \`![title][code]{width=100 height=200}\`
|
|
161
162
|
![title][code]{width=100 height=200}
|
|
162
163
|
|
|
@@ -182,52 +183,40 @@ Term
|
|
|
182
183
|

|
|
183
184
|
and more text
|
|
184
185
|
|
|
185
|
-
12. \`{inline=false}\`
|
|
186
|
-
{inline=false}
|
|
187
|
-
|
|
188
|
-
13. \`{width=100 inline=false}\`
|
|
189
|
-
{width=100 inline=false}
|
|
190
|
-
|
|
191
|
-
14. \`{inline=true width=100 }\`
|
|
192
|
-
{inline=true width=100 }
|
|
193
|
-
|
|
194
|
-
15. \`![code svg image 15][code]{inline=true}\`
|
|
195
|
-
![svg image 15][code]{inline=true}
|
|
196
|
-
|
|
197
186
|
20. Сodeblocks - no inline svg
|
|
198
187
|
\`\`\`
|
|
199
188
|
Codeblock fence
|
|
200
|
-

|
|
201
190
|
\`\`\`
|
|
202
191
|
|
|
203
192
|
\`\`\`\`
|
|
204
193
|
Codeblock in codeblock
|
|
205
194
|
\`\`\`
|
|
206
|
-

|
|
207
196
|
\`\`\`
|
|
208
|
-

|
|
209
198
|
\`\`\`\`
|
|
210
199
|
|
|
211
200
|
~~~
|
|
212
201
|
Codeblock tilda
|
|
213
|
-

|
|
214
203
|
~~~
|
|
215
204
|
|
|
216
205
|
\`\`\`\`\`\`\`md translate=no
|
|
217
206
|
Codeblock 10 fence
|
|
218
|
-

|
|
219
208
|
\`\`\`\`\`\`\`
|
|
220
209
|
|
|
221
210
|
Codeblock 4 spaces
|
|
222
|
-

|
|
223
212
|
row 3
|
|
224
213
|
|
|
225
214
|
1. Codeblock 4 spaces in list
|
|
226
215
|
|
|
227
|
-

|
|
228
217
|
1. Codeblock fence in list with bad gap
|
|
229
218
|
\`\`\`
|
|
230
|
-

|
|
231
220
|
\`\`\`
|
|
232
221
|
|
|
233
222
|
\`\`\`md
|
|
@@ -640,6 +629,7 @@ vcsPath: images.md
|
|
|
640
629
|
6. \`[{width=100 height=200}](https://yandex.com/images/search?text=mountain)\`
|
|
641
630
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
642
631
|
|
|
632
|
+
|
|
643
633
|
7. \`![title][code]{width=100 height=200}\`
|
|
644
634
|
![title][code]{width=100 height=200}
|
|
645
635
|
|
|
@@ -665,52 +655,40 @@ Term
|
|
|
665
655
|

|
|
666
656
|
and more text
|
|
667
657
|
|
|
668
|
-
12. \`{inline=false}\`
|
|
669
|
-
{inline=false}
|
|
670
|
-
|
|
671
|
-
13. \`{width=100 inline=false}\`
|
|
672
|
-
{width=100 inline=false}
|
|
673
|
-
|
|
674
|
-
14. \`{inline=true width=100 }\`
|
|
675
|
-
{inline=true width=100 }
|
|
676
|
-
|
|
677
|
-
15. \`![code svg image 15][code]{inline=true}\`
|
|
678
|
-
![svg image 15][code]{inline=true}
|
|
679
|
-
|
|
680
658
|
20. Сodeblocks - no inline svg
|
|
681
659
|
\`\`\`
|
|
682
660
|
Codeblock fence
|
|
683
|
-

|
|
684
662
|
\`\`\`
|
|
685
663
|
|
|
686
664
|
\`\`\`\`
|
|
687
665
|
Codeblock in codeblock
|
|
688
666
|
\`\`\`
|
|
689
|
-

|
|
690
668
|
\`\`\`
|
|
691
|
-

|
|
692
670
|
\`\`\`\`
|
|
693
671
|
|
|
694
672
|
~~~
|
|
695
673
|
Codeblock tilda
|
|
696
|
-

|
|
697
675
|
~~~
|
|
698
676
|
|
|
699
677
|
\`\`\`\`\`\`\`md translate=no
|
|
700
678
|
Codeblock 10 fence
|
|
701
|
-

|
|
702
680
|
\`\`\`\`\`\`\`
|
|
703
681
|
|
|
704
682
|
Codeblock 4 spaces
|
|
705
|
-

|
|
706
684
|
row 3
|
|
707
685
|
|
|
708
686
|
1. Codeblock 4 spaces in list
|
|
709
687
|
|
|
710
|
-

|
|
711
689
|
1. Codeblock fence in list with bad gap
|
|
712
690
|
\`\`\`
|
|
713
|
-

|
|
714
692
|
\`\`\`
|
|
715
693
|
|
|
716
694
|
\`\`\`md
|
|
@@ -1123,6 +1101,7 @@ vcsPath: images.md
|
|
|
1123
1101
|
6. \`[<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>](https://yandex.com/images/search?text=mountain)\`
|
|
1124
1102
|
[<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>](https://yandex.com/images/search?text=mountain)
|
|
1125
1103
|
|
|
1104
|
+
|
|
1126
1105
|
7. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1127
1106
|
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1128
1107
|
|
|
@@ -1148,18 +1127,6 @@ Term
|
|
|
1148
1127
|
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1149
1128
|
and more text
|
|
1150
1129
|
|
|
1151
|
-
12. \`{inline=false}\`
|
|
1152
|
-
{inline=false}
|
|
1153
|
-
|
|
1154
|
-
13. \`{width=100 inline=false}\`
|
|
1155
|
-
{width=100 inline=false}
|
|
1156
|
-
|
|
1157
|
-
14. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1158
|
-
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1159
|
-
|
|
1160
|
-
15. \`<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>\`
|
|
1161
|
-
<svg width="20px" height="20px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" id="rnd-hash__search" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="rnd-hash__search_1_"><linearGradient gradientUnits="userSpaceOnUse" id="rnd-hash__SVGID_1_" x1="57.9473" x2="407.9511" y1="351.4531" y2="149.3783"><stop offset="0" stop-color="#F14D5C"/><stop offset="0.1309" stop-color="#F05454"/><stop offset="0.3346" stop-color="#3bf488"/><stop offset="0.3492" stop-color="#ED683C"/><stop offset="0.714" stop-color="#1e15a3"/><stop offset="1" stop-color="#FDC70C"/></linearGradient><path d="M300.766,87.509c-33.056,0-64.133,12.873-87.507,36.246c-23.374,23.374-36.247,54.451-36.247,87.507 c0,24.234,6.927,47.4,19.83,67.252l-12.669,12.669c0,0.001-0.001,0.001-0.001,0.001l-90.664,90.665 c-8.353,8.354-7.88,22.418,1.055,31.353l4.261,4.262c4.669,4.668,10.736,7.028,16.658,7.028c5.417,0,10.713-1.976,14.703-5.966 l15.405-15.405l75.259-75.259l12.671-12.672c19.85,12.9,43.014,19.826,67.246,19.826c33.056,0,64.133-12.873,87.506-36.247 c48.252-48.251,48.252-126.762,0-175.014C364.898,100.382,333.821,87.509,300.766,87.509z M138.518,396.049 c-4.454,4.453-12.178,3.979-17.219-1.063l-4.261-4.262c-5.036-5.035-5.509-12.756-1.055-17.21l71.38-71.38 c3.284,4.164,6.834,8.16,10.601,11.926c3.766,3.766,7.764,7.318,11.935,10.607L138.518,396.049z M105.894,410.391l-4.261-4.26 c-5.036-5.036-5.509-12.757-1.055-17.211l2.902-2.902c0.936,4.27,3.101,8.393,6.486,11.779l4.261,4.26 c3.392,3.393,7.523,5.549,11.799,6.483l-2.914,2.914C118.658,415.908,110.934,415.432,105.894,410.391z M213.788,320.779 c0.002-0.003,0.005-0.006,0.007-0.008l0,0L213.788,320.779z M217.033,317.534c-4.201-3.248-8.229-6.775-11.998-10.544 c-3.771-3.771-7.295-7.797-10.537-11.99l8.214-8.214c3.233,4.181,6.749,8.185,10.547,11.982c3.8,3.8,7.806,7.317,11.989,10.552 L217.033,317.534z M381.201,291.697c-21.485,21.485-50.052,33.318-80.436,33.318c-30.385,0-58.951-11.833-80.436-33.318 c-21.485-21.484-33.318-50.051-33.318-80.436s11.833-58.95,33.318-80.436c21.485-21.485,50.051-33.317,80.436-33.317 c30.384,0,58.95,11.832,80.436,33.317C425.553,175.179,425.553,247.346,381.201,291.697z" fill="url(#rnd-hash__SVGID_1_)"/><path d="M258.117,115.27l3.604,9.328c2.592-1.001,5.267-1.887,7.949-2.632l-2.676-9.636 C263.998,113.162,261.012,114.151,258.117,115.27z" fill="#3bf488ff"/><path d="M206.264,162.886l8.985,4.389c8.299-16.992,22.191-30.997,39.118-39.433l-4.46-8.95 C231.022,128.304,215.523,143.928,206.264,162.886z" fill="#1e15a3ff"/></g></svg>
|
|
1162
|
-
|
|
1163
1130
|
20. Сodeblocks - no inline svg
|
|
1164
1131
|
\`\`\`
|
|
1165
1132
|
Codeblock fence
|
|
@@ -93,15 +93,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
93
93
|
<base href="../" />
|
|
94
94
|
<title>Documentation | Documentation</title>
|
|
95
95
|
<link rel="canonical" href="ar/index.html">
|
|
96
|
-
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
97
96
|
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
97
|
+
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
98
98
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
99
99
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
100
100
|
</head>
|
|
101
101
|
<body class="g-root g-root_theme_light">
|
|
102
102
|
<div id="root"></div>
|
|
103
103
|
<script type="application/json" id="diplodoc-state">
|
|
104
|
-
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
104
|
+
{"data":{"leading":true,"data":{"title":"Documentation","links":[{"title":"Documentation","href":"ar/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"en/index.html","hreflang":"en"},{"href":"ar/index.html","hreflang":"ar"}],"canonical":"ar/index.html","vcsPath":"ar/index.yaml"},"title":"Documentation"},"router":{"pathname":"ar/index","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
105
105
|
</script>
|
|
106
106
|
<script type="application/javascript">
|
|
107
107
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -124,15 +124,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
124
124
|
<base href="../" />
|
|
125
125
|
<title>Documentation</title>
|
|
126
126
|
<link rel="canonical" href="ar/page.html">
|
|
127
|
-
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
128
127
|
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
128
|
+
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
129
129
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
130
130
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
131
131
|
</head>
|
|
132
132
|
<body class="g-root g-root_theme_light">
|
|
133
133
|
<div id="root"></div>
|
|
134
134
|
<script type="application/json" id="diplodoc-state">
|
|
135
|
-
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
135
|
+
{"data":{"leading":false,"html":"<p>توثيق</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"en/page.html","hreflang":"en"},{"href":"ar/page.html","hreflang":"ar"}],"canonical":"ar/page.html","vcsPath":"ar/page.md"},"headings":[],"title":""},"router":{"pathname":"ar/page","depth":2,"base":"../"},"lang":"ar","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
136
136
|
</script>
|
|
137
137
|
<script type="application/javascript">
|
|
138
138
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -157,15 +157,15 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
157
157
|
<base href="../" />
|
|
158
158
|
<title>Documentation | Documentation</title>
|
|
159
159
|
<link rel="canonical" href="en/index.html">
|
|
160
|
-
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
161
160
|
<link rel="alternate" href="en/index.html" hreflang="en" />
|
|
161
|
+
<link rel="alternate" href="ar/index.html" hreflang="ar" />
|
|
162
162
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
163
163
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
164
164
|
</head>
|
|
165
165
|
<body class="g-root g-root_theme_light">
|
|
166
166
|
<div id="root"></div>
|
|
167
167
|
<script type="application/json" id="diplodoc-state">
|
|
168
|
-
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"en/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"
|
|
168
|
+
{"data":{"leading":true,"data":{"title":"Documentation","description":"","links":[{"title":"Getting started with Documentation","description":"This guide will show you the basics of working with Documentation","href":"en/page.html"}]},"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"alternate":[{"href":"en/index.html","hreflang":"en"},{"href":"ar/index.html","hreflang":"ar"}],"canonical":"en/index.html","title":"Documentation","noIndex":true,"vcsPath":"en/index.yaml"},"title":"Documentation"},"router":{"pathname":"en/index","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
169
169
|
</script>
|
|
170
170
|
<script type="application/javascript">
|
|
171
171
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -188,8 +188,8 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
188
188
|
<base href="../" />
|
|
189
189
|
<title>Documentation</title>
|
|
190
190
|
<link rel="canonical" href="en/page.html">
|
|
191
|
-
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
192
191
|
<link rel="alternate" href="en/page.html" hreflang="en" />
|
|
192
|
+
<link rel="alternate" href="ar/page.html" hreflang="ar" />
|
|
193
193
|
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
194
194
|
<meta name="yfm" content="builder">
|
|
195
195
|
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
@@ -197,7 +197,7 @@ exports[`Generate html document with correct lang and dir attributes. Load corre
|
|
|
197
197
|
<body class="g-root g-root_theme_light">
|
|
198
198
|
<div id="root"></div>
|
|
199
199
|
<script type="application/json" id="diplodoc-state">
|
|
200
|
-
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"alternate":[{"href":"
|
|
200
|
+
{"data":{"leading":false,"html":"<p>Lorem</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"},{"name":"yfm","content":"builder"}],"alternate":[{"href":"en/page.html","hreflang":"en"},{"href":"ar/page.html","hreflang":"ar"}],"canonical":"en/page.html","vcsPath":"en/page.md"},"headings":[],"title":""},"router":{"pathname":"en/page","depth":2,"base":"../"},"lang":"en","langs":["ar","en"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
201
201
|
</script>
|
|
202
202
|
<script type="application/javascript">
|
|
203
203
|
const data = document.querySelector('script#diplodoc-state');
|
package/e2e/errors.spec.ts
CHANGED
|
@@ -31,17 +31,6 @@ describe('Errors', () => {
|
|
|
31
31
|
]);
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
test('mocks/errors/object-validation', ({html}: TestResult) => {
|
|
35
|
-
expectErrors(html, [
|
|
36
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[1].name: found [object Object] value',
|
|
37
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[2].href: found [object Object] value',
|
|
38
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[3].items[0].name: found [object Object] value',
|
|
39
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[4].title: found [object Object] value',
|
|
40
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[5].label: found [object Object] value',
|
|
41
|
-
'ERR Invalid toc structure in toc.yaml -> toc.yaml at items[6].navigation: found [object Object] value',
|
|
42
|
-
]);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
34
|
it('translate extract with filtered links', async () => {
|
|
46
35
|
const {inputPath, outputPath} = getTestPaths('mocks/errors/extract-filtered-link');
|
|
47
36
|
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
6. `[{width=100 height=200}](https://yandex.com/images/search?text=mountain)`
|
|
28
28
|
[{width=100 height=200}](https://yandex.com/images/search?text=mountain)
|
|
29
29
|
|
|
30
|
+
|
|
30
31
|
7. `![title][code]{width=100 height=200}`
|
|
31
32
|
![title][code]{width=100 height=200}
|
|
32
33
|
|
|
@@ -52,52 +53,40 @@ Term
|
|
|
52
53
|

|
|
53
54
|
and more text
|
|
54
55
|
|
|
55
|
-
12. `{inline=false}`
|
|
56
|
-
{inline=false}
|
|
57
|
-
|
|
58
|
-
13. `{width=100 inline=false}`
|
|
59
|
-
{width=100 inline=false}
|
|
60
|
-
|
|
61
|
-
14. `{inline=true width=100 }`
|
|
62
|
-
{inline=true width=100 }
|
|
63
|
-
|
|
64
|
-
15. `![code svg image 15][code]{inline=true}`
|
|
65
|
-
![svg image 15][code]{inline=true}
|
|
66
|
-
|
|
67
56
|
20. Сodeblocks - no inline svg
|
|
68
57
|
```
|
|
69
58
|
Codeblock fence
|
|
70
|
-

|
|
71
60
|
```
|
|
72
61
|
|
|
73
62
|
````
|
|
74
63
|
Codeblock in codeblock
|
|
75
64
|
```
|
|
76
|
-

|
|
77
66
|
```
|
|
78
|
-

|
|
79
68
|
````
|
|
80
69
|
|
|
81
70
|
~~~
|
|
82
71
|
Codeblock tilda
|
|
83
|
-

|
|
84
73
|
~~~
|
|
85
74
|
|
|
86
75
|
```````md translate=no
|
|
87
76
|
Codeblock 10 fence
|
|
88
|
-

|
|
89
78
|
```````
|
|
90
79
|
|
|
91
80
|
Codeblock 4 spaces
|
|
92
|
-

|
|
93
82
|
row 3
|
|
94
83
|
|
|
95
84
|
1. Codeblock 4 spaces in list
|
|
96
85
|
|
|
97
|
-

|
|
98
87
|
1. Codeblock fence in list with bad gap
|
|
99
88
|
```
|
|
100
|
-

|
|
101
90
|
```
|
|
102
91
|
|
|
103
92
|
```md
|
package/package.json
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
-
|
|
3
|
-
exports[`Pdf page mode > transforms links correctly > filelist 1`] = `
|
|
4
|
-
"[
|
|
5
|
-
"pdf-page-toc.js",
|
|
6
|
-
"pdf-page.html",
|
|
7
|
-
"pdf-page.json"
|
|
8
|
-
]"
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports[`Pdf page mode > transforms links correctly 1`] = `"window.__DATA__.data.toc = {"title":"Skip html extension","href":"#index","items":[{"name":"Title 1","href":"#page1","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
12
|
-
|
|
13
|
-
exports[`Pdf page mode > transforms links correctly 2`] = `
|
|
14
|
-
"<!DOCTYPE html>
|
|
15
|
-
<html lang="ru" dir="ltr">
|
|
16
|
-
<head>
|
|
17
|
-
<meta charset="utf-8">
|
|
18
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
19
|
-
<base href="./" />
|
|
20
|
-
<title>Skip html extension | Skip html extension</title>
|
|
21
|
-
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
22
|
-
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
23
|
-
</head>
|
|
24
|
-
<body class="g-root g-root_theme_light">
|
|
25
|
-
<div id="root"></div>
|
|
26
|
-
<script type="application/json" id="diplodoc-state">
|
|
27
|
-
{"data":{"leading":false,"html":"<h2 data-original-article=\\"index.html\\">Header<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"></a></h2><p>Content</p>/n<p><a href=\\"#page1\\">Link 1</a><br>/n<a href=\\"page2.html\\">Link 2</a></p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p><a href=\\"page2.html#hash\\">Link</a></p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension"},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
28
|
-
</script>
|
|
29
|
-
<script type="application/javascript">
|
|
30
|
-
const data = document.querySelector('script#diplodoc-state');
|
|
31
|
-
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
32
|
-
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
33
|
-
})(data.innerText));
|
|
34
|
-
window.STATIC_CONTENT = false;
|
|
35
|
-
</script>
|
|
36
|
-
<script type="application/javascript" defer src="pdf-page.html"></script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>"
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`Pdf page mode > transforms links correctly 3`] = `"{"data":{"leading":false,"html":"<h2 data-original-article=\\"index.html\\">Header<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#index\\" id=\\"index\\"></a></h2><p>Content</p>/n<p><a href=\\"#page1\\">Link 1</a><br>/n<a href=\\"page2.html\\">Link 2</a></p>/n<hr class=\\"yfm-page__delimeter\\"><h2 data-original-article=\\"page1.html\\">Page 1<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#page1\\" id=\\"page1\\"></a></h2><p><a href=\\"page2.html#hash\\">Link</a></p>/n","headings":[],"meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}]},"title":"Skip html extension","toc":{"title":"Skip html extension","href":"index.html","items":[{"name":"Title 1","href":"page1.html","id":"UUID"}],"path":"toc.yaml","id":"UUID"}},"router":{"pathname":"pdf-page","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}"`;
|
package/e2e/pdf-page.spec.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {describe, it} from 'vitest';
|
|
2
|
-
|
|
3
|
-
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
4
|
-
|
|
5
|
-
describe('Pdf page mode', () => {
|
|
6
|
-
it('transforms links correctly', async () => {
|
|
7
|
-
const {inputPath, outputPath} = getTestPaths('mocks/pdf-page');
|
|
8
|
-
|
|
9
|
-
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
10
|
-
md2md: false,
|
|
11
|
-
md2html: true,
|
|
12
|
-
args: '-j2',
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
await compareDirectories(`${outputPath}/pdf`);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
items:
|
|
2
|
-
- name: Valid Item
|
|
3
|
-
href: valid.md
|
|
4
|
-
- name: {{some-var}}
|
|
5
|
-
href: invalid-name.md
|
|
6
|
-
- name: Invalid Href Item
|
|
7
|
-
href: {{some-var}}
|
|
8
|
-
- name: Parent Item
|
|
9
|
-
items:
|
|
10
|
-
- name: {{some-var}}
|
|
11
|
-
href: nested-invalid.md
|
|
12
|
-
- title: {{some-var}}
|
|
13
|
-
- label: {{some-var}}
|
|
14
|
-
- navigation: {{some-var}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Page 3
|