Skip to content

Commit

Permalink
fix: inline table style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 12, 2024
1 parent 4263658 commit 5837bd4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/renderer/src/lib/parse-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
}),
),
},
}),
}
Expand Down

0 comments on commit 5837bd4

Please sign in to comment.