Markdown
This component uses marked
↗ to render CommonMark and various other Markdown flavours ↗.
bar
import { Markdown } from "~/components";
<Markdown text="**foo** <br/> [bar](/style-guide/components/markdown/)" />
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.
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 ↗.
You need to purchase Magic WAN before you can purchase and use the Magic WAN Connector. The Magic WAN Connector 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 Magic WAN Connector before you can start configuring your settings in the Cloudflare dashboard. After buying a Magic WAN Connector, 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 Magic WAN Connector device.
import { Markdown } from "~/components";
<> <Markdown text={` You need to purchase [Magic WAN](https://www.cloudflare.com/magic-wan/) before you can purchase and use the Magic WAN Connector. The Magic WAN Connector 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 Magic WAN Connector before you can start configuring your settings in the Cloudflare dashboard. After buying a Magic WAN Connector, 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 Magic WAN Connector device. `} inline={false} /></>
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark