Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marked-highlight

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-highlight - npm Package Compare versions

Comparing version 2.1.3 to 2.1.4

8

lib/index.umd.js

@@ -10,3 +10,3 @@ (function (global, factory) {

options = {
highlight: options
highlight: options,
};

@@ -57,4 +57,4 @@ }

return `<pre><code${classAttr}>${escaped ? code : escape(code, true)}\n</code></pre>`;
}
}
},
},
};

@@ -86,3 +86,3 @@ }

'"': '&quot;',
"'": '&#39;'
"'": '&#39;',
};

@@ -89,0 +89,0 @@ const getEscapeReplacement = (ch) => escapeReplacements[ch];

{
"name": "marked-highlight",
"version": "2.1.3",
"version": "2.1.4",
"description": "marked highlight",

@@ -30,3 +30,3 @@ "main": "./lib/index.cjs",

"test:types": "tsd -t src/index.d.ts -f types_test/index.test-d.ts",
"lint": "eslint .",
"lint": "eslint",
"build": "rollup -c rollup.config.js"

@@ -45,24 +45,22 @@ },

"peerDependencies": {
"marked": ">=4 <14"
"marked": ">=4 <15"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@markedjs/eslint-config": "^1.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.6",
"@semantic-release/github": "^10.1.3",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.0",
"@semantic-release/release-notes-generator": "^14.0.1",
"babel-jest": "^29.7.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.2.0",
"highlight.js": "^11.9.0",
"eslint": "^9.8.0",
"globals": "^15.9.0",
"highlight.js": "^11.10.0",
"jest-cli": "^29.7.0",
"marked": "^13.0.0",
"marked": "^14.0.0",
"pygmentize-bundled": "^2.3.0",
"rollup": "^4.18.0",
"rollup": "^4.20.0",
"semantic-release": "^24.0.0",

@@ -69,0 +67,0 @@ "tsd": "^0.31.1"

@@ -49,3 +49,3 @@ declare module 'marked-highlight' {

* asynchronous highlighting function.
*
*
* Note that the {async: true} option should also be passed to marked.parse()

@@ -52,0 +52,0 @@ * when using an asynchronous highlighting function to tell TypeScript that it

export function markedHighlight(options) {
if (typeof options === 'function') {
options = {
highlight: options
highlight: options,
};

@@ -50,4 +50,4 @@ }

return `<pre><code${classAttr}>${escaped ? code : escape(code, true)}\n</code></pre>`;
}
}
},
},
};

@@ -79,3 +79,3 @@ }

'"': '&quot;',
"'": '&#39;'
"'": '&#39;',
};

@@ -82,0 +82,0 @@ const getEscapeReplacement = (ch) => escapeReplacements[ch];

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc