Skip to content

Commit dd6d9ed

Browse files
committed
docusarus-raw-mdx - snapshot test and feature-format-matrix doc
1 parent 9c1f8f9 commit dd6d9ed

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
format: docusaurus-md
3+
---
4+
5+
```{=mdx}
6+
export const Highlight = ({children, color}) => (
7+
<span
8+
style={{
9+
backgroundColor: color,
10+
borderRadius: '2px',
11+
color: '#fff',
12+
padding: '0.2rem',
13+
}}>
14+
{children}
15+
</span>
16+
);
17+
```
18+
19+
<Highlight color="#25c2a0">Docusaurus GREEN</Highlight> and <Highlight color="#1877F2">Rams blue</Highlight> are my favorite colors.
20+
21+
I can write **Markdown** alongside my _JSX_!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
format: docusaurus-md
3+
---
4+
5+
6+
7+
8+
````mdx-code-block
9+
export const Highlight = ({children, color}) => (
10+
<span
11+
style={{
12+
backgroundColor: color,
13+
borderRadius: '2px',
14+
color: '#fff',
15+
padding: '0.2rem',
16+
}}>
17+
{children}
18+
</span>
19+
);
20+
````
21+
22+
<Highlight color="#25c2a0">Docusaurus GREEN</Highlight> and
23+
<Highlight color="#1877F2">Rams blue</Highlight> are my favorite colors.
24+
25+
I can write **Markdown** alongside my *JSX*!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
format: docusaurus-md
3+
_quarto:
4+
tests:
5+
docusaurus-md:
6+
ensureSnapshotMatches: true
7+
---
8+
9+
```{=mdx}
10+
export const Highlight = ({children, color}) => (
11+
<span
12+
style={{
13+
backgroundColor: color,
14+
borderRadius: '2px',
15+
color: '#fff',
16+
padding: '0.2rem',
17+
}}>
18+
{children}
19+
</span>
20+
);
21+
```
22+
23+
<Highlight color="#25c2a0">Docusaurus GREEN</Highlight> and <Highlight color="#1877F2">Rams blue</Highlight> are my favorite colors.
24+
25+
I can write **Markdown** alongside my _JSX_!

0 commit comments

Comments
 (0)