You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/preprocess-external-link/src/index.js
+4-11Lines changed: 4 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,7 @@ import MagicString from 'magic-string';
2
2
import{parse}from'svelte-parse-markup';
3
3
import{walk}from'zimmerframe';
4
4
5
-
/**
6
-
* @typedef ExternalLinkConfig
7
-
* @property {string[]} hosts - a list of hosts that, if href does NOT match, will be marked as external. `localhost` is already included
8
-
* @property {(filename?: string) => boolean} [files] - a function that returns true if the file should be processed. By defaults it will matches
9
-
* @property {string} [markerAttribute] a boolean attribute that explicitly marks the anchor tag as external to be processed. Defaults to `'data-external'`
10
-
* @property {Record<string, string>} [attributes] - attributes to add to the anchor tag. Defaults to `{ target: '_blank', rel: 'noopener noreferrer' }`
0 commit comments