{"name":"marked","version":"18.0.2","keywords":["markdown","markup","html"],"author":{"name":"Christopher Jeffrey"},"license":"MIT","_id":"marked@18.0.2","maintainers":[{"name":"chjj","email":"chjjeffrey@gmail.com"},{"name":"styfle","email":"steven@ceriously.com"},{"name":"amidknight","email":"josh@8fold.pro"},{"name":"tonybrix","email":"tony@brix.ninja"}],"homepage":"https://marked.js.org","bugs":{"url":"http://github.com/markedjs/marked/issues"},"bin":{"marked":"bin/marked.js"},"man":["man/marked.1"],"dist":{"shasum":"180cb158a2d2dc377821cfb088a10ca1b5630ef0","tarball":"http://registry-npm.ywwl.com/marked/download/marked-18.0.2.tgz","fileCount":12,"integrity":"sha512-NsmlUYBS/Zg57rgDWMYdnre6OTj4e+qq/JS2ot3KrYLSoHLw+sDu0Nm1ZGpRgYAq6c+b1ekaY5NzVchMCQnzcg==","signatures":[{"sig":"MEUCIFRMsT3bLjtHC6Bs6cpkiohpO9ji3O5lJCn+niPFo8HyAiEAgZmEy11XqjApJfKWhqAtzTnh54PVmeNv261+sEv8Pi4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/marked@18.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":448793,"size":111155,"noattachment":false,"key":"/marked/-/marked-18.0.2.tgz"},"main":"./lib/marked.esm.js","tags":["markdown","markup","html"],"type":"module","types":"./lib/marked.d.ts","module":"./lib/marked.esm.js","browser":"./lib/marked.umd.js","engines":{"node":">= 20"},"exports":{".":{"types":"./lib/marked.d.ts","default":"./lib/marked.esm.js"},"./bin/marked":"./bin/marked.js","./package.json":"./package.json"},"gitHead":"c4f4529d69d254458831f3c22187d080db2f3c83","scripts":{"lint":"eslint --fix","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","bench":"npm run build && node test/bench.js","build":"npm run build:esbuild && npm run build:types && npm run build:man","rules":"node test/rules.js","test:cjs":"node test/cjs-test.cjs","test:umd":"node test/umd-test.js","build:man":"marked-man man/marked.1.md > man/marked.1","test:lint":"eslint","test:only":"npm run build && npm run test:specs:only && npm run test:unit:only","test:unit":"node --test --test-reporter=spec test/unit/*.test.js","build:docs":"npm run build && node docs/build.js","test:redos":"node test/recheck.ts > vuln.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","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","test:update":"node test/update-specs.js","build:esbuild":"node esbuild.config.js","test:unit:only":"node --test --test-only --test-reporter=spec test/unit/*.test.js","test:specs:only":"node --test --test-only --test-reporter=spec test/run-spec-tests.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:723e480c-ab1a-4ca3-aad0-f923e15f3429"}},"repository":{"url":"git://github.com/markedjs/marked.git","type":"git"},"_npmVersion":"11.11.1","description":"A markdown parser built for speed","directories":{},"_nodeVersion":"24.14.1","publishConfig":{"provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.8.1","eslint":"^10.2.0","rimraf":"^6.1.3","cheerio":"1.2.0","esbuild":"^0.28.0","recheck":"^4.5.0","titleize":"^4.0.0","cross-env":"^10.1.0","commonmark":"0.31.2","marked-man":"^2.1.0","typescript":"6.0.2","markdown-it":"14.1.1","highlight.js":"^11.11.1","marked-highlight":"^2.2.4","semantic-release":"^25.0.3","@markedjs/testutils":"18.0.0-1","dts-bundle-generator":"^9.5.1","@arethetypeswrong/cli":"^0.18.2","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.5","@markedjs/eslint-config":"^1.0.14","@semantic-release/github":"^12.0.6","esbuild-plugin-umd-wrapper":"^3.0.0","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/release-notes-generator":"^14.1.0"},"_npmOperationalInternal":{"tmp":"tmp/marked_18.0.2_1776517945806_0.9112982018245221","host":"s3://npm-registry-packages-npm-production"},"readme":"<a href=\"https://marked.js.org\">\n  <img width=\"60px\" height=\"60px\" src=\"https://marked.js.org/img/logo-black.svg\" align=\"right\" />\n</a>\n\n# Marked\n\n[![npm](https://badgen.net/npm/v/marked)](https://www.npmjs.com/package/marked)\n[![install size](https://badgen.net/packagephobia/install/marked)](https://packagephobia.now.sh/result?p=marked)\n[![downloads](https://badgen.net/npm/dt/marked)](https://www.npmjs.com/package/marked)\n[![github actions](https://github.com/markedjs/marked/workflows/Tests/badge.svg)](https://github.com/markedjs/marked/actions)\n[![snyk](https://snyk.io/test/npm/marked/badge.svg)](https://snyk.io/test/npm/marked)\n\n- ⚡ built for speed\n- ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time\n- ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications\n- 🌐 works in a browser, on a server, or from a command line interface (CLI)\n\n## Demo\n\nCheck out the [demo page](https://marked.js.org/demo/) to see Marked in action ⛹️\n\n## Docs\n\nOur [documentation pages](https://marked.js.org) are also rendered using marked 💯\n\nAlso read about:\n\n* [Options](https://marked.js.org/using_advanced)\n* [Extensibility](https://marked.js.org/using_pro)\n\n## Compatibility\n\n**Node.js:** Only [current and LTS](https://nodejs.org/en/about/releases/) Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.\n\n**Browser:** [Baseline Widely Available](https://developer.mozilla.org/en-US/docs/Glossary/Baseline/Compatibility)\n\n## Installation\n\n**CLI:**\n\n```sh\nnpm install -g marked\n```\n\n**In-browser:**\n\n```sh\nnpm install marked\n```\n\n## Usage\n\n### Warning: 🚨 Marked does not [sanitize](https://marked.js.org/using_advanced#options) the output HTML. Please use a sanitize library, like [DOMPurify](https://github.com/cure53/DOMPurify) (recommended), [sanitize-html](https://github.com/apostrophecms/sanitize-html) or [insane](https://github.com/bevacqua/insane) on the *output* HTML! 🚨\n\n```\nDOMPurify.sanitize(marked.parse(`<img src=\"x\" onerror=\"alert('not happening')\">`));\n```\n\n**CLI**\n\n``` bash\n# Example with stdin input\n$ marked -o hello.html\nhello world\n^D\n$ cat hello.html\n<p>hello world</p>\n```\n\n```bash\n# Print all options\n$ marked --help\n```\n\n**Node.js**\n\n```js\nimport { marked } from 'marked';\nconst html = marked.parse('# Marked in Node.js');\nconsole.log(html);\n```\n\n**Browser**\n\n```html\n<!doctype html>\n<html>\n<head>\n  <meta charset=\"utf-8\"/>\n  <title>Marked in the browser</title>\n</head>\n<body>\n  <div id=\"content\"></div>\n  <script src=\"https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js\"></script>\n  <script>\n    document.getElementById('content').innerHTML =\n      marked.parse('# Marked in the browser\\n\\nRendered by **marked**.');\n  </script>\n</body>\n</html>\n```\nor import esm module\n\n```html\n<script type=\"module\">\n  import { marked } from \"https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js\";\n  document.getElementById('content').innerHTML =\n    marked.parse('# Marked in the browser\\n\\nRendered by **marked**.');\n</script>\n```\n\n## License\n\nCopyright (c) 2018+, MarkedJS. (MIT License)\nCopyright (c) 2011-2018, Christopher Jeffrey. (MIT License)\n","publish_time":1776517946049,"_cnpm_publish_time":1776517946049,"dist-tags":{"latest":"18.2.1"}}