-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 #1191 from phpDocumentor/fix/off-by-x-headings
[FIX] make heading level dynamic
- Loading branch information
Showing
5 changed files
with
103 additions
and
5 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
45 changes: 45 additions & 0 deletions
45
tests/Integration/tests/markdown/sections-no-level-1-md/expected/index.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 @@ | ||
<!-- content start --> | ||
|
||
<div class="section" id="introduction"> | ||
<h2>Introduction</h2> | ||
|
||
<p>This is a sample Markdown document demonstrating sections and subsections.</p> | ||
|
||
</div> | ||
<div class="section" id="section-1"> | ||
<h2>Section 1</h2> | ||
|
||
<p>This is the first section of the document.</p> | ||
|
||
<div class="section" id="subsection-1-1"> | ||
<h3>Subsection 1.1</h3> | ||
|
||
<p>This is a subsection under Section 1.</p> | ||
|
||
</div> | ||
<div class="section" id="subsection-1-2"> | ||
<h3>Subsection 1.2</h3> | ||
|
||
<p>Another subsection under Section 1.</p> | ||
|
||
</div> | ||
</div> | ||
<div class="section" id="section-2"> | ||
<h2>Section 2</h2> | ||
|
||
<p>Moving on to the second section of the document.</p> | ||
|
||
<div class="section" id="subsection-2-1"> | ||
<h3>Subsection 2.1</h3> | ||
|
||
<p>A subsection under Section 2.</p> | ||
|
||
</div> | ||
</div> | ||
<div class="section" id="conclusion"> | ||
<h2>Conclusion</h2> | ||
|
||
<p>In conclusion, this is a simple example of a Markdown document with various sections and subsections.</p> | ||
|
||
</div> | ||
<!-- content end --> |
7 changes: 7 additions & 0 deletions
7
tests/Integration/tests/markdown/sections-no-level-1-md/input/guides.xml
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 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<guides xmlns="https://www.phpdoc.org/guides" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://www.phpdoc.org/guides packages/guides-cli/resources/schema/guides.xsd" | ||
input-format="md" | ||
> | ||
</guides> |
27 changes: 27 additions & 0 deletions
27
tests/Integration/tests/markdown/sections-no-level-1-md/input/index.md
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,27 @@ | ||
## Introduction | ||
|
||
This is a sample Markdown document demonstrating sections and subsections. | ||
|
||
## Section 1 | ||
|
||
This is the first section of the document. | ||
|
||
### Subsection 1.1 | ||
|
||
This is a subsection under Section 1. | ||
|
||
### Subsection 1.2 | ||
|
||
Another subsection under Section 1. | ||
|
||
## Section 2 | ||
|
||
Moving on to the second section of the document. | ||
|
||
### Subsection 2.1 | ||
|
||
A subsection under Section 2. | ||
|
||
## Conclusion | ||
|
||
In conclusion, this is a simple example of a Markdown document with various sections and subsections. |