marked-gfm-heading-id
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -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 @@ } |
{ | ||
"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
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
15861
159