Skip to content

Commit c43d359

Browse files
authored
Disable fuzzy links to prevent unintended linkage when referring to files or version numbers that may appear like domains or IP addresses (#4311)
1 parent 8b2a89d commit c43d359

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/utils/parse.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ export const md = (options = {}) => {
140140
return self.renderToken(tokens, idx, options)
141141
}
142142

143+
md.linkify.set({
144+
fuzzyLink: false,
145+
fuzzyIP: false,
146+
})
147+
143148
md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
144149
const token = tokens[idx]
145150
const index = token.attrIndex('href')

0 commit comments

Comments
 (0)