Skip to content

Commit afeb4b3

Browse files
committed
Add dialog
1 parent 338539b commit afeb4b3

File tree

10 files changed

+972
-49
lines changed

10 files changed

+972
-49
lines changed

packages/mdx/dev/content/expand.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<CH.Code>
2+
3+
```json package.json
4+
{
5+
"name": "package.json"
6+
}
7+
```
8+
9+
```js pages/index.js
10+
function IndexPage() {
11+
return 1
12+
}
13+
```
14+
15+
```js pages/post/[slug].js
16+
function PostPage() {
17+
return 1
18+
}
19+
```
20+
21+
---
22+
23+
```js pages/alpha.ts
24+
function AlphaPage() {
25+
return 1
26+
}
27+
```
28+
29+
```css src/styles.css
30+
.alpha {
31+
color: red;
32+
}
33+
```
34+
35+
```js src/comp.js
36+
function AlphaPage() {
37+
return <div className="alpha">1</div>
38+
}
39+
```
40+
41+
</CH.Code>

packages/mdx/dev/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "fs"
22
import { remarkCodeHike } from "../src/index"
33
import { compile } from "@mdx-js/mdx"
4-
import theme from "shiki/themes/github-light.json"
4+
import theme from "shiki/themes/nord.json"
55
import { withDebugger } from "mdx-debugger"
66

77
export async function getFiles() {

packages/mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@types/diff": "^5.0.2",
5858
"@types/node": "^17.0.21",
5959
"@types/node-fetch": "^2.6.1",
60-
"@types/react": "^17.0.39",
60+
"@types/react": "17.0.45",
6161
"autoprefixer": "^9.8.2",
6262
"click-to-react-component": "^1.0.8",
6363
"cssnano": "^4.1.10",

0 commit comments

Comments
 (0)