markdown-it VS PEG.js

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

markdown-it

Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed (by markdown-it)

PEG.js

PEG.js: Parser generator for JavaScript (by pegjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
markdown-it PEG.js
55 8
16,957 4,726
1.7% 1.0%
8.5 0.0
11 days ago over 2 years ago
JavaScript JavaScript
MIT License 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.

markdown-it

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 2024-03-14.
  • Creating excerpts in Astro
    4 projects | dev.to | 14 Mar 2024
    Parse it into HTML using markdown-it
  • Creating an Automated Profile README using Nodejs and GitHub Actions
    5 projects | dev.to | 26 Feb 2024
    We can easily use markdown-it, a markdown parser for rendering a mix of JavaScript and plain text into a markdown file. To get started, kindly create a new directory with the following file structure:
  • Construindo um Painel de Blog Dinâmico com Next.js
    6 projects | dev.to | 1 Dec 2023
    github.com/markdown-it/markdown-it - markdown biblioteca.
  • dd
    6 projects | /r/u_vjvpundjke | 11 May 2023
    markdown-it - Markdown parser done right. Fast and easy to extend.
  • How to convert markdown to json in react js
    2 projects | /r/reactjs | 31 Dec 2022
    Maybe Markdown It? link
  • My Journey into Open Source
    3 projects | dev.to | 28 Dec 2022
    I have found that when you start working on just a single project, it will naturally lead to other opportunities (e.g. upstream libraries, similar projects, etc). When I started working on MarkBind, a static site generator, I was also making occasional contributions to some of the plugins for markdown-it, the Markdown parser that MarkBind uses. I was fixing bugs in MarkBind by discovering the root causes in the upstream libraries and pushing fixes there to hopefully benefit other projects as well. I even made a pull request to fix the documentation that I was reading on an MDN page for : The Table Body element, something that broke the server-side rendering of MarkBind.
  • Remembering how to make a website without React
    5 projects | dev.to | 28 Dec 2022
    Next, I setup a markdown parser, markdown-it. I then created another Mustache lambda for converting markdown to HTML and injecting it in the template output. I also ran the Markdown string through the Mustache parser, so I could use my “media” lambda inside markdown. This is where things got gross in the code.
  • Sweeter searches with Pagefind
    7 projects | dev.to | 8 Dec 2022
    In Eleventy, a footnote’s HTML begins like this if one is using the most typical footnotes-ready Markdown setup, i.e., the markdown-it parser combined with the markdown-it-footnote plugin:
  • Want to create attractive, interactive docs? Use these amazing documentation tools and examples
    11 projects | dev.to | 2 Dec 2022
    At its core it is an extension to the popular open-source Markdown library markdown-it. Plugins for markdown parsers and preprocesseors are an avenue for more innovation of this nature.
  • Rendering Markdown with Enhance
    3 projects | dev.to | 18 Nov 2022
    Enhance does not natively support rendering markdown into HTML, which is out of scope for the project. Instead, we rely on markdown-it, an excellent JavaScript markdown parser that is endlessly configurable with plugins. As we use markdown in many different projects, we’ve created a node module called, Arcdown, which packages together our preferred conventions for parsing markdown files.

PEG.js

Posts with mentions or reviews of PEG.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-31.
  • How do you start your own programming language?
    3 projects | /r/learnprogramming | 31 Oct 2022
    Here's a javascript library that lets you generate your own language that compiles to Javascript. https://pegjs.org/ It's a compiler generator. You can either use the command line tool and feed it your grammar (You have to write that) and use the generated parser.js which can then run your program, or use peg.js as a dependency and generate your parser at run time before feeding it your program.
  • Deno in 2022
    3 projects | /r/node | 9 Jul 2022
    The library they're having trouble with is the most common parser generator in javascript, peg.js, which has about 80% of the market

What are some alternatives?

When comparing markdown-it and PEG.js you can also consider the following projects:

marked - A markdown parser and compiler. Built for speed.

remark - markdown processor powered by plugins part of the @unifiedjs collective

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

peggy - Peggy: Parser generator for JavaScript

Jison - Bison in JavaScript.

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

Chevrotain - Parser Building Toolkit for JavaScript

csv-parser - Streaming csv parser inspired by binary-csv that aims to be faster than everyone else

ohm - A library and language for building parsers, interpreters, compilers, etc.

parse-json - Parse JSON with more helpful errors