Skip to Content
MDX

Why MDX?

MDX brings together unstructured content via Markdown, typed schemas via JSON-LD, structured data via YAML frontmatter, executable code via Javascript/Typescript, and UI components via JSX/React.

Generative AI

Most of the internet content that Large Language Models are trained on is in Markdown. Anytime you interact with ChatGPT or any other LLM, it responds using Markdown syntax to represent the rich formatting of the content.

Markdown

MDX is fully-compatible extension to Markdown, and Markdown is the native language of Large Language Models. Anytime you interact with ChatGPT or any other LLM, it responds using Markdown to represent the rich formatting of the content.

JSON-LD

JSON-LD is a lightweight linked data format that allows you to describe your data in a way that is both human-readable and machine-readable.

--- @id: https://example.com @context: https://schema.org @type: WebPage title: Example Domain --- # Example Domain This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission. [More information...](https://www.iana.org/domains/example)

While the most @context for JSON-LD is schema.org, you can use any @context that you want, and mdx.org.ai was created to extend schema.org to provide a @context for MDX file types. For example:

--- @id: https:// @context: https://mdx.org.ai @type: WebPage title: Example Domain ---

YAML

YAML is a human-friendly data serialization language that is fully compatible with JSON. YAML frontmatter is a simple way to add structured data to your Markdown files.

--- @type: https://mdx.org.ai/SlideDeck title: Example Domain ---

Javascript / Typescript

JSX / React

Last updated on