Markdown and MDX

Last updated Aug 20, 2026 Cloudflare docs pages are authored in MDX, which is Markdown extended with JSX components. Every page is a .mdx file with a frontmatter block at the top, followed by the body content.

Body content

The body is standard Markdown. Use it for headings, paragraphs, lists, tables, links, and code:

## A heading

A paragraph with a [link](/style-guide/) and `inline code`.

- A list item
- Another list item

Refer to the formatting section for the rules that govern how to write each of these elements.

Import components

Components add formatting that plain Markdown cannot, such as tabs, asides, and collapsible sections. Import them from ~/components after the frontmatter block, then add them anywhere in the body:

---
title: Example page
---

import { Aside } from "~/components";

<Aside type="note">This is an aside.</Aside>

Refer to the components section for the props and requirements of each component.

Escape special characters

MDX treats {, }, <, and > as syntax. When these characters are part of your content rather than code, wrap them in backticks so they render literally:

Set the value to `{"key": "value"}`.

Characters inside a fenced code block are already literal and do not need escaping.

Code blocks

Open a fenced code block with a lowercase language identifier so the code is highlighted correctly. Use txt for generic output that has no language:

```js
const value = 1;
```

```txt
Deployment complete.
```

Was this helpful?

YesNo

On this page

Markdown and MDX - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/build-the-page/markdown-and-mdx/#page","headline":"Markdown and MDX","description":"Cloudflare docs pages are authored in MDX, Markdown extended with components. Learn the body syntax, importing components, and escaping special characters.","url":"https://developers.cloudflare.com/style-guide/build-the-page/markdown-and-mdx/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/build-the-page/markdown-and-mdx/og.png?v=a12d8a7f59e5db8b","dateModified":"2026-08-20","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: How the Cloudflare team runs the docs site itself, covering the framework, redirects, images, metadata, and AI consumability. title: How we docs image: https://developers.cloudflare.com/style-guide/how-we-docs/og.png?v=d53f6b8e1ef49ea0


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/style-guide/llms.txt
Use this file to discover all available pages before exploring further.