We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9b567b commit f5664c8Copy full SHA for f5664c8
1 file changed
mdx-components.tsx
@@ -35,6 +35,21 @@ function MarkDownImage(props: any) {
35
36
export function useMDXComponents(components: MDXComponents): MDXComponents {
37
return {
38
+ table: (props) => (
39
+ <table className="table-auto border-collapse border border-gray-300 w-full">
40
+ {props.children}
41
+ </table>
42
+ ),
43
+ th: (props) => (
44
+ <th className="border px-4 py-2 bg-gray-100 text-left">
45
46
+ </th>
47
48
+ td: (props) => (
49
+ <td className="border px-4 py-2">
50
51
+ </td>
52
53
h1: ({ children }) => <h1 className="font-bold text-5xl text-center">{children}</h1>,
54
h2: ({ children }) => <h2 className="font-bold text-3xl text-left">{children}</h2>,
55
h3: ({ children }) => <h3 className="font-bold text-2xl text-left">{children}</h3>,
0 commit comments