File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
} from "./mdx-client/annotations"
15
15
import { Preview } from "./mdx-client/preview"
16
16
import { InlineCode } from "./mdx-client/inline-code"
17
+ import type { MDXComponents } from "mdx/types"
17
18
18
19
export {
19
20
Code ,
@@ -31,7 +32,7 @@ export {
31
32
PreviewSlot ,
32
33
}
33
34
34
- export const CH = {
35
+ export const CH : MDXComponents = {
35
36
Code,
36
37
Section,
37
38
SectionLink,
Original file line number Diff line number Diff line change @@ -3,7 +3,12 @@ import { CodeAnnotation } from "../smooth-code"
3
3
import { getColor , transparent , ColorName } from "../utils"
4
4
5
5
export function Annotation ( ) {
6
- return "error: code hike remark plugin not running or annotation isn't at the right place"
6
+ return (
7
+ < div >
8
+ "error: code hike remark plugin not running or
9
+ annotation isn't at the right place"
10
+ </ div >
11
+ )
7
12
}
8
13
9
14
export const annotationsMap : Record <
You can’t perform that action at this time.
0 commit comments