Merge pull request #4797 from janhq/fix/table-markdown

fix: table markdown
This commit is contained in:
Faisal Amir 2025-03-11 16:52:41 +07:00 committed by GitHub
commit 72c484ea8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -11,4 +11,11 @@ export const markdownComponents: Partial<Components> = {
{children}
</a>
),
table: ({ children }) => (
<div className="w-full overflow-x-auto">
<table className="w-full rounded-lg border border-[hsla(var(--app-border))]">
{children}
</table>
</div>
),
}

View File

@ -64,7 +64,6 @@
border: solid hsla(var(--app-border)) 1px;
border-radius: 8px;
overflow: auto;
display: flow;
margin-top: 16px;
margin-bottom: 16px;
}