diff --git a/src/App.tsx b/src/App.tsx index 761b516..451875e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -43,7 +43,7 @@ const App: Component = () => {
-
+
); diff --git a/src/components/md-table.tsx b/src/components/md-table.tsx index 3f1c230..9b6adc9 100644 --- a/src/components/md-table.tsx +++ b/src/components/md-table.tsx @@ -179,7 +179,7 @@ customElement('md-table', { roll: false, remix: false }, (props, { element }) => -
+
0}>
diff --git a/src/styles.css b/src/styles.css index e209c34..cbe0bec 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,14 +1,27 @@ @import "tailwindcss"; @plugin "@tailwindcss/typography"; -.markdown-alert { - @apply px-4 rounded mb-4 border; +.prose { + @apply prose-h2:first:mt-0 prose-h3:first:mt-0 prose-h4:first:mt-0 prose-h5:first:mt-0; } .markdown-alert-title{ @apply hidden; } +.markdown-alert-title + h1, +.markdown-alert-title + h2, +.markdown-alert-title + h3, +.markdown-alert-title + h4, +.markdown-alert-title + h5 +{ + @apply mt-0; +} + +.markdown-alert { + @apply px-4 pt-4 rounded mb-4 border; +} + .markdown-alert-note { @apply bg-blue-50 border-blue-500; }