Skip to content

Build your personal knowledge base with Trilium Notes

fix(markdown): tables have no margins

Elian Doranc7a6838056ee
diff --git a/apps/client/src/widgets/type_widgets/code/Markdown.css b/apps/client/src/widgets/type_widgets/code/Markdown.css
index 0803f53cba..304f448f19 100644
--- a/apps/client/src/widgets/type_widgets/code/Markdown.css
+++ b/apps/client/src/widgets/type_widgets/code/Markdown.css
@@ -13,6 +13,14 @@
overflow: auto;
padding: 0.5em 1em;
user-select: text;
+
+ table {
+ margin: 1em 0;
+ }
+
+ figure table {
+ margin: 0;
+ }
}
.markdown-preview [data-source-line] {
@@ -28,7 +36,7 @@
}
/* Markdown preview content blocks in split-view */
-.note-detail-split.split-horizontal .note-detail-split-preview > .note-detail-readonly-text-content > div {
+.note-detail-split.split-horizontal .note-detail-split-preview > .note-detail-readonly-text-content > div {
max-width: var(--preferred-max-content-width);
body.prefers-centered-content & {
@@ -45,4 +53,4 @@
/* Reverses .full-height rule */
display: block;
}
-}
\ No newline at end of file
+}