Marked
Web framework / library · Free
A Markdown parser for JavaScript: it converts text to HTML for content applications; output sanitization is configured separately.
Also known as: markedjs/marked; marked; markdown-parser; markedjs

What you can use for free
Code and local use under MIT.
Paid features and costs
Computing resources, self-hosting, and external services are paid for separately if used.
Access and limitations
Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.
Use cases
- Display Markdown content in a web interface
- Convert Markdown to HTML and connect separate output sanitization
Example workflow
A possible workflow; this is not a report of hands-on testing.
Display Markdown content in a web interface.
Before you start
- Web application source code and the intended workflow.
- The project's framework and runtime version.
Steps
- Define acceptable Markdown input and rendering options.
- Convert Markdown to HTML and connect separate output sanitization.
- Add real data and error handling; check the production build.
Check your result
- The workflow works after a page refresh and with invalid data.
- The bundle, server rendering, and supported browsers suit the project.
Choosing Marked
Display Markdown content in a web interface
Choose this when
- Display Markdown content in a web interface
- Convert Markdown to HTML and connect separate output sanitization
Requirements
- Before inserting output from untrusted Markdown, sanitize the HTML; use a supported Node/browser version.
Things to consider
- Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
- Terms of use: Marked code is MIT with applicable copyright/permission notices. The root LICENSE also contains separate Markdown/John Gruber notices with three BSD-style conditions, including a prohibition on endorsement.
- Converting Markdown alone does not make HTML safe; EOL Node versions may stop working.
- The root LICENSE includes MIT Marked as well as separate Markdown/John Gruber redistribution/endorsement notices.
Frequently asked questions
What can you use for free in Marked?
Code and local use under MIT.
What additional costs might arise with Marked?
Computing resources, self-hosting, and external services are paid for separately if used.
What terms of use matter for Marked?
Marked code is MIT with applicable copyright/permission notices. The root LICENSE also contains separate Markdown/John Gruber notices with three BSD-style conditions, including a prohibition on endorsement.
How do you get started with Marked?
Define acceptable Markdown input and rendering options. Convert Markdown to HTML and connect separate output sanitization. Add real data and error handling; check the production build.
Why must Marked's HTML be sanitized separately?
Marked converts Markdown into HTML and runs in browsers, servers, and the CLI. It does not sanitize output: the README recommends applying a separate sanitization library to the result. Extensions customize parsing but do not replace this protection. Node support is limited to current/LTS releases, and browser support to Baseline Widely Available.
License
Marked code is MIT with applicable copyright/permission notices. The root LICENSE also contains separate Markdown/John Gruber notices with three BSD-style conditions, including a prohibition on endorsement.
MIT — permissive license
The Marked implementation, copyright MarkedJS and Christopher Jeffrey.
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsBSD3-Clause — notices and no implied endorsement
Markdown/John Gruber notices separately included in the root LICENSE.
Use, modification, and distribution are permitted while retaining the copyright, conditions, and warranty disclaimer. The rights holder's and contributors' names cannot be used to promote a derivative product without permission. These are code terms, not a promise of free hosting.
License termsTechnologies and topics
- Marked
- web
- Development