We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a8ac8a commit 9bc7f50Copy full SHA for 9bc7f50
no-generic-link-text.js
@@ -26,6 +26,7 @@ module.exports = {
26
tags: ["accessibility", "links"],
27
function: function GH002(params, onError) {
28
// markdown syntax
29
+ const allBannedLinkTexts = bannedLinkText.concat(params.config.banned_link_texts || [])
30
const inlineTokens = params.tokens.filter((t) => t.type === "inline");
31
for (const token of inlineTokens) {
32
const { children } = token;
@@ -40,7 +41,7 @@ module.exports = {
40
41
linkText = "";
42
} else if (type === "link_close") {
43
inLink = false;
- if (bannedLinkText.includes(stripAndDowncaseText(linkText))) {
44
+ if (allBannedLinkTexts.includes(stripAndDowncaseText(linkText))) {
45
onError({
46
lineNumber,
47
lineIndex,
0 commit comments