Skip to content

Commit

Permalink
fixup! [#92] Add support for image links
Browse files Browse the repository at this point in the history
  • Loading branch information
Sereja313 committed Sep 29, 2022
1 parent 463519b commit 9327f2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Xrefcheck/Scanners/Markdown.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ removeIgnored fp = withIgnoreMode . cataNode remove
-- we find a link and ignore it, or we find another ignore annotation,
-- then we should report an error and set new `Ignore` state.
(Link, LINK {}) -> put ignoreNone $> defNode
(Link, IMAGE {}) -> put ignoreNone $> defNode
(Link, _) ->
case getIgnoreMode node of
Just mode' -> do
Expand Down
3 changes: 3 additions & 0 deletions tests/golden/check-images/check-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@
![bad image ref 4][img-ref-bad-4]

[img-ref-bad-4]: ./4.png "text"

<!-- xrefcheck: ignore link -->
![bad image ref ignored](./3.png "text")

0 comments on commit 9327f2f

Please sign in to comment.