Skip to main content
Linked Markdown is a specification for Markdown documents with semantic frontmatter. It lets ordinary Markdown pages carry typed JSON-LD-style attributes that can be validated, queried, and loaded into RDF tooling such as Wazoo Worlds.

Example

Markdown to JSON-LD

Before: a plain Markdown page with no machine-readable structure.
After: the same content as a Linked Markdown document, where the frontmatter block parses as JSON-LD.
The frontmatter parses directly into JSON-LD attributes via extract:

What it unlocks

  • Markdown that remains pleasant for humans to write.
  • Frontmatter that machines can interpret as semantic data.
  • Compatibility with JSON-LD, RDFLib, and RDF graph workflows.
  • Shared conformance tests across language implementations.

Repositories

Install

Parse frontmatter

Use extract to read semantic attributes from a Markdown document:

RDF compatibility

The attrs data returned by extract() is valid JSON-LD, ready for loading into RDF graph stores: