Skip to content

Commit

Permalink
styled-markdown: Add styles for table view
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe2k authored and punchagan committed Dec 8, 2023
1 parent d9a98a1 commit 23018fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/components/StyledMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ const TailwindMarkdown = props => {
h2: "text-xl font-bold mb-4 text-blue-500 text-center",
h3: "text-lg font-bold mb-4 underline",
ol: "m-4 text-gray-500 list-decimal list-outside dark:text-gray-400",
ul: "m-4 text-gray-500 list-disc list-outside dark:text-gray-400"
ul: "m-4 text-gray-500 list-disc list-outside dark:text-gray-400",
table:
"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400 mb-5",
thead:
"text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400",
th: "px-6 py-3",
"tbody tr": "bg-white border-b dark:bg-gray-800 dark:border-gray-700",
"tbody td": "px-6 py-4 font-medium"
};

onMount(() => {
Expand Down

0 comments on commit 23018fb

Please sign in to comment.