-
-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add convert admonition method to the semantic HTML 5 converter
- Loading branch information
1 parent
cc33772
commit f1fbe5c
Showing
21 changed files
with
638 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
test/fixtures/semantic-html5-scenarios/admonitions-multi-with-id-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,34 @@ | ||
[NOTE#the_note.role_1.role_2] | ||
==== | ||
This is a note. | ||
The end. | ||
==== | ||
|
||
[TIP#the_tip.role_1.role_2] | ||
==== | ||
This is a tip. | ||
The end. | ||
==== | ||
|
||
[IMPORTANT#the_important.role_1.role_2] | ||
==== | ||
This is important. | ||
The end. | ||
==== | ||
|
||
[CAUTION#the_caution.role_1.role_2] | ||
==== | ||
This is a caution. | ||
The end. | ||
==== | ||
|
||
[WARNING#the_warning.role_1.role_2] | ||
==== | ||
This is a warning. | ||
The end. | ||
==== |
45 changes: 45 additions & 0 deletions
45
test/fixtures/semantic-html5-scenarios/admonitions-multi-with-id-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,45 @@ | ||
<admonition id="the_note" class="admonition note role_1 role_2"> | ||
<strong class="label">Note</strong> | ||
<p> | ||
This is a note. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_tip" class="admonition tip role_1 role_2"> | ||
<strong class="label">Tip</strong> | ||
<p> | ||
This is a tip. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_important" class="admonition important role_1 role_2"> | ||
<strong class="label">Important</strong> | ||
<p> | ||
This is important. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_caution" class="admonition caution role_1 role_2"> | ||
<strong class="label">Caution</strong> | ||
<p> | ||
This is a caution. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_warning" class="admonition warning role_1 role_2"> | ||
<strong class="label">Warning</strong> | ||
<p> | ||
This is a warning. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> |
34 changes: 34 additions & 0 deletions
34
test/fixtures/semantic-html5-scenarios/admonitions-multi-with-id.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,34 @@ | ||
[NOTE#the_note] | ||
==== | ||
This is a note. | ||
The end. | ||
==== | ||
|
||
[TIP#the_tip] | ||
==== | ||
This is a tip. | ||
The end. | ||
==== | ||
|
||
[IMPORTANT#the_important] | ||
==== | ||
This is important. | ||
The end. | ||
==== | ||
|
||
[CAUTION#the_caution] | ||
==== | ||
This is a caution. | ||
The end. | ||
==== | ||
|
||
[WARNING#the_warning] | ||
==== | ||
This is a warning. | ||
The end. | ||
==== |
45 changes: 45 additions & 0 deletions
45
test/fixtures/semantic-html5-scenarios/admonitions-multi-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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<admonition id="the_note" class="admonition note"> | ||
<strong class="label">Note</strong> | ||
<p> | ||
This is a note. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_tip" class="admonition tip"> | ||
<strong class="label">Tip</strong> | ||
<p> | ||
This is a tip. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_important" class="admonition important"> | ||
<strong class="label">Important</strong> | ||
<p> | ||
This is important. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_caution" class="admonition caution"> | ||
<strong class="label">Caution</strong> | ||
<p> | ||
This is a caution. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition id="the_warning" class="admonition warning"> | ||
<strong class="label">Warning</strong> | ||
<p> | ||
This is a warning. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> |
34 changes: 34 additions & 0 deletions
34
test/fixtures/semantic-html5-scenarios/admonitions-multi-with-role.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,34 @@ | ||
[NOTE.role_1.role_2] | ||
==== | ||
This is a note. | ||
The end. | ||
==== | ||
|
||
[TIP.role_1.role_2] | ||
==== | ||
This is a tip. | ||
The end. | ||
==== | ||
|
||
[IMPORTANT.role_1.role_2] | ||
==== | ||
This is important. | ||
The end. | ||
==== | ||
|
||
[CAUTION.role_1.role_2] | ||
==== | ||
This is a caution. | ||
The end. | ||
==== | ||
|
||
[WARNING.role_1.role_2] | ||
==== | ||
This is a warning. | ||
The end. | ||
==== |
45 changes: 45 additions & 0 deletions
45
test/fixtures/semantic-html5-scenarios/admonitions-multi-with-role.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,45 @@ | ||
<admonition class="admonition note role_1 role_2"> | ||
<strong class="label">Note</strong> | ||
<p> | ||
This is a note. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition tip role_1 role_2"> | ||
<strong class="label">Tip</strong> | ||
<p> | ||
This is a tip. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition important role_1 role_2"> | ||
<strong class="label">Important</strong> | ||
<p> | ||
This is important. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition caution role_1 role_2"> | ||
<strong class="label">Caution</strong> | ||
<p> | ||
This is a caution. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition warning role_1 role_2"> | ||
<strong class="label">Warning</strong> | ||
<p> | ||
This is a warning. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> |
39 changes: 39 additions & 0 deletions
39
test/fixtures/semantic-html5-scenarios/admonitions-multi-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,39 @@ | ||
[NOTE] | ||
.Here is a note | ||
==== | ||
This is a note. | ||
The end. | ||
==== | ||
|
||
[TIP] | ||
.Here is a tip | ||
==== | ||
This is a tip. | ||
The end. | ||
==== | ||
|
||
[IMPORTANT] | ||
.This is important | ||
==== | ||
This is important. | ||
The end. | ||
==== | ||
|
||
[CAUTION] | ||
.Here is a caution | ||
==== | ||
This is a caution. | ||
The end. | ||
==== | ||
|
||
[WARNING] | ||
.This is a warning | ||
==== | ||
This is a warning. | ||
The end. | ||
==== |
45 changes: 45 additions & 0 deletions
45
test/fixtures/semantic-html5-scenarios/admonitions-multi-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,45 @@ | ||
<admonition class="admonition note"> | ||
<strong class="label">Note</strong> | ||
<p> | ||
This is a note. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition tip"> | ||
<strong class="label">Tip</strong> | ||
<p> | ||
This is a tip. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition important"> | ||
<strong class="label">Important</strong> | ||
<p> | ||
This is important. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition caution"> | ||
<strong class="label">Caution</strong> | ||
<p> | ||
This is a caution. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> | ||
<admonition class="admonition warning"> | ||
<strong class="label">Warning</strong> | ||
<p> | ||
This is a warning. | ||
</p> | ||
<p> | ||
The end. | ||
</p> | ||
</admonition> |
Oops, something went wrong.