Skip to main content
Markdown provides structured text that AI tools can process more efficiently than HTML, which results in better response accuracy, faster processing times, and lower token usage. Mintlify automatically generates Markdown versions of pages optimized for AI tools and external integrations.

.md URL extension

Add .md to any page’s URL to view a Markdown version.

Accept header

Send a request with Accept: text/markdown or Accept: text/plain to any page URL to receive the Markdown version instead of HTML. This is useful for AI tools and integrations that programmatically fetch documentation content.
curl -H "Accept: text/markdown" https://mintlify.com/docs/ai/markdown-export

Audience-specific content

Use the visibility component to customize content for each human and AI audiences. Content wrapped in <Visibility for="humans"> appears on the web page, but not in Markdown output. Content wrapped in <Visibility for="agents"> appears in Markdown output, but not on the web page.
<Visibility for="humans">
  Click the **Get started** button in the top-right corner to create your account.
</Visibility>

<Visibility for="agents">
  To create an account, call `POST /v1/accounts` with a valid email address.
</Visibility>

Keyboard shortcut

Press Command + C (Ctrl + C on Windows) to copy a page as Markdown to your clipboard.