Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hackmd/markdown-it-regexp

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hackmd/markdown-it-regexp - npm Package Compare versions

Comparing version
0.4.0
to
0.4.1
+9
-1
lib/index.js

@@ -29,3 +29,3 @@ /*!

function Plugin(regexp, replacer) {
function Plugin(regexp, replacer, opts) {
// return value should be a callable function

@@ -51,2 +51,4 @@ // with strictly defined options passed by markdown-it

self.opts = opts
// this plugin can be inserted multiple times,

@@ -74,2 +76,8 @@ // so we're generating unique name for it

if (this.opts && typeof this.opts.shouldParse === 'function') {
if (!this.opts.shouldParse(state)) {
return false
}
}
if (state.pending) {

@@ -76,0 +84,0 @@ state.pushPending();

+1
-1
{
"name": "@hackmd/markdown-it-regexp",
"version": "0.4.0",
"version": "0.4.1",
"description": "plugin that makes regexp replacement simple",

@@ -5,0 +5,0 @@ "author": {