-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdx-components.ts
56 lines (55 loc) · 1.52 KB
/
mdx-components.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { A as a } from "@/components/a";
import { P as p } from "@/components/p";
import { H1 as h1 } from "@/components/h1";
import { H2 as h2 } from "@/components/h2";
import { H3 as h3 } from "@/components/h3";
import { OL as ol } from "@/components/ol";
import { UL as ul } from "@/components/ul";
import { LI as li } from "@/components/li";
import { HR as hr } from "@/components/hr";
import { Code as code } from "@/components/code";
import { Tweet } from "@/components/tweet";
import { Image } from "@/components/image";
import { Figure } from "@/components/figure";
import { Snippet } from "@/components/snippet";
import { Caption } from "@/components/caption";
import { Callout } from "@/components/callout";
import { YouTube } from "@/components/youtube";
import { Ref, FootNotes, FootNote } from "@/components/footnotes";
import { Blockquote as blockquote } from "@/components/blockquote";
import { WithCaption } from "./components/withCaption";
import { TableWithEditorCells } from "./components/tableWithEditorCellsProxy";
import { CustomDSLInput } from "./components/complexCodeEditorProxy";
export function useMDXComponents(components: {
[component: string]: React.ComponentType;
}) {
return {
...components,
a,
h1,
h2,
h3,
p,
ol,
ul,
li,
hr,
code,
pre: Snippet,
img: Image,
blockquote,
Tweet,
Image,
Figure,
Snippet,
Caption,
Callout,
YouTube,
Ref,
FootNotes,
FootNote,
WithCaption,
CustomDSLInput,
TableWithEditorCells,
};
}