{"id":13398540,"url":"https://github.com/markedjs/marked","last_synced_at":"2026-04-01T19:55:07.651Z","repository":{"id":37236644,"uuid":"2096579","full_name":"markedjs/marked","owner":"markedjs","description":"A markdown parser and compiler. Built for speed.","archived":false,"fork":false,"pushed_at":"2025-04-28T17:19:28.000Z","size":10283,"stargazers_count":34530,"open_issues_count":22,"forks_count":3450,"subscribers_count":391,"default_branch":"master","last_synced_at":"2025-05-05T13:55:58.064Z","etag":null,"topics":["commonmark","compiler","gfm","hacktoberfest","markdown","parser"],"latest_commit_sha":null,"homepage":"https://marked.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markedjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"docs/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-07-24T13:15:51.000Z","updated_at":"2025-05-05T10:44:27.000Z","dependencies_parsed_at":"2022-07-14T07:20:38.670Z","dependency_job_id":"a4308737-bc45-4185-9b01-795d4c879acc","html_url":"https://github.com/markedjs/marked","commit_stats":{"total_commits":3100,"total_committers":194,"mean_commits":15.97938144329897,"dds":0.7258064516129032,"last_synced_commit":"5624378bd3dcc44f71dd0568deffe7e85f6f12c9"},"previous_names":["chjj/marked"],"tags_count":190,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markedjs%2Fmarked/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markedjs","download_url":"https://codeload.github.com/markedjs/marked/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601577,"owners_count":21774656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commonmark","compiler","gfm","hacktoberfest","markdown","parser"],"created_at":"2024-07-30T19:00:28.195Z","updated_at":"2025-11-12T21:43:54.107Z","avatar_url":"https://github.com/markedjs.png","language":"JavaScript","readme":"\u003ca href=\"https://marked.js.org\"\u003e\n  \u003cimg width=\"60px\" height=\"60px\" src=\"https://marked.js.org/img/logo-black.svg\" align=\"right\" /\u003e\n\u003c/a\u003e\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 \u0026 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(`\u003cimg src=\"x\" onerror=\"alert('not happening')\"\u003e`));\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\u003cp\u003ehello world\u003c/p\u003e\n```\n\n```bash\n# Print all options\n$ marked --help\n```\n\n**Browser**\n\n```html\n\u003c!doctype html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n  \u003cmeta charset=\"utf-8\"/\u003e\n  \u003ctitle\u003eMarked in the browser\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003cdiv id=\"content\"\u003e\u003c/div\u003e\n  \u003cscript src=\"https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    document.getElementById('content').innerHTML =\n      marked.parse('# Marked in the browser\\n\\nRendered by **marked**.');\n  \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\nor import esm module\n\n```html\n\u003cscript type=\"module\"\u003e\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\u003c/script\u003e\n```\n\n## License\n\nCopyright (c) 2018+, MarkedJS. (MIT License)\nCopyright (c) 2011-2018, Christopher Jeffrey. (MIT License)\n","funding_links":[],"categories":["HTML","Credits","Usage from Markdown","TypeScript","Uncategorized","JavaScript","Misc","Markdown parser","Repository","Markdown","GIT 仓库","前端开发框架及项目","👶️ Beginner","js库(Browser/Nodejs)","v0.13","Libraries","HarmonyOS","compiler","PocketPorts Packages","markdown","目录","编码与开发工具"],"sub_categories":["Uncategorized","Parsing","解析工具","其他_文本生成、文本对话","4. Notes","网页","JavaScript","Windows Manager","开发组件"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkedjs%2Fmarked","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkedjs%2Fmarked/lists"}