fix: inline table style

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-12 12:23:11 +08:00
parent 4263658e32
commit 5837bd4089
+11
View File
@@ -127,6 +127,17 @@ export const parseHtml = async (
language: language.toLowerCase(),
})
},
table: ({ node, ...props }) => createElement(
"div",
{
className: "w-full overflow-x-auto",
},
createElement("table", {
...props,
className: tw`w-full my-0`,
}),
),
},
}),
}