Skip to content

Commit

Permalink
add tests for fix issue #44
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 3, 2023
1 parent 27b8be4 commit ff968c7
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 0 deletions.
102 changes: 102 additions & 0 deletions src/test/suite/fixtures/expected/issue_44.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<p>
<h1>Issue <a href='https://github.com/denco/vscode-confluence-markup/issues/44'>#44</a> - lists with leading spaces</h1>
</p>
<p>
<h2>Case 1</h2>
</p>
<p>
<ul class="alternate">
<li>abc</li>
</p>
<p>
<ul class="alternate">
<li>abcdef</li>
</p>
<p>
</ul>
</ul>
</p>
<p>
<h2>Case 2</h2>
</p>
<p>
<ul class="alternate">
<li>abc</li>
</p>
<p>
<ul class="alternate">
<li>abcdef</li>
</p>
<p>
</ul>
</ul>
</p>
<p>
<h2>Case 3</h2>
</p>
<p>
<ol class="initial">
<li>abc</li>
</p>
<p>
<li>def</li>
</p>
<p>
<ul>
<li>foo</li>
</p>
<p>
<ul>
<li>bar</li>
</p>
<p>
</ul>
</ul>
</ol>
</p>
<p>
<h2>Case 4</h2>
</p>
<p>
<ol class="initial">
<li>abcv</li>
</p>
<p>
<li>def</li>
</p>
<p>
<ul>
<li>foo</li>
</p>
<p>
<ul>
<li>bar</li>
</p>
<p>
</ul>
</ul>
</ol>
</p>
<p>
<h2>Case 5</h2>
</p>
<p>
<ol class="initial">
<li>abc</li>
</p>
<p>
<li>def</li>
</p>
<p>
<ol>
<li>foo</li>
</p>
<p>
<ol>
<li>bar</li>
</p>
<p>
</ol>
</ol>
</ol>
</p>
32 changes: 32 additions & 0 deletions src/test/suite/fixtures/testfiles/nix/issue_44.confluence
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
h1. Issue [#44|https://github.com/denco/vscode-confluence-markup/issues/44] - lists with leading spaces

h2. Case 1

- abc
-- abcdef

h2. Case 2

- abc
-- abcdef

h2. Case 3

# abc
# def
#* foo
#** bar

h2. Case 4

# abcv
# def
** foo
*** bar

h2. Case 5

# abc
# def
## foo
### bar
32 changes: 32 additions & 0 deletions src/test/suite/fixtures/testfiles/win/issue_44.confluence
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
h1. Issue [#44|https://github.com/denco/vscode-confluence-markup/issues/44] - lists with leading spaces

h2. Case 1

- abc
-- abcdef

h2. Case 2

- abc
-- abcdef

h2. Case 3

# abc
# def
#* foo
#** bar

h2. Case 4

# abcv
# def
** foo
*** bar

h2. Case 5

# abc
# def
## foo
### bar

0 comments on commit ff968c7

Please sign in to comment.