Skip to content
Permalink
Browse files

Chore: update blogpost template (#12154)

  • Loading branch information
mysticatea authored and kaicataldo committed Aug 26, 2019
1 parent 6abc7b7 commit 77f8ed1ad9656c526217ce54a6717fa232d522c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/blogpost.md.ejs
@@ -14,7 +14,7 @@ const RULE_REGEX = new RegExp(`\`?\\b(${ruleList.join("|")})\\b\`?`, "g");
function linkify(line) {
return line
.replace(/#(\d+)/g, "[#$1](https://github.com/eslint/eslint/issues/$1)")
.replace(/([^\s/]+[/][^\s/]+)?#(\d+)/g, (_, repo, num) => `[${repo || ""}#${num}](https://github.com/${repo || "eslint/eslint"}/issues/${num})`)
.replace(RULE_REGEX, "[$&](/docs/rules/$1)");
}

0 comments on commit 77f8ed1

Please sign in to comment.
You can’t perform that action at this time.