mirror of
https://github.com/fergalmoran/onearmy-community-platform.git
synced 2025-12-24 02:30:50 +00:00
18 lines
522 B
Markdown
18 lines
522 B
Markdown
---
|
|
id: mdx
|
|
title: Powered by MDX
|
|
---
|
|
|
|
You can write JSX and use React components within your Markdown thanks to [MDX](https://mdxjs.com/).
|
|
|
|
export const Highlight = ({children, color}) => ( <span style={{
|
|
backgroundColor: color,
|
|
borderRadius: '2px',
|
|
color: '#fff',
|
|
padding: '0.2rem',
|
|
}}>{children}</span> );
|
|
|
|
<Highlight color="#25c2a0">Docusaurus green</Highlight> and <Highlight color="#1877F2">Facebook blue</Highlight> are my favourite colors.
|
|
|
|
I can write **Markdown** alongside my _JSX_!
|