forked from github/markup
-
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.
- upgrade to Asciidoctor 2.0.x (starting with 2.0.5) - switch to fuzzy version match for asciidoctor gem - disable sectanchors (since they get removed by the sanitizer anyway) - use formal xref macro for interdocument xref in test - add test for toggling the document title using showtitle/!showtitle - add test to verify toc is generated at top of document when toc attribute is set
- Loading branch information
1 parent
24d25cb
commit 34a7975
Showing
7 changed files
with
73 additions
and
2 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
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
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
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,4 @@ | ||
= Not Shown | ||
:!showtitle: | ||
|
||
This test verifies the author can disable the document title by adding `:!showtitle:` to the document header. |
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,3 @@ | ||
<div> | ||
<p>This test verifies the author can disable the document title by adding <code>:!showtitle:</code> to the document header.</p> | ||
</div> |
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 @@ | ||
= Document Title | ||
:toc: | ||
:toc-title: Contents | ||
|
||
== Section A | ||
|
||
=== Subsection A-1 | ||
|
||
=== Subsection A-2 | ||
|
||
== Section B | ||
|
||
=== Subsection B-1 | ||
|
||
=== Subsection B-2 |
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,46 @@ | ||
<h1>Document Title</h1> | ||
<div> | ||
<div>Contents</div> | ||
<ul> | ||
<li> | ||
<a href="#section-a">Section A</a> | ||
<ul> | ||
<li><a href="#subsection-a-1">Subsection A-1</a></li> | ||
<li><a href="#subsection-a-2">Subsection A-2</a></li> | ||
</ul> | ||
</li> | ||
<li> | ||
<a href="#section-b">Section B</a> | ||
<ul> | ||
<li><a href="#subsection-b-1">Subsection B-1</a></li> | ||
<li><a href="#subsection-b-2">Subsection B-2</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<h2>Section A</h2> | ||
<div> | ||
<div> | ||
<h3>Subsection A-1</h3> | ||
|
||
</div> | ||
<div> | ||
<h3>Subsection A-2</h3> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<h2>Section B</h2> | ||
<div> | ||
<div> | ||
<h3>Subsection B-1</h3> | ||
|
||
</div> | ||
<div> | ||
<h3>Subsection B-2</h3> | ||
|
||
</div> | ||
</div> | ||
</div> |