↓Skip to main content

Notes on Modern Markdown

·2 mins

Markdown has become the standard syntax for formatted text. Use Markdown documents for any kind of written content. Markdown is a supported text format for:

  • Content Management Systems like Ghost
  • Note-taking apps like Obsidian
  • Modern editors for code and technical documentation
  • Current versions of the LibreOffice office suite
  • Working with LLMs

Many products render Markdown into other formats, such as HTML. Jupyter notebooks for interactive computation and static Website generators like Hugo and Zensical use Markdown as the source format for content.

Structured data formats like JSON can include Markdown documents as strings, since Markdown uses plain-text. This means that any modern data storage system will store Markdown documents.

All Markdown files use the file extension .md. There is no way to distinguish between stored CommonMark, GFM and Python Markdown documents. Content in the CommonMark format may be served with the variant MIME type text/markdown; variant=CommonMark.

Extensions to Markdown #

The Markdown format supports extensions and embedded elements, as well as links to assets like images. These extensions are widely used:

There is no published standard for frontmatter. It is a set of conventions, and different tools may implement frontmatter in different ways.

Known Issues with Markdown #

  • The CommonMark standard does not specify tables and other important elements. This means that many Markdown documents use GFM syntax.
  • Tools that assume that Markdown documents use CommonMark and GFM syntax may fail on Python Markdown documents.
  • There is no published standard for frontmatter. Different tools may implement frontmatter in different and incompatible ways.
  • Content from humans often contain formatting errors.
  • Internal and external links may be invalid or broken. Use rumdl to check internal and anchor links, and a tool such as lychee to check the links to external sites.

Use rumdl to lint and format Markdown files. It supports the popular variations of Markdown, including CommonMark, Obsidian, GFM and Python Markdown.