markdown-it-link-attributes
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,5 @@ | ||
# 4.0.1 | ||
- Fix documentation error in README | ||
# 4.0.0 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "markdown-it-link-attributes", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A markdown-it plugin to configure the attributes for links", | ||
@@ -32,11 +32,10 @@ "main": "index.js", | ||
"browserify": "^17.0.0", | ||
"chalk": "^4.1.0", | ||
"check-ecmascript-version-compatibility": "^0.1.1", | ||
"eslint": "^8.5.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"jest": "^27.4.5", | ||
"eslint": "^8.21.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"jest": "^28.1.3", | ||
"markdown-it": "latest", | ||
"prettier": "^2.5.1", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"uglify-js": "^3.14.5" | ||
"uglify-js": "^3.16.3" | ||
}, | ||
@@ -43,0 +42,0 @@ "eslint": { |
@@ -95,3 +95,3 @@ # markdown-it-link-attributes | ||
Alternatively, you can pass an Array of configurations. The first pattern to match will be applied to the link. | ||
Alternatively, you can pass an Array of configurations. The first matcher function to return true will be applied to the link. | ||
@@ -101,3 +101,5 @@ ```js | ||
{ | ||
pattern: /^https?:\/\//, | ||
matcher(href) { | ||
return href.match(/^https?:\/\//); | ||
}, | ||
attrs: { | ||
@@ -108,3 +110,5 @@ class: "external-link", | ||
{ | ||
pattern: /^\//, | ||
matcher(href) { | ||
return href.startsWith("/"); | ||
}, | ||
attrs: { | ||
@@ -115,3 +119,5 @@ class: "absolute-link", | ||
{ | ||
pattern: /blue/, | ||
matcher(href) { | ||
return href.startsWith("/blue/"); | ||
}, | ||
attrs: { | ||
@@ -132,3 +138,3 @@ class: "link-that-contains-the-word-blue", | ||
If multiple patterns match, the first configuration to match will be used. | ||
If multiple matcher functions return true, the first configuration to match will be used. | ||
@@ -135,0 +141,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14541
9
156
0