-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: We should add support for image links. Solution: Extract image links as regular links.
- Loading branch information
Showing
6 changed files
with
145 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bats | ||
|
||
# SPDX-FileCopyrightText: 2022 Serokell <https://serokell.io> | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
load '../helpers/bats-support/load' | ||
load '../helpers/bats-assert/load' | ||
load '../helpers/bats-file/load' | ||
load '../helpers' | ||
|
||
@test "Check images" { | ||
to_temp xrefcheck -v | ||
|
||
assert_diff expected.gold | ||
} |
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 @@ | ||
<!-- | ||
- SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io> | ||
- | ||
- SPDX-License-Identifier: MPL-2.0 | ||
--> | ||
|
||
![good image ref 1](https://avatars.githubusercontent.com/u/13840520 "text") | ||
|
||
![good image ref 2][img-ref-good-2] | ||
|
||
[img-ref-good-2]: https://avatars.githubusercontent.com/u/13840520 "text" | ||
|
||
![good image ref 3](./serokell.png "text") | ||
|
||
![good image ref 4][img-ref-good-4] | ||
|
||
[img-ref-good-4]: ./serokell.png "text" | ||
|
||
|
||
![bad image ref 1](https://serokell.io/1.png "text") | ||
|
||
![bad image ref 2][img-ref-bad-2] | ||
|
||
[img-ref-bad-2]: https://serokell.io/2.png "text" | ||
|
||
![bad image ref 3](./3.png "text") | ||
![bad image ref 4][img-ref-bad-4] | ||
|
||
[img-ref-bad-4]: ./4.png "text" |
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,82 @@ | ||
=== Repository data === | ||
|
||
⮚ check-images.md: | ||
- references: | ||
- reference (external) at src:7:1-76: | ||
- text: "good image ref 1" | ||
- link: https://avatars.githubusercontent.com/u/13840520 | ||
- anchor: - | ||
- reference (external) at src:9:1-35: | ||
- text: "good image ref 2" | ||
- link: https://avatars.githubusercontent.com/u/13840520 | ||
- anchor: - | ||
- reference (relative) at src:13:1-42: | ||
- text: "good image ref 3" | ||
- link: ./serokell.png | ||
- anchor: - | ||
- reference (relative) at src:15:1-35: | ||
- text: "good image ref 4" | ||
- link: ./serokell.png | ||
- anchor: - | ||
- reference (external) at src:20:1-52: | ||
- text: "bad image ref 1" | ||
- link: https://serokell.io/1.png | ||
- anchor: - | ||
- reference (external) at src:22:1-33: | ||
- text: "bad image ref 2" | ||
- link: https://serokell.io/2.png | ||
- anchor: - | ||
- reference (relative) at src:26:1-34: | ||
- text: "bad image ref 3" | ||
- link: ./3.png | ||
- anchor: - | ||
- reference (relative) at src:27:1-33: | ||
- text: "bad image ref 4" | ||
- link: ./4.png | ||
- anchor: - | ||
- anchors: [] | ||
|
||
|
||
|
||
|
||
=== Invalid references found === | ||
|
||
➥ In file check-images.md | ||
bad reference (external) at src:20:1-52: | ||
- text: "bad image ref 1" | ||
- link: https://serokell.io/1.png | ||
- anchor: - | ||
|
||
⛂ Resource unavailable (404 Not Found) | ||
|
||
|
||
➥ In file check-images.md | ||
bad reference (external) at src:22:1-33: | ||
- text: "bad image ref 2" | ||
- link: https://serokell.io/2.png | ||
- anchor: - | ||
|
||
⛂ Resource unavailable (404 Not Found) | ||
|
||
|
||
➥ In file check-images.md | ||
bad reference (relative) at src:26:1-34: | ||
- text: "bad image ref 3" | ||
- link: ./3.png | ||
- anchor: - | ||
|
||
⛀ File does not exist: | ||
3.png | ||
|
||
|
||
➥ In file check-images.md | ||
bad reference (relative) at src:27:1-33: | ||
- text: "bad image ref 4" | ||
- link: ./4.png | ||
- anchor: - | ||
|
||
⛀ File does not exist: | ||
4.png | ||
|
||
|
||
Invalid references dumped, 4 in total. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.