mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
## [18.2.1](https://github.com/markedjs/marked/compare/v18.2.0...v18.2.1) (2026-11-16) ### Bug Fixes * allow tabs between the tag name and attributes of an html block ([#4207](https://github.com/markedjs/marked/issues/4207)) ([738ebeb](https://github.com/markedjs/marked/commit/738ebebc835ebc97fe82e3321bc7f91f638c531f)) * **cli:** wait for stdout before exiting ([#4197](https://github.com/markedjs/marked/issues/4197)) ([b535046](https://github.com/markedjs/marked/commit/b535046bf59cbe488be4354f02d56b1a1bb6fdaa)) * continue a block quote paragraph with a lazy line that starts an html tag ([#4202](https://github.com/markedjs/marked/issues/4202)) ([8a578e4](https://github.com/markedjs/marked/commit/8a578e4c0c7e1c650a6bad82254d30b0d377c730)) * end a block quote at a lazy line after an empty list item ([#4178](https://github.com/markedjs/marked/issues/4178)) ([e2f77b4](https://github.com/markedjs/marked/commit/e2f77b4b72ccaefeb99fc74df2bfd7016636c3b2)) * end a list item before a lazy line after an empty or non-paragraph nested block ([#4183](https://github.com/markedjs/marked/issues/4183)) ([ac2256e](https://github.com/markedjs/marked/commit/ac2256e1130957341831a8308f73720ede7e6095)) * Fix bracket escapes inside code spans in link text being stripped ([#4205](https://github.com/markedjs/marked/issues/4205)) ([9a26ae9](https://github.com/markedjs/marked/commit/9a26ae9ceeb26f79f35a03ec910f996147087ef8)), closes [#4176](https://github.com/markedjs/marked/issues/4176) [#4176](https://github.com/markedjs/marked/issues/4176) [#4176](https://github.com/markedjs/marked/issues/4176) * keep a tab after the block quote marker's space literal ([#4208](https://github.com/markedjs/marked/issues/4208)) ([2d3b47f](https://github.com/markedjs/marked/commit/2d3b47fa217a06f9a360d86ebf0f766d19949621)) * keep rejected table candidates in the preceding paragraph ([#4218](https://github.com/markedjs/marked/issues/4218)) ([1c5969e](https://github.com/markedjs/marked/commit/1c5969e395905fa3f33f3a847d8ad655f1dfcce7)) * keep tabs that are code content under a block quote ([#4217](https://github.com/markedjs/marked/issues/4217)) ([d2c6f73](https://github.com/markedjs/marked/commit/d2c6f736f339b4739a16426c681528ca210a6e87)), closes [#4184](https://github.com/markedjs/marked/issues/4184) * let a mid-run opener close against a delimiter that can also open ([#4203](https://github.com/markedjs/marked/issues/4203)) ([06e1d10](https://github.com/markedjs/marked/commit/06e1d1090338b76c3d458a26d52ee67f72c8d6e1)) * let an autolink or inline html line start or continue a setext heading ([#4191](https://github.com/markedjs/marked/issues/4191)) ([72d0fec](https://github.com/markedjs/marked/commit/72d0fec9b59a12c5446b9377cf4363a2794ce54b)) * parse links generated by inline tokenizers ([#4204](https://github.com/markedjs/marked/issues/4204)) ([0460f98](https://github.com/markedjs/marked/commit/0460f98b7e2a1dfedf40eccddaa8d8ada1731d2a)) * preserve trailing blank lines in fenced code ([#4200](https://github.com/markedjs/marked/issues/4200)) ([7499eb3](https://github.com/markedjs/marked/commit/7499eb3a23eb29c0e9d2ffde551b92439a9b3af6)) * reject a link destination in angle brackets with an unescaped < or > ([#4206](https://github.com/markedjs/marked/issues/4206)) ([de71210](https://github.com/markedjs/marked/commit/de71210d4204745b326d2e8357240f7a350221f8)) * remove a task item's checkbox marker from its own text ([#4215](https://github.com/markedjs/marked/issues/4215)) ([5902442](https://github.com/markedjs/marked/commit/59024421a4ce874168d3f551565f4ebad121f5af)) * **types:** preserve custom output types in tokenizer overrides ([#4214](https://github.com/markedjs/marked/issues/4214)) ([5e35708](https://github.com/markedjs/marked/commit/5e35708f3f4a88d477c37c2d42ad86907d6b4daf)) ### Performance Improvements * check the first character before inline tokenizer regexes ([#4193](https://github.com/markedjs/marked/issues/4193)) ([95ccf6c](https://github.com/markedjs/marked/commit/95ccf6c186a38e092dfb666d68f70cfcd89c53a5)) * close residual O(n²) parse time on unmatched emphasis/strikethrough delimiter runs (follow-up to [#4099](https://github.com/markedjs/marked/issues/4099) / [#4103](https://github.com/markedjs/marked/issues/4103)) ([#4196](https://github.com/markedjs/marked/issues/4196)) ([0b8b3b3](https://github.com/markedjs/marked/commit/0b8b3b33863822681a1cb5a365baec684c368230)) * skip the emphasis closer scan for inline runs without a delimiter ([#4195](https://github.com/markedjs/marked/issues/4195)) ([ffa06d5](https://github.com/markedjs/marked/commit/ffa06d52ce67f952e0c50ccc7371f50cfe27cfc6))
104 lines
3.3 KiB
JSON
104 lines
3.3 KiB
JSON
{
|
|
"name": "marked",
|
|
"description": "A markdown parser built for speed",
|
|
"author": "Christopher Jeffrey",
|
|
"version": "18.2.1",
|
|
"type": "module",
|
|
"main": "./lib/marked.esm.js",
|
|
"module": "./lib/marked.esm.js",
|
|
"browser": "./lib/marked.umd.js",
|
|
"types": "./lib/marked.d.ts",
|
|
"bin": {
|
|
"marked": "bin/marked.js"
|
|
},
|
|
"man": "./man/marked.1",
|
|
"files": [
|
|
"bin/",
|
|
"lib/",
|
|
"man/"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/marked.d.ts",
|
|
"default": "./lib/marked.esm.js"
|
|
},
|
|
"./bin/marked": "./bin/marked.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"publishConfig": {
|
|
"provenance": true
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/markedjs/marked.git"
|
|
},
|
|
"homepage": "https://marked.js.org",
|
|
"bugs": {
|
|
"url": "https://github.com/markedjs/marked/issues"
|
|
},
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"markdown",
|
|
"markup",
|
|
"html"
|
|
],
|
|
"tags": [
|
|
"markdown",
|
|
"markup",
|
|
"html"
|
|
],
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
"@markedjs/eslint-config": "^1.0.14",
|
|
"@markedjs/testutils": "18.2.0-0",
|
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
"@semantic-release/git": "^11.0.1",
|
|
"@semantic-release/github": "^12.0.11",
|
|
"@semantic-release/npm": "^13.2.0",
|
|
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
"cheerio": "1.2.0",
|
|
"commonmark": "0.31.2",
|
|
"cross-env": "^10.1.0",
|
|
"dts-bundle-generator": "^10.0.0",
|
|
"esbuild": "^0.28.2",
|
|
"esbuild-plugin-umd-wrapper": "^3.0.0",
|
|
"eslint": "^10.15.0",
|
|
"highlight.js": "^11.12.0",
|
|
"markdown-it": "15.0.3",
|
|
"marked-highlight": "^2.2.4",
|
|
"marked-man": "^2.1.1",
|
|
"recheck": "^4.6.2",
|
|
"rimraf": "^6.1.4",
|
|
"semantic-release": "26.0.1",
|
|
"titleize": "^4.0.0",
|
|
"tslib": "^2.9.1",
|
|
"typescript": "6.0.3"
|
|
},
|
|
"scripts": {
|
|
"bench": "npm run build && node test/bench.js",
|
|
"build": "npm run build:esbuild && npm run build:types && npm run build:man",
|
|
"build:docs": "npm run build && node docs/build.js",
|
|
"build:esbuild": "node esbuild.config.js",
|
|
"build:man": "marked-man man/marked.1.md > man/marked.1",
|
|
"build:reset": "rimraf ./lib ./public",
|
|
"build:types": "tsc && dts-bundle-generator --export-referenced-types --project tsconfig.json -o lib/marked.d.ts src/marked.ts",
|
|
"lint": "eslint --fix",
|
|
"rules": "node test/rules.js",
|
|
"test": "npm run build:reset && npm run build:docs && npm run test:specs && npm run test:unit && npm run test:umd && npm run test:cjs && npm run test:types && npm run test:lint",
|
|
"test:cjs": "node test/cjs-test.cjs",
|
|
"test:lint": "eslint",
|
|
"test:only": "npm run build && npm run test:specs:only && npm run test:unit:only",
|
|
"test:recheck": "node test/recheck.ts > vuln.js",
|
|
"test:specs:only": "node --test --test-only --test-reporter=spec test/run-spec-tests.js",
|
|
"test:specs": "node --test --test-reporter=spec test/run-spec-tests.js",
|
|
"test:types": "tsc --project tsconfig-type-test.json && attw -P --entrypoints . --profile esm-only",
|
|
"test:umd": "node test/umd-test.js",
|
|
"test:unit:only": "node --test --test-only --test-reporter=spec test/unit/*.test.js",
|
|
"test:unit": "node --test --test-reporter=spec test/unit/*.test.js",
|
|
"test:update": "node test/update-specs.js"
|
|
},
|
|
"engines": {
|
|
"node": ">= 20"
|
|
}
|
|
}
|