@diplodoc/cli-tests 5.39.6 → 5.39.8
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__/includes.test.ts.snap +4 -3
- package/e2e/__snapshots__/merge-includes.spec.ts.snap +400 -1
- package/e2e/__snapshots__/regression.test.ts.snap +2 -2
- package/e2e/merge-includes.spec.ts +70 -0
- package/mocks/merge-includes/html-comment-blanks/input/_includes/examples.md +27 -0
- package/mocks/merge-includes/html-comment-blanks/input/index.md +3 -0
- package/mocks/merge-includes/html-comment-blanks/input/main.md +15 -0
- package/mocks/merge-includes/html-comment-blanks/input/toc.yaml +5 -0
- package/mocks/merge-includes/include-after-fence/input/_includes/chat-button.md +1 -0
- package/mocks/merge-includes/include-after-fence/input/_includes/footer.md +1 -0
- package/mocks/merge-includes/include-after-fence/input/index.md +3 -0
- package/mocks/merge-includes/include-after-fence/input/main.md +14 -0
- package/mocks/merge-includes/include-after-fence/input/toc.yaml +5 -0
- package/mocks/merge-includes/include-in-code-block/input/_includes/glossary.md +1 -0
- package/mocks/merge-includes/include-in-code-block/input/index.md +3 -0
- package/mocks/merge-includes/include-in-code-block/input/main.md +19 -0
- package/mocks/merge-includes/include-in-code-block/input/toc.yaml +5 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/_includes/requirements.md +9 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/index.md +3 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/main.md +12 -0
- package/mocks/merge-includes/indent-paragraph-in-include/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table-html-block/input/_includes/button.md +8 -0
- package/mocks/merge-includes/yfm-table-html-block/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table-html-block/input/main.md +12 -0
- package/mocks/merge-includes/yfm-table-html-block/input/toc.yaml +5 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/_includes/example.md +1 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/index.md +3 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/main.md +22 -0
- package/mocks/merge-includes/yfm-table-pipe-in-content/input/toc.yaml +5 -0
- package/package.json +1 -1
|
@@ -317,6 +317,7 @@ exports[`Includes > Various include scenarios 13`] = `
|
|
|
317
317
|
metadata:
|
|
318
318
|
- name: generator
|
|
319
319
|
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
320
|
+
vcsPath: toc-include.md
|
|
320
321
|
---
|
|
321
322
|
# Toc Include
|
|
322
323
|
|
|
@@ -389,7 +390,7 @@ exports[`Includes > Various include scenarios 17`] = `
|
|
|
389
390
|
<body class="g-root g-root_theme_light">
|
|
390
391
|
<div id="root"></div>
|
|
391
392
|
<script type="application/json" id="diplodoc-state">
|
|
392
|
-
{"data":{"leading":false,"html":"<p>This is a test page for various include scenarios.</p>/n<h2 id=\\"include-from-root-level\\"><a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root level</span></a>Include from root level</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection21\\"><a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-with-missing-file\\"><a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with missing file</span></a>Include with missing file</h2>/n/n<h2 id=\\"include-file-that-is-in-toc\\"><a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include file that is in toc</span></a>Include file that is in toc</h2>/n<p><a href=\\"toc-include.html\\">Link to toc-include</a></p>/n<h1>Toc Include</h1>/n<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section1\\"><a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section11\\"><a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-with-multiple-anchors\\"><a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with multiple anchors</span></a>Include with multiple anchors</h2>/n<h2 id=\\"section21\\"><a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-paragraph-anchor\\"><a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with paragraph anchor</span></a>Include with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<h2 id=\\"nested-includes\\"><a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested includes</span></a>Nested includes</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor5\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"deep-nested-includes\\"><a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Deep nested includes</span></a>Deep nested includes</h2>/n<h1 id=\\"deep-nested-include\\">Deep nested include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to level1 page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2 page2</a></p>/n<p>This is a deep nested include.</p>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<p><img src=\\"_assets/4.png\\" alt=\\"img 3\\" /></p>/n<h2 id=\\"commented-includes\\"><a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Commented includes</span></a>Commented includes</h2>/n/n<h2 id=\\"include-with-variable-substitution\\"><a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with variable substitution</span></a>Include with variable substitution</h2>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title\\"><a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title</span></a>Include without title</h2>/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory\\"><a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title-with-anchor\\"><a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-without-title-with-paragraph-anchor\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"anchor\\"><a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<p>{% include notitle <a href=\\"index.html#anchor\\">anchor</a> %}<br />/n{% include <a href=\\"index.html#anchor\\">anchor</a> %}</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
393
|
+
{"data":{"leading":false,"html":"<p>This is a test page for various include scenarios.</p>/n<h2 id=\\"include-from-root-level\\"><a href=\\"index.html#include-from-root-level\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root level</span></a>Include from root level</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection21\\"><a href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"index.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"index.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-with-missing-file\\"><a href=\\"index.html#include-with-missing-file\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with missing file</span></a>Include with missing file</h2>/n/n<h2 id=\\"include-file-that-is-in-toc\\"><a href=\\"index.html#include-file-that-is-in-toc\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include file that is in toc</span></a>Include file that is in toc</h2>/n<p><a href=\\"toc-include.html\\">Link to toc-include</a></p>/n<h1>Toc Include</h1>/n<p>This file is included in the toc.</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a href=\\"index.html#include-with-anchor3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section1\\"><a href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"index.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"index.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section11\\"><a id=\\"section1\\" href=\\"index.html#section1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 1</span></a>Section 1</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-with-multiple-anchors\\"><a href=\\"index.html#include-with-multiple-anchors\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with multiple anchors</span></a>Include with multiple anchors</h2>/n<h2 id=\\"section21\\"><a id=\\"section2\\" href=\\"index.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-paragraph-anchor\\"><a href=\\"index.html#include-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with paragraph anchor</span></a>Include with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<h2 id=\\"nested-includes\\"><a href=\\"index.html#nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested includes</span></a>Nested includes</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor5\\"><a id=\\"include-with-anchor\\" href=\\"index.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"index.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"index.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"deep-nested-includes\\"><a href=\\"index.html#deep-nested-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Deep nested includes</span></a>Deep nested includes</h2>/n<h1 id=\\"deep-nested-include\\">Deep nested include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to level1 page1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2 page2</a></p>/n<p>This is a deep nested include.</p>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<p><img src=\\"_assets/4.png\\" alt=\\"img 3\\" /></p>/n<h2 id=\\"commented-includes\\"><a href=\\"index.html#commented-includes\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Commented includes</span></a>Commented includes</h2>/n/n<h2 id=\\"include-with-variable-substitution\\"><a href=\\"index.html#include-with-variable-substitution\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with variable substitution</span></a>Include with variable substitution</h2>/n<h1 id=\\"user-include\\">User include <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title\\"><a href=\\"index.html#include-without-title\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title</span></a>Include without title</h2>/n<h1 id=\\"include-without-title\\">Include without title <a href=\\"index.html\\">→ index</a></h1>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a test for include without title.</p>/n<h2 id=\\"include-without-title-from-the-same-directory\\"><a href=\\"index.html#include-without-title-from-the-same-directory\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title from the same directory</span></a>Include without title from the same directory</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p>This is a user include with variable substitution: Alice</p>/n<h2 id=\\"include-without-title-with-anchor\\"><a href=\\"index.html#include-without-title-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with anchor</span></a>Include without title with anchor</h2>/n<p>This is content of section 1.</p>/n<h2 id=\\"include-without-title-with-paragraph-anchor\\"><a href=\\"index.html#include-without-title-with-paragraph-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include without title with paragraph anchor</span></a>Include without title with paragraph anchor</h2>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"anchor\\"><a href=\\"index.html#anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<p>{% include notitle <a href=\\"index.html#anchor\\">anchor</a> %}<br />/n{% include <a href=\\"index.html#anchor\\">anchor</a> %}</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"index.md"},"headings":[{"title":"Include from root level","href":"index.html#include-from-root-level","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor","level":2},{"title":"Section 2","href":"index.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection21","level":3}]},{"title":"Include from level1","href":"index.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection211","level":3}]},{"title":"Section 3","href":"index.html#section3","level":2},{"title":"Include from level2","href":"index.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"index.html#include-with-anchor2","level":2},{"title":"Section 3","href":"index.html#section31","level":2},{"title":"Include with missing file","href":"index.html#include-with-missing-file","level":2},{"title":"Include file that is in toc","href":"index.html#include-file-that-is-in-toc","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor3","level":2},{"title":"Section 1","href":"index.html#section1","level":2},{"title":"Links to different levels","href":"index.html#links-to-different-levels","level":2},{"title":"Include with anchor","href":"index.html#include-with-anchor4","level":2},{"title":"Section 1","href":"index.html#section11","level":2},{"title":"Include with multiple anchors","href":"index.html#include-with-multiple-anchors","level":2},{"title":"Section 2","href":"index.html#section21","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection212","level":3}]},{"title":"Include with paragraph anchor","href":"index.html#include-with-paragraph-anchor","level":2},{"title":"Nested includes","href":"index.html#nested-includes","level":2},{"title":"Include with anchor → root","href":"index.html#include-with-anchor5","level":2,"items":[{"title":"Subsection 2.1","href":"index.html#subsection213","level":3}]},{"title":"Section 3","href":"index.html#section32","level":2},{"title":"Deep nested includes","href":"index.html#deep-nested-includes","level":2},{"title":"Commented includes","href":"index.html#commented-includes","level":2},{"title":"Include with variable substitution","href":"index.html#include-with-variable-substitution","level":2},{"title":"Include without title","href":"index.html#include-without-title","level":2},{"title":"Include without title from the same directory","href":"index.html#include-without-title-from-the-same-directory","level":2},{"title":"Include without title with anchor","href":"index.html#include-without-title-with-anchor","level":2},{"title":"Include without title with paragraph anchor","href":"index.html#include-without-title-with-paragraph-anchor","level":2},{"title":"Include with anchor","href":"index.html#anchor","level":2}],"title":"Test Includes"},"router":{"pathname":"index","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
393
394
|
</script>
|
|
394
395
|
<script type="application/javascript">
|
|
395
396
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -417,7 +418,7 @@ exports[`Includes > Various include scenarios 18`] = `
|
|
|
417
418
|
<body class="g-root g-root_theme_light">
|
|
418
419
|
<div id="root"></div>
|
|
419
420
|
<script type="application/json" id="diplodoc-state">
|
|
420
|
-
{"data":{"leading":false,"html":"<p>This is page 2 at level 2.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
421
|
+
{"data":{"leading":false,"html":"<p>This is page 2 at level 2.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/level2/page2.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/level2/page2.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/level2/page2.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/level2/page2.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/level2/page2.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/level2/page2.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/level2/page2.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/level2/page2.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/level2/page2.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/level2/page2.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/level2/page2.md"},"headings":[{"title":"Include from level2","href":"level1/level2/page2.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section3","level":2},{"title":"Include from level1","href":"level1/level2/page2.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor1","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section31","level":2},{"title":"Include from root","href":"level1/level2/page2.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/level2/page2.html#include-with-anchor2","level":2},{"title":"Section 2","href":"level1/level2/page2.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection211","level":3}]},{"title":"Links to different levels","href":"level1/level2/page2.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/level2/page2.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/level2/page2.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/level2/page2.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/level2/page2.html#section32","level":2},{"title":"Include with anchor","href":"level1/level2/page2.html#include-with-anchor4","level":2},{"title":"Section 3","href":"level1/level2/page2.html#section33","level":2}],"title":"Page 2"},"router":{"pathname":"level1/level2/page2","depth":3,"base":"../../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
421
422
|
</script>
|
|
422
423
|
<script type="application/javascript">
|
|
423
424
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -445,7 +446,7 @@ exports[`Includes > Various include scenarios 19`] = `
|
|
|
445
446
|
<body class="g-root g-root_theme_light">
|
|
446
447
|
<div id="root"></div>
|
|
447
448
|
<script type="application/json" id="diplodoc-state">
|
|
448
|
-
{"data":{"leading":false,"html":"<p>This is page 1 at level 1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section3\\"><a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
449
|
+
{"data":{"leading":false,"html":"<p>This is page 1 at level 1.</p>/n<h2 id=\\"include-from-level1\\"><a href=\\"level1/page1.html#include-from-level1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level1</span></a>Include from level1</h2>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor\\"><a href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection21\\"><a href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section3\\"><a href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-from-root\\"><a href=\\"level1/page1.html#include-from-root\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from root</span></a>Include from root</h2>/n<p>This is an include from the root level.</p>/n<p><a href=\\"level1/page1.html\\">Link to level1</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor1\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section2\\"><a href=\\"level1/page1.html#section2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 2</span></a>Section 2</h2>/n<p>This is content of section 2.</p>/n<h3 id=\\"subsection211\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"include-from-level2\\"><a href=\\"level1/page1.html#include-from-level2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include from level2</span></a>Include from level2</h2>/n<p>This is an include from level 2.</p>/n<p><a href=\\"level1/level2/page2.html\\">Link to page2</a></p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<h2 id=\\"include-with-anchor2\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → level1</span></a>Include with anchor <a href=\\"level1/page1.html\\">→ level1</a></h2>/n<h2 id=\\"section31\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"links-to-different-levels\\"><a href=\\"level1/page1.html#links-to-different-levels\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Links to different levels</span></a>Links to different levels</h2>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"nested-include\\"><a href=\\"level1/page1.html#nested-include\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Nested include</span></a>Nested include</h2>/n<h1 id=\\"nested-include\\">Nested include <a href=\\"index.html\\">→ index</a></h1>/n<p>This is a nested include.</p>/n<p>This is an include from level 1.</p>/n<p><a href=\\"level1/page1.html\\">Link to page1</a></p>/n<p><a href=\\"index.html\\">Link to index</a></p>/n<p><a href=\\"level1/level2/page2.html\\">Link to level2</a></p>/n<h2 id=\\"include-with-anchor3\\"><a id=\\"include-with-anchor\\" href=\\"level1/page1.html#include-with-anchor\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor → root</span></a>Include with anchor <a href=\\"index.html\\">→ root</a></h2>/n<h3 id=\\"subsection212\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section32\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"include-with-anchor4\\"><a href=\\"level1/page1.html#include-with-anchor4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Include with anchor</span></a>Include with anchor</h2>/n<h3 id=\\"subsection213\\"><a id=\\"subsection21\\" href=\\"level1/page1.html#subsection21\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Subsection 2.1</span></a>Subsection 2.1</h3>/n<p>This is content of subsection 2.1.</p>/n<h2 id=\\"section33\\"><a id=\\"section3\\" href=\\"level1/page1.html#section3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Section 3</span></a>Section 3</h2>/n<p>This is content of section 3.</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"vcsPath":"level1/page1.md"},"headings":[{"title":"Include from level1","href":"level1/page1.html#include-from-level1","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection21","level":3}]},{"title":"Section 3","href":"level1/page1.html#section3","level":2},{"title":"Include from root","href":"level1/page1.html#include-from-root","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor1","level":2},{"title":"Section 2","href":"level1/page1.html#section2","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection211","level":3}]},{"title":"Include from level2","href":"level1/page1.html#include-from-level2","level":2},{"title":"Include with anchor → level1","href":"level1/page1.html#include-with-anchor2","level":2},{"title":"Section 3","href":"level1/page1.html#section31","level":2},{"title":"Links to different levels","href":"level1/page1.html#links-to-different-levels","level":2},{"title":"Nested include","href":"level1/page1.html#nested-include","level":2},{"title":"Include with anchor → root","href":"level1/page1.html#include-with-anchor3","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection212","level":3}]},{"title":"Section 3","href":"level1/page1.html#section32","level":2},{"title":"Include with anchor","href":"level1/page1.html#include-with-anchor4","level":2,"items":[{"title":"Subsection 2.1","href":"level1/page1.html#subsection213","level":3}]},{"title":"Section 3","href":"level1/page1.html#section33","level":2}],"title":"Page 1"},"router":{"pathname":"level1/page1","depth":2,"base":"../"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
449
450
|
</script>
|
|
450
451
|
<script type="application/javascript">
|
|
451
452
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -166,6 +166,90 @@ path: toc.yaml
|
|
|
166
166
|
"
|
|
167
167
|
`;
|
|
168
168
|
|
|
169
|
+
exports[`Merge includes (md2md) > html-comment-blanks: blank lines inside HTML comments keep list/cut continuity > filelist 1`] = `
|
|
170
|
+
"[
|
|
171
|
+
"index.md",
|
|
172
|
+
"main.md",
|
|
173
|
+
"toc.yaml"
|
|
174
|
+
]"
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
exports[`Merge includes (md2md) > html-comment-blanks: blank lines inside HTML comments keep list/cut continuity 1`] = `
|
|
178
|
+
"---
|
|
179
|
+
metadata:
|
|
180
|
+
- name: generator
|
|
181
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
182
|
+
vcsPath: index.md
|
|
183
|
+
---
|
|
184
|
+
# Index
|
|
185
|
+
|
|
186
|
+
Welcome page.
|
|
187
|
+
"
|
|
188
|
+
`;
|
|
189
|
+
|
|
190
|
+
exports[`Merge includes (md2md) > html-comment-blanks: blank lines inside HTML comments keep list/cut continuity 2`] = `
|
|
191
|
+
"---
|
|
192
|
+
metadata:
|
|
193
|
+
- name: generator
|
|
194
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
195
|
+
vcsPath: main.md
|
|
196
|
+
---
|
|
197
|
+
# Main
|
|
198
|
+
|
|
199
|
+
Intro paragraph.
|
|
200
|
+
|
|
201
|
+
- Item one with cut
|
|
202
|
+
|
|
203
|
+
{% cut "Examples" %}
|
|
204
|
+
|
|
205
|
+
<!-- source: _includes/examples.md -->
|
|
206
|
+
- [Real link one](https://example.com/one)
|
|
207
|
+
|
|
208
|
+
- [Real link two](https://example.com/two)
|
|
209
|
+
|
|
210
|
+
<!--
|
|
211
|
+
#|
|
|
212
|
+
||
|
|
213
|
+
**Header A**
|
|
214
|
+
|
|
|
215
|
+
**Header B**
|
|
216
|
+
||
|
|
217
|
+
|
|
218
|
+
||
|
|
219
|
+
Body cell A1
|
|
220
|
+
|
|
221
|
+
with blank lines inside the comment
|
|
222
|
+
|
|
223
|
+
|
|
|
224
|
+
Body cell B1
|
|
225
|
+
||
|
|
226
|
+
|
|
227
|
+
||
|
|
228
|
+
Body cell A2
|
|
229
|
+
|
|
|
230
|
+
Body cell B2
|
|
231
|
+
||
|
|
232
|
+
|# -->
|
|
233
|
+
<!-- endsource: _includes/examples.md -->
|
|
234
|
+
|
|
235
|
+
{% endcut %}
|
|
236
|
+
|
|
237
|
+
- Item two
|
|
238
|
+
|
|
239
|
+
After list paragraph that must still render.
|
|
240
|
+
"
|
|
241
|
+
`;
|
|
242
|
+
|
|
243
|
+
exports[`Merge includes (md2md) > html-comment-blanks: blank lines inside HTML comments keep list/cut continuity 3`] = `
|
|
244
|
+
"title: Merge Includes HTML Comment Blanks
|
|
245
|
+
href: index.md
|
|
246
|
+
items:
|
|
247
|
+
- name: Main
|
|
248
|
+
href: main.md
|
|
249
|
+
path: toc.yaml
|
|
250
|
+
"
|
|
251
|
+
`;
|
|
252
|
+
|
|
169
253
|
exports[`Merge includes (md2md) > html-in-list: include with <style> in list (any indent) uses fallback > filelist 1`] = `
|
|
170
254
|
"[
|
|
171
255
|
"index.md",
|
|
@@ -228,6 +312,192 @@ path: toc.yaml
|
|
|
228
312
|
"
|
|
229
313
|
`;
|
|
230
314
|
|
|
315
|
+
exports[`Merge includes (md2md) > include-after-fence: include placed right after a closing \`\`\` fence is inlined > filelist 1`] = `
|
|
316
|
+
"[
|
|
317
|
+
"index.md",
|
|
318
|
+
"main.md",
|
|
319
|
+
"toc.yaml"
|
|
320
|
+
]"
|
|
321
|
+
`;
|
|
322
|
+
|
|
323
|
+
exports[`Merge includes (md2md) > include-after-fence: include placed right after a closing \`\`\` fence is inlined 1`] = `
|
|
324
|
+
"---
|
|
325
|
+
metadata:
|
|
326
|
+
- name: generator
|
|
327
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
328
|
+
vcsPath: index.md
|
|
329
|
+
---
|
|
330
|
+
# Index
|
|
331
|
+
|
|
332
|
+
Welcome page.
|
|
333
|
+
"
|
|
334
|
+
`;
|
|
335
|
+
|
|
336
|
+
exports[`Merge includes (md2md) > include-after-fence: include placed right after a closing \`\`\` fence is inlined 2`] = `
|
|
337
|
+
"---
|
|
338
|
+
metadata:
|
|
339
|
+
- name: generator
|
|
340
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
341
|
+
vcsPath: main.md
|
|
342
|
+
---
|
|
343
|
+
# Main
|
|
344
|
+
|
|
345
|
+
Some intro text.
|
|
346
|
+
|
|
347
|
+
\`\`\`javascript
|
|
348
|
+
<script type="text/javascript">
|
|
349
|
+
function setCookie(name, value){
|
|
350
|
+
document.cookie = name + "=" + value + ";path=/";
|
|
351
|
+
}
|
|
352
|
+
</script>
|
|
353
|
+
\`\`\`
|
|
354
|
+
<!-- source: _includes/chat-button.md -->
|
|
355
|
+
[Написать в чат](https://example.com/chat){.button}
|
|
356
|
+
<!-- endsource: _includes/chat-button.md -->
|
|
357
|
+
|
|
358
|
+
<!-- source: _includes/footer.md -->
|
|
359
|
+
Footer text.
|
|
360
|
+
<!-- endsource: _includes/footer.md -->
|
|
361
|
+
"
|
|
362
|
+
`;
|
|
363
|
+
|
|
364
|
+
exports[`Merge includes (md2md) > include-after-fence: include placed right after a closing \`\`\` fence is inlined 3`] = `
|
|
365
|
+
"title: Include After Fence
|
|
366
|
+
href: index.md
|
|
367
|
+
items:
|
|
368
|
+
- name: Main
|
|
369
|
+
href: main.md
|
|
370
|
+
path: toc.yaml
|
|
371
|
+
"
|
|
372
|
+
`;
|
|
373
|
+
|
|
374
|
+
exports[`Merge includes (md2md) > include-in-code-block: include shown as code example is NOT expanded > filelist 1`] = `
|
|
375
|
+
"[
|
|
376
|
+
"index.md",
|
|
377
|
+
"main.md",
|
|
378
|
+
"toc.yaml"
|
|
379
|
+
]"
|
|
380
|
+
`;
|
|
381
|
+
|
|
382
|
+
exports[`Merge includes (md2md) > include-in-code-block: include shown as code example is NOT expanded 1`] = `
|
|
383
|
+
"---
|
|
384
|
+
metadata:
|
|
385
|
+
- name: generator
|
|
386
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
387
|
+
vcsPath: index.md
|
|
388
|
+
---
|
|
389
|
+
# Index
|
|
390
|
+
|
|
391
|
+
Welcome page.
|
|
392
|
+
"
|
|
393
|
+
`;
|
|
394
|
+
|
|
395
|
+
exports[`Merge includes (md2md) > include-in-code-block: include shown as code example is NOT expanded 2`] = `
|
|
396
|
+
"---
|
|
397
|
+
metadata:
|
|
398
|
+
- name: generator
|
|
399
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
400
|
+
vcsPath: main.md
|
|
401
|
+
---
|
|
402
|
+
# Main
|
|
403
|
+
|
|
404
|
+
Real include below — should be inlined:
|
|
405
|
+
|
|
406
|
+
<!-- source: _includes/glossary.md -->
|
|
407
|
+
[*glossary]: Glossary section
|
|
408
|
+
<!-- endsource: _includes/glossary.md -->
|
|
409
|
+
|
|
410
|
+
Steps:
|
|
411
|
+
|
|
412
|
+
1. Open the resource file.
|
|
413
|
+
1. Insert the include directive into the file:
|
|
414
|
+
|
|
415
|
+
\`\`\`plaintext
|
|
416
|
+
{% include notitle [glossary](_includes/glossary.md) %}
|
|
417
|
+
[*glossary]: Magic line
|
|
418
|
+
\`\`\`
|
|
419
|
+
|
|
420
|
+
1. Use the keys from glossary.
|
|
421
|
+
|
|
422
|
+
End of page.
|
|
423
|
+
"
|
|
424
|
+
`;
|
|
425
|
+
|
|
426
|
+
exports[`Merge includes (md2md) > include-in-code-block: include shown as code example is NOT expanded 3`] = `
|
|
427
|
+
"title: Include In Code Block
|
|
428
|
+
href: index.md
|
|
429
|
+
items:
|
|
430
|
+
- name: Main
|
|
431
|
+
href: main.md
|
|
432
|
+
path: toc.yaml
|
|
433
|
+
"
|
|
434
|
+
`;
|
|
435
|
+
|
|
436
|
+
exports[`Merge includes (md2md) > indent-paragraph: include under indent with indented top-level paragraph falls back to {% included %} > filelist 1`] = `
|
|
437
|
+
"[
|
|
438
|
+
"index.md",
|
|
439
|
+
"main.md",
|
|
440
|
+
"toc.yaml"
|
|
441
|
+
]"
|
|
442
|
+
`;
|
|
443
|
+
|
|
444
|
+
exports[`Merge includes (md2md) > indent-paragraph: include under indent with indented top-level paragraph falls back to {% included %} 1`] = `
|
|
445
|
+
"---
|
|
446
|
+
metadata:
|
|
447
|
+
- name: generator
|
|
448
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
449
|
+
vcsPath: index.md
|
|
450
|
+
---
|
|
451
|
+
# Index
|
|
452
|
+
|
|
453
|
+
Welcome page.
|
|
454
|
+
"
|
|
455
|
+
`;
|
|
456
|
+
|
|
457
|
+
exports[`Merge includes (md2md) > indent-paragraph: include under indent with indented top-level paragraph falls back to {% included %} 2`] = `
|
|
458
|
+
"---
|
|
459
|
+
metadata:
|
|
460
|
+
- name: generator
|
|
461
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
462
|
+
vcsPath: main.md
|
|
463
|
+
---
|
|
464
|
+
# Main Document
|
|
465
|
+
|
|
466
|
+
{% list tabs %}
|
|
467
|
+
|
|
468
|
+
- Mobile banner
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
{% include [requirements](_includes/requirements.md) %}
|
|
472
|
+
|
|
473
|
+
For more details see the requirements page.
|
|
474
|
+
|
|
475
|
+
{% endlist %}
|
|
476
|
+
|
|
477
|
+
{% included (_includes/requirements.md) %}
|
|
478
|
+
1/. Format: HTML5.
|
|
479
|
+
|
|
480
|
+
2/. The banner stretches to fit the screen.
|
|
481
|
+
|
|
482
|
+
3/. The banner must stretch to 100% of the screen width.
|
|
483
|
+
|
|
484
|
+
Width is set as a percentage value: 100%.
|
|
485
|
+
|
|
486
|
+
4/. Maximum archive size is 75 KB.
|
|
487
|
+
|
|
488
|
+
{% endincluded %}"
|
|
489
|
+
`;
|
|
490
|
+
|
|
491
|
+
exports[`Merge includes (md2md) > indent-paragraph: include under indent with indented top-level paragraph falls back to {% included %} 3`] = `
|
|
492
|
+
"title: Merge Includes Indent Paragraph In Include
|
|
493
|
+
href: index.md
|
|
494
|
+
items:
|
|
495
|
+
- name: Main
|
|
496
|
+
href: main.md
|
|
497
|
+
path: toc.yaml
|
|
498
|
+
"
|
|
499
|
+
`;
|
|
500
|
+
|
|
231
501
|
exports[`Merge includes (md2md) > inline-context: non-standalone includes use fallback > filelist 1`] = `
|
|
232
502
|
"[
|
|
233
503
|
"index.md",
|
|
@@ -605,6 +875,67 @@ path: toc.yaml
|
|
|
605
875
|
"
|
|
606
876
|
`;
|
|
607
877
|
|
|
878
|
+
exports[`Merge includes (md2md) > yfm-table: include ending with HTML block places || on its own line > filelist 1`] = `
|
|
879
|
+
"[
|
|
880
|
+
"index.md",
|
|
881
|
+
"main.md",
|
|
882
|
+
"toc.yaml"
|
|
883
|
+
]"
|
|
884
|
+
`;
|
|
885
|
+
|
|
886
|
+
exports[`Merge includes (md2md) > yfm-table: include ending with HTML block places || on its own line 1`] = `
|
|
887
|
+
"---
|
|
888
|
+
metadata:
|
|
889
|
+
- name: generator
|
|
890
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
891
|
+
vcsPath: index.md
|
|
892
|
+
---
|
|
893
|
+
# Index
|
|
894
|
+
|
|
895
|
+
Welcome page.
|
|
896
|
+
"
|
|
897
|
+
`;
|
|
898
|
+
|
|
899
|
+
exports[`Merge includes (md2md) > yfm-table: include ending with HTML block places || on its own line 2`] = `
|
|
900
|
+
"---
|
|
901
|
+
metadata:
|
|
902
|
+
- name: generator
|
|
903
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
904
|
+
vcsPath: main.md
|
|
905
|
+
---
|
|
906
|
+
# Main Document
|
|
907
|
+
|
|
908
|
+
#|
|
|
909
|
+
|| **Option** | **Details** ||
|
|
910
|
+
|| Option A |
|
|
911
|
+
Some description of option A.
|
|
912
|
+
|
|
913
|
+
[Subscribe](https://example.com/subscribe){.button}
|
|
914
|
+
|
|
915
|
+
<style>
|
|
916
|
+
a.button {
|
|
917
|
+
color: black;
|
|
918
|
+
background: yellow;
|
|
919
|
+
}
|
|
920
|
+
</style>
|
|
921
|
+
||
|
|
922
|
+
|| Option B | Plain text cell. ||
|
|
923
|
+
|#
|
|
924
|
+
|
|
925
|
+
Content after table.
|
|
926
|
+
"
|
|
927
|
+
`;
|
|
928
|
+
|
|
929
|
+
exports[`Merge includes (md2md) > yfm-table: include ending with HTML block places || on its own line 3`] = `
|
|
930
|
+
"title: Merge Includes YFM Table HTML Block
|
|
931
|
+
href: index.md
|
|
932
|
+
items:
|
|
933
|
+
- name: Main
|
|
934
|
+
href: main.md
|
|
935
|
+
path: toc.yaml
|
|
936
|
+
"
|
|
937
|
+
`;
|
|
938
|
+
|
|
608
939
|
exports[`Merge includes (md2md) > yfm-table: include followed by || separator is inlined > filelist 1`] = `
|
|
609
940
|
"[
|
|
610
941
|
"index.md",
|
|
@@ -640,7 +971,8 @@ vcsPath: main.md
|
|
|
640
971
|
|| Option A |
|
|
641
972
|
Some description of option A.
|
|
642
973
|
|
|
643
|
-
Buy now at [our store](https://example.com/store)
|
|
974
|
+
Buy now at [our store](https://example.com/store).
|
|
975
|
+
||
|
|
644
976
|
|| Option B | Plain text cell. ||
|
|
645
977
|
|#
|
|
646
978
|
|
|
@@ -657,3 +989,70 @@ items:
|
|
|
657
989
|
path: toc.yaml
|
|
658
990
|
"
|
|
659
991
|
`;
|
|
992
|
+
|
|
993
|
+
exports[`Merge includes (md2md) > yfm-table: include with \`|\` in inline code falls back to {% included %} > filelist 1`] = `
|
|
994
|
+
"[
|
|
995
|
+
"index.md",
|
|
996
|
+
"main.md",
|
|
997
|
+
"toc.yaml"
|
|
998
|
+
]"
|
|
999
|
+
`;
|
|
1000
|
+
|
|
1001
|
+
exports[`Merge includes (md2md) > yfm-table: include with \`|\` in inline code falls back to {% included %} 1`] = `
|
|
1002
|
+
"---
|
|
1003
|
+
metadata:
|
|
1004
|
+
- name: generator
|
|
1005
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
1006
|
+
vcsPath: index.md
|
|
1007
|
+
---
|
|
1008
|
+
# Index
|
|
1009
|
+
|
|
1010
|
+
Welcome page.
|
|
1011
|
+
"
|
|
1012
|
+
`;
|
|
1013
|
+
|
|
1014
|
+
exports[`Merge includes (md2md) > yfm-table: include with \`|\` in inline code falls back to {% included %} 2`] = `
|
|
1015
|
+
"---
|
|
1016
|
+
metadata:
|
|
1017
|
+
- name: generator
|
|
1018
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
1019
|
+
vcsPath: main.md
|
|
1020
|
+
---
|
|
1021
|
+
# Main Document
|
|
1022
|
+
|
|
1023
|
+
#|
|
|
1024
|
+
||
|
|
1025
|
+
**Criterion**
|
|
1026
|
+
|
|
|
1027
|
+
**Description**
|
|
1028
|
+
||
|
|
1029
|
+
||
|
|
1030
|
+
**regular expression**
|
|
1031
|
+
|
|
|
1032
|
+
This is used for tracking goal identifiers that match a pattern.
|
|
1033
|
+
|
|
1034
|
+
{% cut "Example" %}
|
|
1035
|
+
|
|
1036
|
+
{% include [example](_includes/example.md) %}
|
|
1037
|
+
|
|
1038
|
+
{% endcut %}
|
|
1039
|
+
||
|
|
1040
|
+
|#
|
|
1041
|
+
|
|
1042
|
+
Content after table.
|
|
1043
|
+
|
|
1044
|
+
{% included (_includes/example.md) %}
|
|
1045
|
+
If you want to track clicking a particular button with the ID that contains \`button\` or \`buy\`, you can specify the following condition: \`button|buy\`.
|
|
1046
|
+
|
|
1047
|
+
{% endincluded %}"
|
|
1048
|
+
`;
|
|
1049
|
+
|
|
1050
|
+
exports[`Merge includes (md2md) > yfm-table: include with \`|\` in inline code falls back to {% included %} 3`] = `
|
|
1051
|
+
"title: Merge Includes YFM Table Pipe In Content
|
|
1052
|
+
href: index.md
|
|
1053
|
+
items:
|
|
1054
|
+
- name: Main
|
|
1055
|
+
href: main.md
|
|
1056
|
+
path: toc.yaml
|
|
1057
|
+
"
|
|
1058
|
+
`;
|
|
@@ -1433,7 +1433,7 @@ exports[`Regression > internal 38`] = `
|
|
|
1433
1433
|
<body class="g-root g-root_theme_light">
|
|
1434
1434
|
<div id="root"></div>
|
|
1435
1435
|
<script type="application/json" id="diplodoc-state">
|
|
1436
|
-
{"data":{"leading":false,"html":"<p>Empty title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Empty subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Special title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Special subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Empty local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Special local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Circular title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Autotitle from include</p>/n/n<p>Include with autotitle</p>/n/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1-1\\" role=\\"button\\" aria-controls=\\":term1-1_element\\" tabindex=\\"0\\" id=\\"term1-1-1\\">some local term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-2\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-3\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-4\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-3\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-4\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n<p>All fragments</p>/n<h3 id=\\"f1\\"><a href=\\"autotitle.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"autotitle.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n<h3 id=\\"f2.1\\"><a href=\\"autotitle.html#f2.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2.1</span></a>F2.1</h3>/n<p>Content F2.1</p>/n<h2 id=\\"f3\\"><a href=\\"autotitle.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>
|
|
1436
|
+
{"data":{"leading":false,"html":"<p>Empty title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Empty subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Special title<br />/n<a href=\\"1.html\\">Title</a></p>/n<p>Special subtitle<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Empty local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Special local title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Circular title<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<p>Autotitle from include</p>/n/n<p>Include with autotitle</p>/n/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1-1\\" role=\\"button\\" aria-controls=\\":term1-1_element\\" tabindex=\\"0\\" id=\\"term1-1-1\\">some local term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-2\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-3\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-4\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-3\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-4\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n<p>All fragments</p>/n<h3 id=\\"f1\\"><a href=\\"autotitle.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"autotitle.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n<h3 id=\\"f2.1\\"><a href=\\"autotitle.html#f2.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2.1</span></a>F2.1</h3>/n<p>Content F2.1</p>/n<h2 id=\\"f3\\"><a href=\\"autotitle.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n<h2 id=\\"f4\\"><a href=\\"autotitle.html#f4\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4</span></a>F4</h2>/n<p>Content F4<br />/n<a href=\\"autotitle.html#header\\">Header</a></p>/n<h3 id=\\"f4.1\\"><a href=\\"autotitle.html#f4.1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F4.1</span></a>F4.1</h3>/n<p>link with <i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-1\\">some term1</i></p>/n<div class=\\"yfm-tabs\\" data-diplodoc-group=\\"defaultTabsGroup-1\\" data-diplodoc-variant=\\"regular\\">/n<div class=\\"yfm-tab-list\\" role=\\"tablist\\">/n<div data-diplodoc-id=\\"название-таба-1\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%201\\" class=\\"yfm-tab yfm-tab-group active\\" role=\\"tab\\" aria-controls=\\"regular-1\\" tabindex=\\"0\\" data-diplodoc-is-active=\\"true\\">Название таба 1</div>/n<div data-diplodoc-id=\\"название-таба-2\\" data-diplodoc-key=\\"%d0%9d%d0%b0%d0%b7%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5%20%d1%82%d0%b0%d0%b1%d0%b0%202\\" class=\\"yfm-tab yfm-tab-group\\" role=\\"tab\\" aria-controls=\\"regular-2\\" tabindex=\\"-1\\" data-diplodoc-is-active=\\"false\\">Название таба 2</div>/n</div>/n<div id=\\"regular-1\\" class=\\"yfm-tab-panel active\\" role=\\"tabpanel\\" data-title=\\"Название таба 1\\">/n<p>Текст таба 1.</p>/n<ul>/n<li>Можно использовать списки.</li>/n<li>И <strong>другую</strong> разметку.</li>/n</ul>/n</div>/n<div id=\\"regular-2\\" class=\\"yfm-tab-panel\\" role=\\"tabpanel\\" data-title=\\"Название таба 2\\">/n<p>Текст таба 2.</p>/n</div>/n</div>/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><p>Some description</p>/n</dfn><h2 id=\\"header\\"><a href=\\"autotitle.html#header\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Header</span></a>Header</h2>/n<p>Content2</p>/n<style>.yfm .border-yes {/n border: 1px solid #ccc;/n border-radius: 10px;/n}</style>/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1-1_element\\" role=\\"dialog\\"><h2 id=\\"f31\\"><a href=\\"autotitle.html#f31\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"autotitle.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":[],"vcsPath":"autotitle.md"},"headings":[{"title":"F2","href":"autotitle.html#f2","level":2,"items":[{"title":"F2.1","href":"autotitle.html#f2.1","level":3}]},{"title":"F3","href":"autotitle.html#f3","level":2},{"title":"F4","href":"autotitle.html#f4","level":2,"items":[{"title":"F4.1","href":"autotitle.html#f4.1","level":3}]},{"title":"Header","href":"autotitle.html#header","level":2},{"title":"F3","href":"autotitle.html#f31","level":2}],"title":"Autotitles"},"router":{"pathname":"autotitle","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1437
1437
|
</script>
|
|
1438
1438
|
<script type="application/javascript">
|
|
1439
1439
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -1741,7 +1741,7 @@ exports[`Regression > internal 49`] = `
|
|
|
1741
1741
|
<body class="g-root g-root_theme_light">
|
|
1742
1742
|
<div id="root"></div>
|
|
1743
1743
|
<script type="application/json" id="diplodoc-state">
|
|
1744
|
-
{"data":{"leading":false,"html":"<p>Text</p>/n<p>Bob</p>/n<p>Test</p>/n<h3 id=\\"f1\\"><a href=\\"includes.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p>Bob</p>/n<p><a href=\\"latex.html\\"><img src=\\"_assets/3.png\\" alt=\\"img 3\\" /></a></p>/n<p><sup><i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-2\\">?</i></sup></p>/n<p>[<i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-1\\">?</i>](http://ya.ru)</p>/n<p><i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-2\\">Term 1</i> <i class=\\"yfm yfm-term_title\\" term-key=\\":term2\\" role=\\"button\\" aria-controls=\\":term2_element\\" tabindex=\\"0\\" id=\\"term2-1\\">Term 2</i></p>/n<p>Link after include<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Autotitle include</p>/n/n<p>Link after include</p>/n<h2 id=\\"mermaid\\"><a href=\\"includes.html#mermaid\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid</span></a>Mermaid</h2>/n<h1>Mermaid usage</h1>/n<div class=\\"mermaid\\" data-content=\\"sequenceDiagram%0A%20%20%20%20%20%20%20%20rect%20rgba(251%2C%20243%2C%20232%2C%200.2)%0A%20%20%20%20%20%20%20%20%20%20%20%20Alice%20-%3E%3E%20Bob%3A%0A%20%20%20%20%20%20%20%20end%0A\\"></div><h2 id=\\"info\\"><a href=\\"includes.html#info\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid info</span></a>Mermaid info</h2>/n<p>Some mermaid info</p>/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term_element\\" role=\\"dialog\\"><p>Test terms</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><h2 id=\\"f3\\"><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term2_element\\" role=\\"dialog\\"><h2 id=\\"f31\\"><a href=\\"includes.html#f31\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>
|
|
1744
|
+
{"data":{"leading":false,"html":"<p>Text</p>/n<p>Bob</p>/n<p>Test</p>/n<h3 id=\\"f1\\"><a href=\\"includes.html#f1\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F1</span></a>F1</h3>/n<p>Content F1</p>/n<h2 id=\\"f2\\"><a href=\\"includes.html#f2\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F2</span></a>F2</h2>/n<p>Content F2</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n/n<p>Bob</p>/n<p><a href=\\"latex.html\\"><img src=\\"_assets/3.png\\" alt=\\"img 3\\" /></a></p>/n<p><sup><i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-2\\">?</i></sup></p>/n<p>[<i class=\\"yfm yfm-term_title\\" term-key=\\":term\\" role=\\"button\\" aria-controls=\\":term_element\\" tabindex=\\"0\\" id=\\"vTERM-ID-1\\">?</i>](http://ya.ru)</p>/n<p><i class=\\"yfm yfm-term_title\\" term-key=\\":term1\\" role=\\"button\\" aria-controls=\\":term1_element\\" tabindex=\\"0\\" id=\\"term1-2\\">Term 1</i> <i class=\\"yfm yfm-term_title\\" term-key=\\":term2\\" role=\\"button\\" aria-controls=\\":term2_element\\" tabindex=\\"0\\" id=\\"term2-1\\">Term 2</i></p>/n<p>Link after include<br />/n<a href=\\"1.html#subtitle\\">Subtitle</a></p>/n<p>Autotitle include</p>/n/n<p>Link after include</p>/n<h2 id=\\"mermaid\\"><a href=\\"includes.html#mermaid\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid</span></a>Mermaid</h2>/n<h1>Mermaid usage</h1>/n<div class=\\"mermaid\\" data-content=\\"sequenceDiagram%0A%20%20%20%20%20%20%20%20rect%20rgba(251%2C%20243%2C%20232%2C%200.2)%0A%20%20%20%20%20%20%20%20%20%20%20%20Alice%20-%3E%3E%20Bob%3A%0A%20%20%20%20%20%20%20%20end%0A\\"></div><h2 id=\\"info\\"><a href=\\"includes.html#info\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">Mermaid info</span></a>Mermaid info</h2>/n<p>Some mermaid info</p>/n<dfn class=\\"yfm yfm-term_dfn\\" id=\\":term_element\\" role=\\"dialog\\"><p>Test terms</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term1_element\\" role=\\"dialog\\"><h2 id=\\"f3\\"><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn><dfn class=\\"yfm yfm-term_dfn\\" id=\\":term2_element\\" role=\\"dialog\\"><h2 id=\\"f31\\"><a href=\\"includes.html#f31\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a><a href=\\"includes.html#f3\\" class=\\"yfm-anchor yfm-clipboard-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\" data-no-index=\\"true\\">F3</span></a>F3</h2>/n<p>Content F3</p>/n<p id=\\"p1\\">Some paragraph with anchor</p>/n<p>Some paragraph without anchor</p>/n<p id=\\"p2\\">Some paragraph with anchor</p>/n</dfn>","meta":{"metadata":[{"name":"generator","content":"Diplodoc Platform vDIPLODOC-VERSION"}],"style":[],"script":["_bundle/mermaid-extension.js"],"vcsPath":"includes.md"},"headings":[{"title":"F2","href":"includes.html#f2","level":2},{"title":"Mermaid","href":"includes.html#mermaid","level":2},{"title":"Mermaid info","href":"includes.html#info","level":2},{"title":"F3","href":"includes.html#f3","level":2},{"title":"F3","href":"includes.html#f31","level":2}],"title":""},"router":{"pathname":"includes","depth":1,"base":"./"},"lang":"ru","langs":["ru"],"viewerInterface":{"toc":true,"search":true,"feedback":true}}
|
|
1745
1745
|
</script>
|
|
1746
1746
|
<script type="application/javascript">
|
|
1747
1747
|
const data = document.querySelector('script#diplodoc-state');
|
|
@@ -91,6 +91,43 @@ describe('Merge includes (md2md)', () => {
|
|
|
91
91
|
await compareDirectories(outputPath);
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
test('yfm-table: include ending with HTML block places || on its own line', async () => {
|
|
95
|
+
const {inputPath, outputPath} = getTestPaths('mocks/merge-includes/yfm-table-html-block');
|
|
96
|
+
|
|
97
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
98
|
+
md2md: true,
|
|
99
|
+
md2html: false,
|
|
100
|
+
args: '--merge-includes',
|
|
101
|
+
});
|
|
102
|
+
await compareDirectories(outputPath);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
test('yfm-table: include with `|` in inline code falls back to {% included %}', async () => {
|
|
106
|
+
const {inputPath, outputPath} = getTestPaths(
|
|
107
|
+
'mocks/merge-includes/yfm-table-pipe-in-content',
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
111
|
+
md2md: true,
|
|
112
|
+
md2html: false,
|
|
113
|
+
args: '--merge-includes',
|
|
114
|
+
});
|
|
115
|
+
await compareDirectories(outputPath);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
test('indent-paragraph: include under indent with indented top-level paragraph falls back to {% included %}', async () => {
|
|
119
|
+
const {inputPath, outputPath} = getTestPaths(
|
|
120
|
+
'mocks/merge-includes/indent-paragraph-in-include',
|
|
121
|
+
);
|
|
122
|
+
|
|
123
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
124
|
+
md2md: true,
|
|
125
|
+
md2html: false,
|
|
126
|
+
args: '--merge-includes',
|
|
127
|
+
});
|
|
128
|
+
await compareDirectories(outputPath);
|
|
129
|
+
});
|
|
130
|
+
|
|
94
131
|
test('html-in-list: include with <style> in list (any indent) uses fallback', async () => {
|
|
95
132
|
const {inputPath, outputPath} = getTestPaths('mocks/merge-includes/html-in-list');
|
|
96
133
|
|
|
@@ -123,4 +160,37 @@ describe('Merge includes (md2md)', () => {
|
|
|
123
160
|
});
|
|
124
161
|
await compareDirectories(outputPath);
|
|
125
162
|
});
|
|
163
|
+
|
|
164
|
+
test('html-comment-blanks: blank lines inside HTML comments keep list/cut continuity', async () => {
|
|
165
|
+
const {inputPath, outputPath} = getTestPaths('mocks/merge-includes/html-comment-blanks');
|
|
166
|
+
|
|
167
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
168
|
+
md2md: true,
|
|
169
|
+
md2html: false,
|
|
170
|
+
args: '--merge-includes',
|
|
171
|
+
});
|
|
172
|
+
await compareDirectories(outputPath);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
test('include-in-code-block: include shown as code example is NOT expanded', async () => {
|
|
176
|
+
const {inputPath, outputPath} = getTestPaths('mocks/merge-includes/include-in-code-block');
|
|
177
|
+
|
|
178
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
179
|
+
md2md: true,
|
|
180
|
+
md2html: false,
|
|
181
|
+
args: '--merge-includes',
|
|
182
|
+
});
|
|
183
|
+
await compareDirectories(outputPath);
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
test('include-after-fence: include placed right after a closing ``` fence is inlined', async () => {
|
|
187
|
+
const {inputPath, outputPath} = getTestPaths('mocks/merge-includes/include-after-fence');
|
|
188
|
+
|
|
189
|
+
await TestAdapter.testBuildPass(inputPath, outputPath, {
|
|
190
|
+
md2md: true,
|
|
191
|
+
md2html: false,
|
|
192
|
+
args: '--merge-includes',
|
|
193
|
+
});
|
|
194
|
+
await compareDirectories(outputPath);
|
|
195
|
+
});
|
|
126
196
|
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
- [Real link one](https://example.com/one)
|
|
2
|
+
|
|
3
|
+
- [Real link two](https://example.com/two)
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
#|
|
|
7
|
+
||
|
|
8
|
+
**Header A**
|
|
9
|
+
|
|
|
10
|
+
**Header B**
|
|
11
|
+
||
|
|
12
|
+
|
|
13
|
+
||
|
|
14
|
+
Body cell A1
|
|
15
|
+
|
|
16
|
+
with blank lines inside the comment
|
|
17
|
+
|
|
18
|
+
|
|
|
19
|
+
Body cell B1
|
|
20
|
+
||
|
|
21
|
+
|
|
22
|
+
||
|
|
23
|
+
Body cell A2
|
|
24
|
+
|
|
|
25
|
+
Body cell B2
|
|
26
|
+
||
|
|
27
|
+
|# -->
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[Написать в чат](https://example.com/chat){.button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Footer text.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Main
|
|
2
|
+
|
|
3
|
+
Some intro text.
|
|
4
|
+
|
|
5
|
+
```javascript
|
|
6
|
+
<script type="text/javascript">
|
|
7
|
+
function setCookie(name, value){
|
|
8
|
+
document.cookie = name + "=" + value + ";path=/";
|
|
9
|
+
}
|
|
10
|
+
</script>
|
|
11
|
+
```
|
|
12
|
+
{% include [chat-button](_includes/chat-button.md) %}
|
|
13
|
+
|
|
14
|
+
{% include [footer](_includes/footer.md) %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[*glossary]: Glossary section
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Main
|
|
2
|
+
|
|
3
|
+
Real include below — should be inlined:
|
|
4
|
+
|
|
5
|
+
{% include [glossary](_includes/glossary.md) %}
|
|
6
|
+
|
|
7
|
+
Steps:
|
|
8
|
+
|
|
9
|
+
1. Open the resource file.
|
|
10
|
+
1. Insert the include directive into the file:
|
|
11
|
+
|
|
12
|
+
```plaintext
|
|
13
|
+
{% include notitle [glossary](_includes/glossary.md) %}
|
|
14
|
+
[*glossary]: Magic line
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
1. Use the keys from glossary.
|
|
18
|
+
|
|
19
|
+
End of page.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
If you want to track clicking a particular button with the ID that contains `button` or `buy`, you can specify the following condition: `button|buy`.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Main Document
|
|
2
|
+
|
|
3
|
+
#|
|
|
4
|
+
||
|
|
5
|
+
**Criterion**
|
|
6
|
+
|
|
|
7
|
+
**Description**
|
|
8
|
+
||
|
|
9
|
+
||
|
|
10
|
+
**regular expression**
|
|
11
|
+
|
|
|
12
|
+
This is used for tracking goal identifiers that match a pattern.
|
|
13
|
+
|
|
14
|
+
{% cut "Example" %}
|
|
15
|
+
|
|
16
|
+
{% include [example](_includes/example.md) %}
|
|
17
|
+
|
|
18
|
+
{% endcut %}
|
|
19
|
+
||
|
|
20
|
+
|#
|
|
21
|
+
|
|
22
|
+
Content after table.
|