From d815c98a230fffdd042c7a2b8e4a30a19fee6d40 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 10:29:38 +0200 Subject: [PATCH 1/2] feat: Add table node with default class attribute --- app/markdoc/nodes.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/markdoc/nodes.tsx b/app/markdoc/nodes.tsx index 4796dde..6287a2b 100644 --- a/app/markdoc/nodes.tsx +++ b/app/markdoc/nodes.tsx @@ -51,6 +51,16 @@ const nodes = { }, }, }, + table: { + ...defaultNodes.table, + attributes: { + ...defaultNodes.table.attributes, + class: { + type: String, + default: "block max-w-full overflow-x-auto border-collapse text-sm", + }, + }, + }, th: { ...defaultNodes.th, attributes: { From 233790b2d74b71e5404f174dea59dbeb80556135 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 10:30:01 +0200 Subject: [PATCH 2/2] style: Update gap between elements in PrevNextLinks --- app/components/syntax/PrevNextLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/syntax/PrevNextLinks.tsx b/app/components/syntax/PrevNextLinks.tsx index 68ed673..df886aa 100644 --- a/app/components/syntax/PrevNextLinks.tsx +++ b/app/components/syntax/PrevNextLinks.tsx @@ -80,7 +80,7 @@ export function PrevNextLinks() { if (!nextPage && !previousPage) return null; return ( -
+
{previousPage && } {nextPage && }