Markdown

Last updated Aug 20, 2026 The Markdown component is used 27 times on 16 pages.

<details>

<summary>

See all examples of pages that use Markdown

</summary>

Used 27 times.

Pages

  • <a href="https://developers.cloudflare.com/cloudflare-one/networks/connectors/cloudflare-wan/legal/3rdparty/">/cloudflare-one/networks/connectors/cloudflare-wan/legal/3rdparty/</a>-<a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/cloudflare-one/networks/connectors/cloudflare-wan/legal/3rdparty.mdx">Source</a>
  • <a href="https://developers.cloudflare.com/cloudflare-wan/legal/3rdparty/">/cloudflare-wan/legal/3rdparty/</a>-<a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/cloudflare-wan/legal/3rdparty.mdx">Source</a>
  • <a href="https://developers.cloudflare.com/waf/managed-rules/reference/cloudflare-managed-ruleset/">/waf/managed-rules/reference/cloudflare-managed-ruleset/</a>-<a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/waf/managed-rules/reference/cloudflare-managed-ruleset.mdx">Source</a>

Partials

  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/gateway/add-block-page.mdx">src/content/partials/cloudflare-one/gateway/add-block-page.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/gateway/client-notifications.mdx">src/content/partials/cloudflare-one/gateway/client-notifications.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/gateway/inspect-on-all-ports.mdx">src/content/partials/cloudflare-one/gateway/inspect-on-all-ports.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/gateway/logical-operators.mdx">src/content/partials/cloudflare-one/gateway/logical-operators.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/ssh/upload-ssh-key.mdx">src/content/partials/cloudflare-one/ssh/upload-ssh-key.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/cloudflare-one/tunnel/warp-to-tunnel-route-ips.mdx">src/content/partials/cloudflare-one/tunnel/warp-to-tunnel-route-ips.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/networking-services/tunnel-health/troubleshoot-tunnel-health.mdx">src/content/partials/networking-services/tunnel-health/troubleshoot-tunnel-health.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/ssl/aop-configure-origin.mdx">src/content/partials/ssl/aop-configure-origin.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/api-generic-create-rule-procedure.mdx">src/content/partials/waf/api-generic-create-rule-procedure.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/rulesets/api-account/step2-create-rule.mdx">src/content/partials/waf/rulesets/api-account/step2-create-rule.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/rulesets/api-account/step3-create-ruleset.mdx">src/content/partials/waf/rulesets/api-account/step3-create-ruleset.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/rulesets/api-zone/step2-create-rule.mdx">src/content/partials/waf/rulesets/api-zone/step2-create-rule.mdx</a>
  • <a href="https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/partials/waf/rulesets/api-zone/step3-create-ruleset.mdx">src/content/partials/waf/rulesets/api-zone/step3-create-ruleset.mdx</a>

</details>

This component uses marked ↗︎ to render CommonMark and various other Markdown flavours ↗︎.

Caution

This component can not use MDX ↗︎ or Astro ↗︎ features, such as optimised images in the assets directory ↗︎.

Headings should not be used with this component, as they will not receive an id, copyable link or appear in the table of contents.

Code blocks should not be used with this component, as they will not receive syntax highlighting or a copy to clipboard button.

import { Markdown } from "~/components";

<Markdown text="**foo** <br/> [bar](/style-guide/build-the-page/components/markdown/)" />

Example for variables in partials

If you have a variable that needs to be formatted in any special way (for example, it needs to be a URL, an unordered list, or something else), you can wrap the variable with the markdown component in your partial file. For example:

<Markdown text={props.foo} />

Note that you need to wrap your variable in curly braces, as well as use text= or this will not work.

Multi-line strings

The Markdown component uses the dedent ↗︎ library to remove indentation from multi-line strings.

This is because the CommonMark spec ↗︎ treats indented text as code blocks, unlike MDX ↗︎.

import { Markdown } from "~/components";

<>
  <Markdown
    text={`
    You need to purchase [Cloudflare WAN](https://www.cloudflare.com/magic-wan/) before you can purchase and use the Cloudflare One Appliance. The Cloudflare One Appliance can function as your primary edge device for your network, or be deployed in-line with existing network gear.

    You also need to purchase a Cloudflare One Appliance before you can start configuring your settings in the Cloudflare dashboard. After buying a Cloudflare One Appliance, the device will be registered with your Cloudflare account and show up in your Cloudflare dashboard.

    Contact your account representative to learn more about purchasing options for the Cloudflare One Appliance device.
    `}
    inline={false}
  />
</>

Was this helpful?

YesNo

On this page

Markdown - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/style-guide/build-the-page/components/markdown/#page","headline":"Markdown","description":"Render Markdown content inside JSX contexts.","url":"https://developers.cloudflare.com/style-guide/build-the-page/components/markdown/","inLanguage":"en","image":"https://developers.cloudflare.com/style-guide/build-the-page/components/markdown/og.png?v=4a4c679ad9bb624a","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: Show commands across npm, yarn, and pnpm. title: Package Managers image: https://developers.cloudflare.com/style-guide/build-the-page/components/package-managers/og.png?v=d28b36d29609f9c2


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.