commonmark-spec VS djot

Compare commonmark-spec vs djot 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 djot
48 43
4,832 1,576
0.4% -
6.9 5.8
3 months ago 2 months ago
Python HTML
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.

djot

Posts with mentions or reviews of djot. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-21.
  • LaTeX and Neovim for technical note-taking
    10 projects | news.ycombinator.com | 21 Feb 2024
    I know this doesn't solve your problem directly, but I recommend people to try out Djot[0], a markup language from the author of CommonMark.

    Djot has a single well-defined spec, and most of the basic formatting has the same syntax as (a) Markdown, so switching is pretty painless. It has as a main goal to be legible and visually aesthetic as-is, just like Markdown.

    What Djot adds is its _predictability_. Nested formatting, precedence order, line breaks behavior, nested blocks, mixed inline and block formatting, custom attributes are all laid out precisely in the spec in a thought-out manner. Till this day I still can't remember how to put line break within a list item in Markdown (and I'm sure there're more than one way).

    [0]: https://djot.net/

  • Pandoc 3.1.12 Released
    1 project | news.ycombinator.com | 16 Feb 2024
  • Pandoc
    17 projects | news.ycombinator.com | 28 Jan 2024
    Worth noting that the author has also created a markup language, djot.

    https://github.com/jgm/djot

  • Augmenting the Markdown Language for Great Python Graphical Interfaces
    2 projects | news.ycombinator.com | 21 Jan 2024
    Every time I see people doing something with Markdown, I wish they just replace it with support for Djot[0] instead. It is a Markdown alternative by the creator of Pandoc and CommonMark that fixes all of the most egregious mistakes, while being legible and visually pleasant as-is. It is also syntactically similar to Markdown, which should ease adoption.

    [0] https://github.com/jgm/djot

  • Djot is a light markup syntax
    3 projects | news.ycombinator.com | 1 Jul 2023
  • Beyond Markdown
    2 projects | news.ycombinator.com | 1 Jul 2023
  • HELP!!! Stuck forever
    1 project | /r/neovim | 21 May 2023
    Are you using markdown? It might make sense to look at 'djot' as well: https://djot.net/; it's a new 'light' markup language conceived as a successor to commonmark; development is led by none other than John McFarlane (author of pandoc, & also led commonmark standardization) Djot makes it really easy to attach arbitrary attributes to block elements as well as inline elements; and the parser records source positions in the output -- all of which makes it really convenient keeping track of elements changing position or value.
  • Is there a way to send data from neovim in real-time to other applications? Want to create a neovim qmk bridge.
    1 project | /r/neovim | 20 May 2023
    I have a simple script that sends a djot buffer (https://github.com/jgm/djot) to the parser, if there's a change, on the CursorHold event.
  • wiki.vim v0.6 is released
    3 projects | /r/neovim | 6 Apr 2023
    Since you mentioned you were considering moving to CommonMark, have you had time to look into Djot (also by jpm)? Djot is meant to be easier to parse, and I'm planning to write a tree-sitter grammar for it.
  • Typst, a modern LaTeX alternative written in Rust, is now open source
    12 projects | /r/rust | 21 Mar 2023
    Another recent development here is https://djot.net/ (by the pandoc author). It indeed thoroughly solves both:

What are some alternatives?

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

pandoc - Universal markup converter

typst - A new markup-based typesetting system that is powerful and easy to learn.

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

mdBook - Create book from markdown files. Like Gitbook but implemented in Rust

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

Zato - ESB, SOA, REST, APIs and Cloud Integrations in Python

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

scroll - Tools for thought. An extensible alternative to Markdown.

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

pdfsyntax - A Python library to inspect and modify the internal structure of a PDF file

rehype-sanitize - plugin to sanitize HTML

pdfquery - A fast and friendly PDF scraping library.