Skip to content

Commit

Permalink
Merge pull request #193 from reyang/reyang/anchor-fix
Browse files Browse the repository at this point in the history
Fix the anchor regression
  • Loading branch information
tcort authored Mar 23, 2022
2 parents f0fa843 + 556575d commit bdbb500
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/hash-links.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Foo

<!-- markdownlint-disable MD033 -->
<a id="tomato"></a>
<!-- markdownlint-enable MD033 -->

This is a test.

## Bar
Expand All @@ -13,3 +17,5 @@ The second section is [Bar](#bar).
## Uh, oh

There is no section named [Potato](#potato).

There is an anchor named [Tomato](#tomato).
1 change: 1 addition & 0 deletions test/markdown-link-check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ describe('markdown-link-check', function () {
{ link: '#foo', statusCode: 200, err: null, status: 'alive' },
{ link: '#bar', statusCode: 200, err: null, status: 'alive' },
{ link: '#potato', statusCode: 404, err: null, status: 'dead' },
{ link: '#tomato', statusCode: 200, err: null, status: 'alive' },
]);
done();
});
Expand Down

0 comments on commit bdbb500

Please sign in to comment.