-
-
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.
[BUGFIX] Let Image sources respect relative and absolute links config…
…uration
- Loading branch information
Showing
19 changed files
with
854 additions
and
4 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
File renamed without changes
File renamed without changes
35 changes: 35 additions & 0 deletions
35
tests/Integration/tests/body-elements/image-absolute/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,35 @@ | ||
<!-- content start --> | ||
<div class="section" id="document-title"> | ||
<h1>Document Title</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
<div class="section" id="a-local-image"> | ||
<h2>A local image</h2> | ||
|
||
<img | ||
src="/hero-illustration.svg" | ||
width="400" alt="Alternative text" /> | ||
|
||
</div> | ||
|
||
<div class="section" id="an-image-with-absolute-paths"> | ||
<h2>An image with absolute paths</h2> | ||
|
||
<img | ||
src="/images/hero2-illustration.svg" | ||
width="400" alt="Alternative text" /> | ||
|
||
</div> | ||
|
||
<div class="section" id="an-image-with-relative-paths"> | ||
<h2>An image with relative paths</h2> | ||
|
||
<img | ||
src="/images/hero2-illustration.svg" | ||
width="400" alt="Alternative text" /> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<!-- content end --> |
35 changes: 35 additions & 0 deletions
35
tests/Integration/tests/body-elements/image-absolute/expected/subfolder/subpage.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,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Subpage</title> | ||
|
||
</head> | ||
<body> | ||
<!-- content start --> | ||
<div class="section" id="subpage"> | ||
<h1>Subpage</h1> | ||
|
||
<p>Lorem Ipsum Dolor.</p> | ||
<div class="section" id="an-image-with-absolute-paths"> | ||
<h2>An image with absolute paths</h2> | ||
|
||
<img | ||
src="/images/hero2-illustration.svg" | ||
width="400" alt="Alternative text" /> | ||
|
||
</div> | ||
|
||
<div class="section" id="an-image-with-relative-paths"> | ||
<h2>An image with relative paths</h2> | ||
|
||
<img | ||
src="/subfolder/../images/hero2-illustration.svg" | ||
width="400" alt="Alternative text" /> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<!-- content end --> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
tests/Integration/tests/body-elements/image-absolute/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" | ||
links-are-relative="false" | ||
> | ||
</guides> |
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
180 changes: 180 additions & 0 deletions
180
...s/Integration/tests/body-elements/image-relative/expected/hero-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.