-
-
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 #909 from phpDocumentor/backport/1.x/pr-908
[1.x] [BUGFIX] Improve comment handling
- Loading branch information
Showing
6 changed files
with
90 additions
and
15 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
29 changes: 29 additions & 0 deletions
29
tests/Integration/tests/comments/comment-ends-in-markup/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,29 @@ | ||
<!-- content start --> | ||
<div class="section" id="some-title"> | ||
<a id="nocomment"></a> | ||
<h1>Some Title</h1> | ||
|
||
<div class="admonition note"> | ||
<p>No comment!</p> | ||
</div> | ||
|
||
<div class="section" id="another-title"> | ||
<a id="alsonoomment"></a> | ||
<h2>Another title</h2> | ||
|
||
<div class="footnote " id="footnote-1"> | ||
<div class="footnote-label">[1]</div> | ||
<div class="footnote-content">Text of the first footnote.</div> | ||
</div> | ||
|
||
<div class="footnote " id="footnote-2"> | ||
<div class="footnote-label">[2]</div> | ||
<div class="footnote-content">Text of the second footnote.</div> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
</div> | ||
|
||
<!-- content end --> |
17 changes: 17 additions & 0 deletions
17
tests/Integration/tests/comments/comment-ends-in-markup/input/index.rst
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,17 @@ | ||
.. _nocomment: | ||
|
||
Some Title | ||
========== | ||
|
||
.. Generated by https://example.com/ | ||
.. note:: No comment! | ||
|
||
.. this is a commend | ||
.. _alsonoomment: | ||
|
||
Another title | ||
------------- | ||
|
||
.. this is a commend | ||
.. [#f1] Text of the first footnote. | ||
.. [#f2] Text of the second footnote. |