Commit dd6d9ed 1 parent 9c1f8f9 commit dd6d9ed Copy full SHA for dd6d9ed
File tree 3 files changed +71
-0
lines changed
dev-docs/feature-format-matrix/qmd-files/format/docusaurus/raw-mdx-block
tests/docs/smoke-all/2024/01/19/docusaurus
3 files changed +71
-0
lines changed Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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 number Diff line number Diff line change
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_ !
You can’t perform that action at this time.
0 commit comments