-
-
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.
[TASK] Allow to omit whitespace before reference target
While reST expects a whitespace here, Sphinx allows to omit the whitespace and still interprets them correctly.
- Loading branch information
Showing
3 changed files
with
26 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
9 changes: 9 additions & 0 deletions
9
tests/Integration/tests/references/reference-without-space/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,9 @@ | ||
<!-- content start --> | ||
<div class="section" id="the-head"> | ||
<a id="anchor"></a> | ||
<h1>the <head></h1> | ||
|
||
<p>See also <a href="/index.html#anchor">This is the anchor</a>.</p> | ||
</div> | ||
|
||
<!-- content end --> |
6 changes: 6 additions & 0 deletions
6
tests/Integration/tests/references/reference-without-space/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,6 @@ | ||
.. _anchor: | ||
|
||
the \<head\> | ||
============ | ||
|
||
See also :ref:`This is the anchor<anchor>`. |