Skip to content

Commit

Permalink
feat: improve markdown rendering (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaszkowic authored Nov 7, 2024
1 parent 96a525e commit fb0ab8c
Show file tree
Hide file tree
Showing 5 changed files with 307 additions and 14 deletions.
276 changes: 276 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"react-markdown": "9.0.1",
"remark-gfm": "4.0.0",
"tailwind-merge": "2.5.4",
"tailwindcss-animate": "1.0.7",
"zustand": "5.0.0"
Expand Down
31 changes: 19 additions & 12 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,19 @@
}

.markdown-container h1 {
@apply text-6xl;
@apply text-3xl py-2;
}

.markdown-container h2 {
@apply text-5xl;
@apply text-2xl py-2;
}

.markdown-container h3 {
@apply text-4xl;
@apply text-xl py-2;
}

.markdown-container h4 {
@apply text-3xl;
}

.markdown-container h5 {
@apply text-2xl;
}

.markdown-container h6 {
@apply text-xl;
@apply text-lg py-2;
}

.markdown-container pre {
Expand All @@ -131,6 +123,21 @@
.markdown-container code {
@apply font-sans;
}

.markdown-container {
tbody,
td,
tfoot,
th,
thead,
tr {
text-align: left;
border-color: inherit !important;
border-style: solid !important;
border-width: 2px !important;
padding: 0.5rem;
}
}
}

:root {
Expand Down
Loading

0 comments on commit fb0ab8c

Please sign in to comment.