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 57cd793 commit e24899aCopy full SHA for e24899a
src/node/markdown/plugins/link.ts
@@ -27,7 +27,9 @@ export const linkPlugin = (
27
) => {
28
const token = tokens[idx]
29
const hrefIndex = token.attrIndex('href')
30
- if (hrefIndex >= 0) {
+ const targetIndex = token.attrIndex('target')
31
+ const downloadIndex = token.attrIndex('download')
32
+ if (hrefIndex >= 0 && targetIndex < 0 && downloadIndex < 0) {
33
const hrefAttr = token.attrs![hrefIndex]
34
const url = hrefAttr[1]
35
if (isExternal(url)) {
0 commit comments