-
-
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.
[FEATURE] Handle images without alt tags
Issue a warning for accessibility reasons but let them output
- Loading branch information
Showing
6 changed files
with
26 additions
and
8 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
8 changes: 4 additions & 4 deletions
8
tests/Integration/tests/markdown/image-empty-alt-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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Markdown with links - Project Title</title> | ||
<title>Images with and without alt text - Project Title</title> | ||
|
||
</head> | ||
<body> | ||
<h1>Markdown with links</h1> | ||
<h1>Images with and without alt text</h1> | ||
|
||
<p>This is a Markdown document with some basic formatting.</p> | ||
<p>See also: <a href="https://www.example.com">Link Text</a></p> | ||
<p><img src="https://example.org/example.png" alt="with alt Text"/></p> | ||
<p><img src="https://example.org/example2.png" alt=""/></p> | ||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
tests/Integration/tests/markdown/image-empty-alt-md/expected/logs/warning.log
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 @@ | ||
app.WARNING: Image https://example.org/example2.png does not have an alternative text. Add an alternative text like this: ![Image description](https://example.org/example2.png) |
6 changes: 4 additions & 2 deletions
6
tests/Integration/tests/markdown/image-empty-alt-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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# additional_reports | ||
# Images with and without alt text | ||
|
||
![](https://raw.githubusercontent.com/Apen/additional_reports/master/Resources/Public/Images/middlewares.png) | ||
![with alt Text](https://example.org/example.png) | ||
|
||
![](https://example.org/example2.png) |
This file was deleted.
Oops, something went wrong.