File tree 1 file changed +16
-8
lines changed
1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 4
4
< title > Code Hike in the browser</ title >
5
5
< link
6
6
rel ="stylesheet "
7
- href ="https://esm.sh/@code-hike/mdx@0.4.0 -next.1 /dist/index.css "
7
+ href ="https://esm.sh/@code-hike/mdx@0.5.2 -next.2 /dist/index.css "
8
8
/>
9
9
</ head >
10
10
< body >
13
13
< script type ="module ">
14
14
import React from "https://esm.sh/react"
15
15
import ReactDOM from "https://esm.sh/react-dom"
16
- import { evaluate } from "https://esm.sh/@mdx-js/mdx?dev "
16
+ import { evaluate } from "https://esm.sh/@mdx-js/mdx?bundle "
17
17
import * as runtime from "https://esm.sh/react/jsx-runtime.js"
18
18
19
- import { remarkCodeHike } from "https://esm.sh/@code-hike/mdx@0.4.0 -next.1 /dist/index.browser.mjs"
20
- import { CH } from "https://esm.sh/@code-hike/mdx@0.4.0 -next.1 /components"
21
- import theme from "https://esm.sh/[email protected] /themes/nord .json" assert { type : "
json "
}
19
+ import { remarkCodeHike } from "https://esm.sh/@code-hike/mdx@0.5.2 -next.2 /dist/index.browser.mjs?bundle "
20
+ import { CH } from "https://esm.sh/@code-hike/mdx@0.5.2 -next.2 /components"
21
+ import theme from "https://esm.sh/[email protected] /themes/dracula .json" assert { type : "
json "
}
22
22
23
23
const mdx = `# Test
24
24
25
- ~~~python hello.py mark=1[22:30]
26
- print("Rendered with Code Hike")
27
- ~~~
25
+ <CH.Code>
26
+
27
+ ~~~python hello.py mark=1[22:30]
28
+ print("Rendered with Code Hike")
29
+ ~~~
30
+
31
+ ~~~js hello.js mark=1[23:36]
32
+ console.log("Rendered with Code Hike")
33
+ ~~~
34
+
35
+ </CH.Code>
28
36
`
29
37
30
38
const { default : Content } = await evaluate ( mdx , {
You can’t perform that action at this time.
0 commit comments