@diplodoc/cli-tests 5.12.4 → 5.13.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__/pdf-page.spec.ts.snap +44 -4
- package/e2e/__snapshots__/preprocess.test.ts.snap +52 -19
- package/e2e/__snapshots__/regression.test.ts.snap +1 -1
- package/e2e/errors.spec.ts +11 -0
- package/e2e/pdf-page.spec.ts +19 -5
- package/mocks/errors/object-validation/input/index.md +3 -0
- package/mocks/errors/object-validation/input/toc.yaml +14 -0
- package/mocks/pdf-page/flag-enabled/input/__includes/include1.md +3 -0
- package/mocks/pdf-page/flag-enabled/input/index.md +7 -0
- package/mocks/pdf-page/flag-enabled/input/page1.md +6 -0
- package/mocks/pdf-page/flag-enabled/input/syntax/test.md +1 -0
- package/mocks/pdf-page/flag-enabled/input/toc.yaml +17 -0
- package/mocks/pdf-page/yfm-config/input/page2.md +7 -0
- package/mocks/pdf-page/yfm-config/input/page3.md +1 -0
- package/mocks/preprocess/input/images.md +20 -9
- package/package.json +1 -1
- /package/mocks/pdf-page/{input → flag-enabled/input}/page2.md +0 -0
- /package/mocks/pdf-page/{input → flag-enabled/input}/page3.md +0 -0
- /package/mocks/pdf-page/{input → yfm-config/input}/.yfm +0 -0
- /package/mocks/pdf-page/{input → yfm-config/input}/index.md +0 -0
- /package/mocks/pdf-page/{input → yfm-config/input}/page1.md +0 -0
- /package/mocks/pdf-page/{input → yfm-config/input}/toc.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
2
|
|
|
3
|
-
exports[`Pdf page mode >
|
|
3
|
+
exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified > filelist 1`] = `
|
|
4
4
|
"[
|
|
5
5
|
"pdf-page-toc.js",
|
|
6
6
|
"pdf-page.html",
|
|
@@ -8,9 +8,9 @@ exports[`Pdf page mode > transforms links correctly > filelist 1`] = `
|
|
|
8
8
|
]"
|
|
9
9
|
`;
|
|
10
10
|
|
|
11
|
-
exports[`Pdf page mode >
|
|
11
|
+
exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified 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
12
|
|
|
13
|
-
exports[`Pdf page mode >
|
|
13
|
+
exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified 2`] = `
|
|
14
14
|
"<!DOCTYPE html>
|
|
15
15
|
<html lang="ru" dir="ltr">
|
|
16
16
|
<head>
|
|
@@ -38,4 +38,44 @@ exports[`Pdf page mode > transforms links correctly 2`] = `
|
|
|
38
38
|
</html>"
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
|
-
exports[`Pdf page mode >
|
|
41
|
+
exports[`Pdf page mode > creates a pdf folder when the .yfm option is specified 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}}"`;
|
|
42
|
+
|
|
43
|
+
exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified > filelist 1`] = `
|
|
44
|
+
"[
|
|
45
|
+
"pdf-page-toc.js",
|
|
46
|
+
"pdf-page.html",
|
|
47
|
+
"pdf-page.json"
|
|
48
|
+
]"
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 1`] = `"window.__DATA__.data.toc = {"title":"Skip html extension","href":"#index","items":[{"name":"Syntax","href":"#syntax_test","id":"UUID"},{"name":"Title 1","href":"#page1","id":"UUID"}],"path":"toc.yaml","id":"UUID"};"`;
|
|
52
|
+
|
|
53
|
+
exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 2`] = `
|
|
54
|
+
"<!DOCTYPE html>
|
|
55
|
+
<html lang="ru" dir="ltr">
|
|
56
|
+
<head>
|
|
57
|
+
<meta charset="utf-8">
|
|
58
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
59
|
+
<base href="./" />
|
|
60
|
+
<title>Skip html extension | Skip html extension</title>
|
|
61
|
+
<meta name="generator" content="Diplodoc Platform vDIPLODOC-VERSION">
|
|
62
|
+
<style type="text/css">html, body {min-height:100vh; height:100vh;}</style>
|
|
63
|
+
</head>
|
|
64
|
+
<body class="g-root g-root_theme_light">
|
|
65
|
+
<div id="root"></div>
|
|
66
|
+
<script type="application/json" id="diplodoc-state">
|
|
67
|
+
{"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 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"><a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Syntax page</span></a>Syntax page<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"></a></h2>/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<h4 id=\\"page1_include-link-page\\"><a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include link page</span></a>Include link page</h4>/n<p><a href=\\"../syntax/test.html\\">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}}
|
|
68
|
+
</script>
|
|
69
|
+
<script type="application/javascript">
|
|
70
|
+
const data = document.querySelector('script#diplodoc-state');
|
|
71
|
+
window.__DATA__ = JSON.parse((function unescape(string) {
|
|
72
|
+
return string.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&");
|
|
73
|
+
})(data.innerText));
|
|
74
|
+
window.STATIC_CONTENT = false;
|
|
75
|
+
</script>
|
|
76
|
+
<script type="application/javascript" defer src="pdf-page.html"></script>
|
|
77
|
+
</body>
|
|
78
|
+
</html>"
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
exports[`Pdf page mode > creates a pdf folder when the --pdf flag is specified 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 id=\\"syntax_test_syntax-page\\" data-original-article=\\"syntax/test.html\\"><a href=\\"#syntax_test_syntax-page\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Syntax page</span></a>Syntax page<a class=\\"yfm-anchor\\" aria-hidden=\\"true\\" href=\\"#syntax_test\\" id=\\"syntax_test\\"></a></h2>/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<h4 id=\\"page1_include-link-page\\"><a href=\\"#page1_include-link-page\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include link page</span></a>Include link page</h4>/n<p><a href=\\"../syntax/test.html\\">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":"Syntax","href":"syntax/test.html","id":"UUID"},{"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}}"`;
|
|
@@ -157,7 +157,6 @@ 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
|
-
|
|
161
160
|
7. \`![title][code]{width=100 height=200}\`
|
|
162
161
|
![title][code]{width=100 height=200}
|
|
163
162
|
|
|
@@ -183,40 +182,52 @@ Term
|
|
|
183
182
|

|
|
184
183
|
and more text
|
|
185
184
|
|
|
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
|
+
|
|
186
197
|
20. Сodeblocks - no inline svg
|
|
187
198
|
\`\`\`
|
|
188
199
|
Codeblock fence
|
|
189
|
-

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

|
|
196
207
|
\`\`\`
|
|
197
|
-

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

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

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

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

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

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

|
|
656
666
|
and more text
|
|
657
667
|
|
|
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
|
+
|
|
658
680
|
20. Сodeblocks - no inline svg
|
|
659
681
|
\`\`\`
|
|
660
682
|
Codeblock fence
|
|
661
|
-

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

|
|
668
690
|
\`\`\`
|
|
669
|
-

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

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

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

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

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

|
|
692
714
|
\`\`\`
|
|
693
715
|
|
|
694
716
|
\`\`\`md
|
|
@@ -1101,7 +1123,6 @@ vcsPath: images.md
|
|
|
1101
1123
|
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)\`
|
|
1102
1124
|
[<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)
|
|
1103
1125
|
|
|
1104
|
-
|
|
1105
1126
|
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>\`
|
|
1106
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>
|
|
1107
1128
|
|
|
@@ -1127,6 +1148,18 @@ Term
|
|
|
1127
1148
|
<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
1149
|
and more text
|
|
1129
1150
|
|
|
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
|
+
|
|
1130
1163
|
20. Сodeblocks - no inline svg
|
|
1131
1164
|
\`\`\`
|
|
1132
1165
|
Codeblock fence
|
|
@@ -699,7 +699,7 @@ exports[`Regression > internal 29`] = `
|
|
|
699
699
|
<body class="g-root g-root_theme_light">
|
|
700
700
|
<div id="root"></div>
|
|
701
701
|
<script type="application/json" id="diplodoc-state">
|
|
702
|
-
{"data":{"leading":false,"html":"<p>Text {{not-var}} {{skip()}} default-var-value</p>/n<p>Text <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-1">{{not-var}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-2">{{skip()}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-3">default-var-value</code></p>/n<p>Text</p>/n/n <div class=\\"yfm-clipboard\\">/n <pre><code class=\\"hljs\\">{{not-var}}/n/n{{skip()}}/n/ndefault-var-value/n</code></pre>/n/n <button class=\\"yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-clipboard-icon\\" data-animation=\\"9\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-9\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-9\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-9.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n<p><code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-4">[not a link](./path/to/relative/file.md)</code></p>/n<h2 id=\\"subtitle\\"><a href=\\"1.html#subtitle\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subtitle</span></a>Subtitle</h2>/n<p><a href=\\"mermaid.html\\">Mermaid usage</a></p>/n<p><a href=\\"mermaid.html#info\\">Mermaid info</a></p>/n<p><a href=\\"latex.html\\">Latex usage</a></p>/n<p><a href=\\"includes\\">noext-link</a></p>/n<p>Bob</p>/n
|
|
702
|
+
{"data":{"leading":false,"html":"<p>Text {{not-var}} {{skip()}} default-var-value</p>/n<p>Text <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-1">{{not-var}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-2">{{skip()}}</code> <code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-3">default-var-value</code></p>/n<p>Text</p>/n/n <div class=\\"yfm-clipboard\\">/n <pre><code class=\\"hljs\\">{{not-var}}/n/n{{skip()}}/n/ndefault-var-value/n</code></pre>/n/n <button class=\\"yfm-clipboard-button\\">/n <svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 24 24\\" class=\\"yfm-clipboard-icon\\" data-animation=\\"9\\">/n <path fill=\\"currentColor\\" d=\\"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z\\"></path>/n <path stroke=\\"currentColor\\" fill=\\"transparent\\" stroke-width=\\"1.5\\" d=\\"M9.5 13l3 3l5 -5\\" visibility=\\"hidden\\">/n <animate id=\\"visibileAnimation-9\\" attributeName=\\"visibility\\" from=\\"hidden\\" to=\\"visible\\" dur=\\"0.2s\\" fill=\\"freeze\\" begin></animate>/n <animate id=\\"hideAnimation-9\\" attributeName=\\"visibility\\" from=\\"visible\\" to=\\"hidden\\" dur=\\"1s\\" begin=\\"visibileAnimation-9.end+1\\" fill=\\"freeze\\"></animate>/n </path>/n </svg>/n </button>/n </div>/n<p><code class=\\"yfm-clipboard-inline-code\\" role=\\"button\\" tabindex=\\"0\\" id="inline-code-id-4">[not a link](./path/to/relative/file.md)</code></p>/n<h2 id=\\"subtitle\\"><a href=\\"1.html#subtitle\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subtitle</span></a>Subtitle</h2>/n<p><a href=\\"mermaid.html\\">Mermaid usage</a></p>/n<p><a href=\\"mermaid.html#info\\">Mermaid info</a></p>/n<p><a href=\\"latex.html\\">Latex usage</a></p>/n<p><a href=\\"includes\\">noext-link</a></p>/n<p>Bob</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"1.md"},"headings":[{"title":"Subtitle","href":"1.html#subtitle","level":2}],"title":"Title"},"router":{"pathname":"1","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
703
703
|
</script>
|
|
704
704
|
<script type="application/javascript">
|
|
705
705
|
const data = document.querySelector('script#diplodoc-state');
|
package/e2e/errors.spec.ts
CHANGED
|
@@ -31,6 +31,17 @@ 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
|
+
|
|
34
45
|
it('translate extract with filtered links', async () => {
|
|
35
46
|
const {inputPath, outputPath} = getTestPaths('mocks/errors/extract-filtered-link');
|
|
36
47
|
|
package/e2e/pdf-page.spec.ts
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
import {describe,
|
|
1
|
+
import {describe, test} from 'vitest';
|
|
2
2
|
|
|
3
3
|
import {TestAdapter, compareDirectories, getTestPaths} from '../fixtures';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const {inputPath, outputPath} = getTestPaths(
|
|
5
|
+
const generateMapTestTemplate = (testTitle: string, testRootPath: string, args: string) => {
|
|
6
|
+
test(testTitle, async () => {
|
|
7
|
+
const {inputPath, outputPath} = getTestPaths(testRootPath);
|
|
8
8
|
|
|
9
9
|
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
10
10
|
md2md: false,
|
|
11
11
|
md2html: true,
|
|
12
|
-
args
|
|
12
|
+
args,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
await compareDirectories(`${outputPath}/pdf`);
|
|
16
16
|
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
describe('Pdf page mode', () => {
|
|
20
|
+
generateMapTestTemplate(
|
|
21
|
+
'creates a pdf folder when the --pdf flag is specified',
|
|
22
|
+
'mocks/pdf-page/flag-enabled',
|
|
23
|
+
'-j2 --pdf',
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
generateMapTestTemplate(
|
|
27
|
+
'creates a pdf folder when the .yfm option is specified',
|
|
28
|
+
'mocks/pdf-page/yfm-config',
|
|
29
|
+
'-j2',
|
|
30
|
+
);
|
|
17
31
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#### Syntax page
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
title: Skip html extension
|
|
2
|
+
href: index.md
|
|
3
|
+
|
|
4
|
+
items:
|
|
5
|
+
- name: Syntax
|
|
6
|
+
href: ./syntax/test.md
|
|
7
|
+
- name: Title 1
|
|
8
|
+
href: page1.md
|
|
9
|
+
- name: Title 2
|
|
10
|
+
href: page2.md
|
|
11
|
+
hidden: true
|
|
12
|
+
- name: Without href
|
|
13
|
+
hidden: true
|
|
14
|
+
items:
|
|
15
|
+
- name: Title 3
|
|
16
|
+
href: page3.md
|
|
17
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Page 3
|
|
@@ -27,7 +27,6 @@
|
|
|
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
|
-
|
|
31
30
|
7. `![title][code]{width=100 height=200}`
|
|
32
31
|
![title][code]{width=100 height=200}
|
|
33
32
|
|
|
@@ -53,40 +52,52 @@ Term
|
|
|
53
52
|

|
|
54
53
|
and more text
|
|
55
54
|
|
|
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
|
+
|
|
56
67
|
20. Сodeblocks - no inline svg
|
|
57
68
|
```
|
|
58
69
|
Codeblock fence
|
|
59
|
-

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

|
|
66
77
|
```
|
|
67
|
-

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

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

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

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

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

|
|
90
101
|
```
|
|
91
102
|
|
|
92
103
|
```md
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|