Skip to content

Commit

Permalink
Tests: updated GitlabMarkdown tests 013, 014, 017
Browse files Browse the repository at this point in the history
  • Loading branch information
xenocrat committed Jun 7, 2024
1 parent 963c706 commit 85d665f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 13 deletions.
8 changes: 6 additions & 2 deletions tests/data/GitlabMarkdown/013.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<p>This sentence introduces my wiki page.</p>
<ul>
<li><a href="#my-first-heading">My first heading</a></li>
<li><a href="#my-second-heading">My second heading</a></li>
<li>
<a href="#my-first-heading">My first heading</a>
</li>
<li>
<a href="#my-second-heading">My second heading</a>
</li>
</ul>
<h2 id="my-first-heading">My first heading</h2>
<p>First section content.</p>
Expand Down
45 changes: 36 additions & 9 deletions tests/data/GitlabMarkdown/014.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,55 @@
<h1 id="document-title">Document title</h1>
<p>This sentence introduces my wiki page. The document title is ignored.</p>
<ul>
<li>
<ul>
<li>
<ul>
<li>
<ul>
<li>
<ul>
<li><a href="#bad-hierarchy">Bad hierarchy</a></li>
<li>
<a href="#bad-hierarchy">Bad hierarchy</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<li><a href="#my-first-heading">My first heading</a></li>
</li>
<li>
<a href="#my-first-heading">My first heading</a>
<ul>
<li><a href="#sub-section-11">Sub-section 1:1</a></li>
<li>
<a href="#sub-section-11">Sub-section 1:1</a>
<ul>
<li><a href="#sub-section-111">Sub-section 1:1:1</a></li>
<li>
<a href="#sub-section-111">Sub-section 1:1:1</a>
</li>
</ul>
<li><a href="#sub-section-12">Sub-section 1:2</a></li>
</li>
<li>
<a href="#sub-section-12">Sub-section 1:2</a>
</li>
</ul>
<li><a href="#my-second-heading-with-code-and-emphasis">My second heading with <code>code</code> and <em>emphasis</em></a></li>
</li>
<li>
<a href="#my-second-heading-with-code-and-emphasis">My second heading with <code>code</code> and <em>emphasis</em></a>
<ul>
<li><a href="#sub-section-21">Sub-section 2:1</a></li>
<li><a href="#sub-section-22">Sub-section 2:2</a></li>
<li><a href="#sub-section-23">Sub-section 2:3</a></li>
<li>
<a href="#sub-section-21">Sub-section 2:1</a>
</li>
<li>
<a href="#sub-section-22">Sub-section 2:2</a>
</li>
<li>
<a href="#sub-section-23">Sub-section 2:3</a>
</li>
</ul>
</li>
</ul>
<h6 id="bad-hierarchy">Bad hierarchy</h6>
<p>This is bad document structure
Expand Down
8 changes: 6 additions & 2 deletions tests/data/GitlabMarkdown/017.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<p>This sentence introduces my wiki page.</p>
<ul>
<li><a href="#my-first-heading">My first heading</a></li>
<li><a href="#my-second-heading">My second heading</a></li>
<li>
<a href="#my-first-heading">My first heading</a>
</li>
<li>
<a href="#my-second-heading">My second heading</a>
</li>
</ul>
<h2 id="my-first-heading">My first heading</h2>
<p>First section content.</p>
Expand Down

0 comments on commit 85d665f

Please sign in to comment.