commonmark-spec VS mdx

Compare commonmark-spec vs mdx and see what are their differences.

commonmark-spec

CommonMark spec, with reference implementations in C and JavaScript (by commonmark)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
commonmark-spec mdx
48 99
4,832 16,811
0.4% 1.5%
6.9 8.7
3 months ago 8 days ago
Python 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.

commonmark-spec

Posts with mentions or reviews of commonmark-spec. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-06.
  • How to add a man page to your Ruby project, using kramdown-man and markdown
    2 projects | /r/ruby | 6 Dec 2023
    Edit: this is because GitHub uses cmark-gfm, which is a fork of cmark, which implements the CommonMark variant of markdown. Looks like CommonMark still doesn't support definition lists. :(
  • How do you host documentation for your spouse or other users?
    4 projects | /r/selfhosted | 6 Dec 2023
    BookStack dev here. There's no specific "import" option but you can use the Markdown editor in BookStack and paste in your Markdown content there. The API is essentially just an endpoint to accept the same kind of data, for of course you could automate against the API for batch import. One thing to keep in mind is that BookStack markdown support is fairly tightly scoped to (commonmark + tables + tasklists), although HTML within MD is supported.
  • On why Markdown is not a good, or even a half-decent, markup language
    9 projects | news.ycombinator.com | 19 Jul 2023
    >A single canonical reference

    https://commonmark.org/

  • Get ready for Bear 2 - We have a quick blog post with some important details and ways you can get notified once it's out!
    1 project | /r/bearapp | 6 Jul 2023
    Typically with major new releases of software, when the number left of the dot (e.g. 2.0) increases, it’s shipped as a separate product. Not always, but generally. The Bear folks can speak for themselves but IIRC a lot of the code was refactored / rewritten to support, for example, CommonMark. So, under the hood, it’s literally brand new in some respects.
  • Best website to write a rulebook for ttrpgs
    3 projects | /r/rpg | 17 May 2023
    I use Obsidian (https://obsidian.md) for a lot of things, including my RPG stuff, and there are options for exporting things as PDFs. It’s great for getting organized and doing research, but I would use other tools for long-form writing and layout. What I like about Obsidian though is that everything is done in Markdown (https://commonmark.org) and I can use Pandoc (https://pandoc.org) to transform the source to whatever I need. The caveat is that Obsidian uses a flavor of Markdown with some non-standard extensions, so a pure Markdown editor like Typora (https://typora.io) might be a better choice depending on your needs.
  • What is the most minimal, strictest variant of Markdown?
    1 project | /r/Markdown | 18 Apr 2023
  • How to display an image
    1 project | /r/gohugo | 11 Apr 2023
    yes, this is the "inventor" of markdown and those rules will always work. Hugo uses something called "Commonmark" which is developed on top of the original markdown. But the original rules will always work too.
  • Lightweight Markup for Ukrainian Texts?
    1 project | /r/Ukrainian | 10 Apr 2023
    Reddit and many other sites support Markdown as an easy way to add emphasis, links, headings, etc. Markdown does not contain any keywords, as it is intended to be language-independent. However, Markdown syntax makes heavy use of square brackets [] and other characters that are difficult to type with an Ukrainian keyboard layout, e.g., the backtick `.
  • I wish Asciidoc was more popular
    4 projects | /r/programming | 6 Feb 2023
    Check out commonmark, that is the Markdown standard supported by numerous converters including pandoc.
  • I wrote a markdown to html converter
    6 projects | /r/golang | 1 Feb 2023
    And if this is an exercise into that you can use a Markdown spec like CommonMark which is the spec Reddit and a variety of other sites use.

mdx

Posts with mentions or reviews of mdx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-02.
  • How to Enhance Content with Semantify
    4 projects | dev.to | 2 Mar 2024
    Semantify was made for content creators, marketers, and anyone looking to enhance their long-form written content. Currently only supporting MDX-based content, It automates the enrichment of MDX blog posts by adding AI-generated Q&A sections that summarize the content, and recommendations for semantically similar posts. This not only makes the content more accessible and engaging but also helps in establishing deeper connections between different posts, ultimately keeping the reader engaged for longer periods.
  • MDX – use JSX in your Markdown content
    1 project | news.ycombinator.com | 13 Feb 2024
  • No CMS? Writing Our Blog in React
    6 projects | news.ycombinator.com | 12 Feb 2024
    https://mdxjs.com/

    > We thought this would be a no-brainer and that there would be some CMS/SSG libraries out there that made this Markdown conversion process easy and facilitated integration with any number of frontend frameworks.

    You thought correct:

    - NextJS MDX integration: https://nextjs.org/docs/pages/building-your-application/conf...

  • Introducing Content Collections
    4 projects | dev.to | 18 Jan 2024
    The example above uses react-markdown, but you can use any library you want to render the markdown content. You can also use a transform function to modify the markdown content during the build process. Here is an example that uses MDX to compile the markdown content.
  • Creating a static Next.js 14 Markdown Blog - An Adventure
    3 projects | dev.to | 25 Dec 2023
    MDX is a js library that allows us to import a markdown file as a react component and use it anywhere.
  • Building Stunning Docs: Diving Deep into Docusaurus Customization
    1 project | dev.to | 19 Nov 2023
    /blog/ - This directory contains all the markdown files, of your site blogs, you can simply add a new blog by using markdown, or simply remove a blog file by deleting its file, you can combine the markdown with MDX, resulting a well-written blog post.
  • Show HN: Create email templates with Markdown and JSX
    1 project | news.ycombinator.com | 23 Oct 2023
    Hey HN!

    This is a little personal project I've been hacking on for the past ~week, somewhat inspired by this blog post [0] ("My Wonderful HTML Email Workflow").

    Basically I just wanted an easy way to create email templates in MDX [1] (Markdown + JSX), using React Email [2] components.

    It's still a bit of a work in progress (and a bit slow at the moment) but wanted to share in case anyone else finds it interesting!

    [0] https://www.joshwcomeau.com/react/wonderful-emails-with-mjml...

    [1] https://mdxjs.com/

    [2] https://react.email/

  • Nota is a language for writing documents, like academic papers and blog posts
    14 projects | news.ycombinator.com | 19 Oct 2023
  • WYSIWYG for MDX?! Introducing Vrite's Hybrid Editor
    4 projects | dev.to | 18 Oct 2023
    That’s why formats like Markdown (MD) and MDX (MD with support for JSX) are so popular for use cases like documentation, knowledge bases, or technical blogs. They allow you to use any kind of custom formatting or elements and then process the content for publishing. On top of that, they’re great for implementing a docs-as-code approach, where your documentation lives right beside your code (i.e. in a Git repo).
  • Build a blog app with new Next.js 13 app folder and Contentlayer
    2 projects | dev.to | 5 Apr 2023
    MDX

What are some alternatives?

When comparing commonmark-spec and mdx you can also consider the following projects:

pandoc - Universal markup converter

next-mdx-remote - Load mdx content from anywhere through getStaticProps in next.js

kramdown - kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.

remark-gfm - remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)

marktext - 📝A simple and elegant markdown editor, available for Linux, macOS and Windows.

markdoc - A powerful, flexible, Markdown-based authoring framework.

markdown-it-katex - Add Math to your Markdown with a KaTeX plugin for Markdown-it

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

Joplin - Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.

emoji-shortcodes-for-markdown - 1000+ Emoji Finder app for Markdown, GitHub, Campfire, Slack, Discord and more...

rehype-sanitize - plugin to sanitize HTML

eleventy 🕚⚡️ - A simpler site generator. Transforms a directory of templates (of varying types) into HTML.