marked VS markdown-it

Compare marked vs markdown-it and see what are their differences.


A markdown parser and compiler. Built for speed. (by markedjs)


Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed (by markdown-it)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
marked markdown-it
23 24
26,434 12,501
1.1% 1.4%
9.4 5.7
7 days ago about 2 months ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of marked. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-02.


Posts with mentions or reviews of markdown-it. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-12.
  • Tale of the Tape: Highlight.js vs Shiki
    2 projects | | 12 Nov 2021
    This post will compare two popular packages that work with markdown-it for syntax highlighting in JavaScript, highlight.js, and shiki.
  • Lab #6: Experience a mature SSG project
    3 projects | | 30 Oct 2021
    This week lab, we got a chance to play around with Docusaurus. You can check out my Docusaurus and GitHub Pages hosted site. It was fast and straight forward to set up a Docusaurus project, the doc is crystal clear. During the time exploring Docusaurus, I want to have full markdown support for my project and syntax Highlighting for code blocks base on what Docusaurus did. After I was allow to use a proper library to have full markdown support for my website, I found markdown-it a library that fully help my project to implement full makrdown support. My code transform to this:
  • Lab 6 - Adding Docusaurus features
    2 projects | | 30 Oct 2021
    I decided to use a third party package to have the full markdown feature + highlight with highlight.js. Issue#24
  • Open Source: Copy a Cool Feature from Docusaurus
    1 project | | 29 Oct 2021
    I searched "node markdown to html" and I found markdown-it. It said "Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed(GitHub repo)". It was perfect for mine, so I installed it and implemented their "classic" way on my main js file.
  • OSD600 - Adding new feature from Docusaurus
    3 projects | | 29 Oct 2021
    Thanks for the existence of markdown-it - a help full Markdown parser which provides me with full Markdown support just in 2-3 lines of code.
  • Prototype: Markdown and static assets support for SSG 🛠
    3 projects | | 29 Oct 2021
    While working on the feature for static assets, I realized that I couldn't find a way to customize (the packages used for markdown support) to refer to the newly created /assets folder. As such, I had to develop a workaround by using regex, and in the end, managed to make it work.
  • Checking out Docusaurus
    5 projects | | 29 Oct 2021
    The first is full markdown support. I used markdown-it to do this and it greatly simplified my code while providing the complete markdown support that I needed (PR link).
  • Adding Markdown Support to a Static Site Generator
    3 projects | | 29 Oct 2021
    For my own static site generator, Jellybean, one feature of Docusaurus that I wanted to implement was full markdown support. This is because my static site generator previously only had partial markdown support, which is not very user-friendly. Thankfully, there are a some great open-source libraries which can provide full markdown support and I decided to use markdown-it for my project.
  • Static Site Generator - Support static files
    4 projects | | 28 Oct 2021
    While finding a way to parse image syntax, I decided to fully implement support for markdown. I used markdown-it and highlight for this task.
  • Exploring Docusaurus and enhancing cli-ssg
    3 projects | | 28 Oct 2021
    The markdown parsing was manually coded, and I realized that implementing the full syntax by hand would be redundant as we can use open source projects that have already solved this problem. A popular project that was perfect for this scenario is markdown-it which is a full fledged markdown parsing library, available through npm.

What are some alternatives?

When comparing marked and markdown-it you can also consider the following projects:

remark - remark is a popular tool that transforms markdown with plugins. These plugins can inspect and change your markup. You can use remark on the server, the client, CLIs, deno, etc.

nearley - 📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

PEG.js - PEG.js: Parser generator for JavaScript

Jison - Bison in JavaScript.

js-yaml - JavaScript YAML parser and dumper. Very fast.

Highlight.js - JavaScript syntax highlighter with language auto-detection and zero dependencies.

docx-to-pdf-on-AWS-Lambda - Microsoft Word doc/docx to PDF conversion on AWS Lambda using Node.js

strip-json-comments - Strip comments from JSON. Lets you use comments in your JSON files!

parse-json - Parse JSON with more helpful errors

Jinja2 - A very fast and expressive template engine.

json-query - Retrieves values from JSON objects for data binding