forked from asciidoctor/asciidoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from redbow-kimee/html-converter-next-lists
- Loading branch information
Showing
25 changed files
with
151 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/description-list-horizontal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl class="horizontal"> | ||
<dt>Description Term 1</dt> | ||
<dd>Description Body 1.</dd> | ||
<dd><span class="principal">Description Body 1.</span></dd> | ||
<dt>Description Term 2</dt> | ||
<dd>Description Body 2.</dd> | ||
<dd><span class="principal">Description Body 2.</span></dd> | ||
<dt>Description Term 3</dt> | ||
<dd>Description Body 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Description Body 3.</span></dd> | ||
</dl> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/description-list-qanda-with-id-roles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl id="the_dl" class="qanda style1 style2"> | ||
<dt>Question 1?</dt> | ||
<dd>Answer 1.</dd> | ||
<dd><span class="principal">Answer 1.</span></dd> | ||
<dt>Question 2?</dt> | ||
<dd>Answer 2.</dd> | ||
<dd><span class="principal">Answer 2.</span></dd> | ||
<dt>Question 3?</dt> | ||
<dd>Answer 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Answer 3.</span></dd> | ||
</dl> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/description-list-qanda-with-id.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl id="the_dl" class="qanda"> | ||
<dt>Question 1?</dt> | ||
<dd>Answer 1.</dd> | ||
<dd><span class="principal">Answer 1.</span></dd> | ||
<dt>Question 2?</dt> | ||
<dd>Answer 2.</dd> | ||
<dd><span class="principal">Answer 2.</span></dd> | ||
<dt>Question 3?</dt> | ||
<dd>Answer 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Answer 3.</span></dd> | ||
</dl> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/description-list-qanda-with-roles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl class="qanda style1 style2"> | ||
<dt>Question 1?</dt> | ||
<dd>Answer 1.</dd> | ||
<dd><span class="principal">Answer 1.</span></dd> | ||
<dt>Question 2?</dt> | ||
<dd>Answer 2.</dd> | ||
<dd><span class="principal">Answer 2.</span></dd> | ||
<dt>Question 3?</dt> | ||
<dd>Answer 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Answer 3.</span></dd> | ||
</dl> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/description-list-qanda.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl class="qanda"> | ||
<dt>Question 1?</dt> | ||
<dd>Answer 1.</dd> | ||
<dd><span class="principal">Answer 1.</span></dd> | ||
<dt>Question 2?</dt> | ||
<dd>Answer 2.</dd> | ||
<dd><span class="principal">Answer 2.</span></dd> | ||
<dt>Question 3?</dt> | ||
<dd>Answer 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Answer 3.</span></dd> | ||
</dl> |
10 changes: 5 additions & 5 deletions
10
test/fixtures/semantic-html5-scenarios/description-list-with-title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<dl> | ||
<strong class="title">The Description List</strong> | ||
<header><strong class="title">The Description List</strong></header> | ||
<dt>Description Term 1</dt> | ||
<dd>Description Body 1.</dd> | ||
<dd><span class="principal">Description Body 1.</span></dd> | ||
<dt>Description Term 2</dt> | ||
<dd>Description Body 2.</dd> | ||
<dd><span class="principal">Description Body 2.</span></dd> | ||
<dt>Description Term 3</dt> | ||
<dd>Description Body 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Description Body 3.</span></dd> | ||
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<dl> | ||
<dt>Description Term 1</dt> | ||
<dd>Description Body 1.</dd> | ||
<dd><span class="principal">Description Body 1.</span></dd> | ||
<dt>Description Term 2</dt> | ||
<dd>Description Body 2.</dd> | ||
<dd><span class="principal">Description Body 2.</span></dd> | ||
<dt>Description Term 3</dt> | ||
<dd>Description Body 3.</dd> | ||
</dl> | ||
<dd><span class="principal">Description Body 3.</span></dd> | ||
</dl> |
7 changes: 7 additions & 0 deletions
7
test/fixtures/semantic-html5-scenarios/nested-ordered-list-with-title.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.The List | ||
. alice | ||
.. subpoint 1 | ||
.. subpoint 2 | ||
. bob | ||
.. subpoint 1 | ||
.. subpoint 2 |
15 changes: 15 additions & 0 deletions
15
test/fixtures/semantic-html5-scenarios/nested-ordered-list-with-title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ol> | ||
<header><strong class="title">The List</strong></header> | ||
<li><span class="principal">alice</span> | ||
<ol type="a"> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ol> | ||
</li> | ||
<li><span class="principal">bob</span> | ||
<ol type="a"> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ol> | ||
</li> | ||
</ol> |
14 changes: 7 additions & 7 deletions
14
test/fixtures/semantic-html5-scenarios/nested-ordered-list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<ol> | ||
<li>alice | ||
<li><span class="principal">alice</span> | ||
<ol type="a"> | ||
<li>subpoint 1</li> | ||
<li>subpoint 2</li> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ol> | ||
</li> | ||
<li>bob | ||
<li><span class="principal">bob</span> | ||
<ol type="a"> | ||
<li>subpoint 1</li> | ||
<li>subpoint 2</li> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ol> | ||
</li> | ||
</ol> | ||
</ol> |
7 changes: 7 additions & 0 deletions
7
test/fixtures/semantic-html5-scenarios/nested-unordered-list-with-title.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.List Title | ||
* alice | ||
** subpoint 1 | ||
** subpoint 2 | ||
* bob | ||
** subpoint 1 | ||
** subpoint 2 |
15 changes: 15 additions & 0 deletions
15
test/fixtures/semantic-html5-scenarios/nested-unordered-list-with-title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<ul> | ||
<header><strong class="title">List Title</strong><header> | ||
<li><span class="principal">alice</span> | ||
<ul> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ul> | ||
</li> | ||
<li><span class="principal">bob</span> | ||
<ul> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ul> | ||
</li> | ||
</ul> |
14 changes: 7 additions & 7 deletions
14
test/fixtures/semantic-html5-scenarios/nested-unordered-list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<ul> | ||
<li>alice | ||
<li><span class="principal">alice</span> | ||
<ul> | ||
<li>subpoint 1</li> | ||
<li>subpoint 2</li> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ul> | ||
</li> | ||
<li>bob | ||
<li><span class="principal">bob</span> | ||
<ul> | ||
<li>subpoint 1</li> | ||
<li>subpoint 2</li> | ||
<li><span class="principal">subpoint 1</span></li> | ||
<li><span class="principal">subpoint 2</span></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</ul> |
14 changes: 7 additions & 7 deletions
14
test/fixtures/semantic-html5-scenarios/ordered-list-roman.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<ol type="I"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> | ||
<ol type="i"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
</ol> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> |
14 changes: 7 additions & 7 deletions
14
test/fixtures/semantic-html5-scenarios/ordered-list-with-id-roles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<ol id="list_a" class="class_a class_b"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> | ||
<ol id="list_b" class="class_c class_d"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
</ol> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> |
14 changes: 7 additions & 7 deletions
14
test/fixtures/semantic-html5-scenarios/ordered-list-with-id.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<ol id="list_a"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> | ||
<ol id="list_b"> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
</ol> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/ordered-list-with-reverse.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ol reversed="true"> | ||
<li>step 3</li> | ||
<li>step 2</li> | ||
<li>step 1</li> | ||
</ol> | ||
<li><span class="principal">step 3</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 1</span></li> | ||
</ol> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/ordered-list-with-start.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ol start="3"> | ||
<li>step 3</li> | ||
<li>step 4</li> | ||
<li>step 5</li> | ||
</ol> | ||
<li><span class="principal">step 3</span></li> | ||
<li><span class="principal">step 4</span></li> | ||
<li><span class="principal">step 5</span></li> | ||
</ol> |
18 changes: 9 additions & 9 deletions
18
test/fixtures/semantic-html5-scenarios/ordered-list-with-title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<ol> | ||
<strong class="title">List A</strong> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
<header><strong class="title">List A</strong></header> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> | ||
<ol> | ||
<strong class="title">List B</strong> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
</ol> | ||
<header><strong class="title">List B</strong></header> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<ol> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> | ||
<ol> | ||
<li>step 1</li> | ||
<li>step 2</li> | ||
<li>step 3</li> | ||
</ol> | ||
<li><span class="principal">step 1</span></li> | ||
<li><span class="principal">step 2</span></li> | ||
<li><span class="principal">step 3</span></li> | ||
</ol> |
6 changes: 3 additions & 3 deletions
6
test/fixtures/semantic-html5-scenarios/unordered-list-with-id-roles.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ul id="my_list" class="role1 role2"> | ||
<li>alice</li> | ||
<li>bob</li> | ||
</ul> | ||
<li><span class="principal">alice</span></li> | ||
<li><span class="principal">bob</span></li> | ||
</ul> |
6 changes: 3 additions & 3 deletions
6
test/fixtures/semantic-html5-scenarios/unordered-list-with-id.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ul id="my_list"> | ||
<li>alice</li> | ||
<li>bob</li> | ||
</ul> | ||
<li><span class="principal">alice</span></li> | ||
<li><span class="principal">bob</span></li> | ||
</ul> |
8 changes: 4 additions & 4 deletions
8
test/fixtures/semantic-html5-scenarios/unordered-list-with-title.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul> | ||
<strong class="title">baby names</strong> | ||
<li>alice</li> | ||
<li>bob</li> | ||
</ul> | ||
<header><strong class="title">baby names</strong><header> | ||
<li><span class="principal">alice</span></li> | ||
<li><span class="principal">bob</span></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<ul> | ||
<li>alice</li> | ||
<li>bob</li> | ||
</ul> | ||
<li><span class="principal">alice</span></li> | ||
<li><span class="principal">bob</span></li> | ||
</ul> |