You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

markdown-it-link-attributes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it-link-attributes - npm Package Compare versions

Comparing version

to
4.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 4.0.1
- Fix documentation error in README
# 4.0.0

@@ -2,0 +6,0 @@

13

package.json
{
"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