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

marked-gfm-heading-id

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marked-gfm-heading-id - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

1

lib/index.umd.js

@@ -99,2 +99,3 @@ (function (global, factory) {

heading(text, level, raw) {
raw = raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig, '');
return `<h${level} id="${prefix}${slugger.slug(raw)}">${text}</h${level}>\n`;

@@ -101,0 +102,0 @@ }

14

package.json
{
"name": "marked-gfm-heading-id",
"version": "2.0.1",
"version": "2.0.2",
"description": "marked GFM heading ids",

@@ -46,4 +46,4 @@ "main": "./lib/index.cjs",

"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/preset-env": "^7.19.4",
"@babel/core": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@rollup/plugin-node-resolve": "^15.0.1",

@@ -57,12 +57,12 @@ "@semantic-release/changelog": "^6.0.1",

"babel-jest": "^29.2.2",
"eslint": "^8.26.0",
"eslint": "^8.27.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.4.0",
"eslint-plugin-n": "^15.5.0",
"eslint-plugin-promise": "^6.1.1",
"jest-cli": "^29.2.2",
"marked": "^4.1.1",
"rollup": "^3.2.3",
"marked": "^4.2.2",
"rollup": "^3.2.5",
"semantic-release": "^19.0.5"
}
}

@@ -14,2 +14,3 @@ import GithubSlugger from 'github-slugger';

heading(text, level, raw) {
raw = raw.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig, '');
return `<h${level} id="${prefix}${slugger.slug(raw)}">${text}</h${level}>\n`;

@@ -16,0 +17,0 @@ }

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