Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Preserve editor font in rich table cell previews https://github.com/siyuan-note/siyuan/issues/20167

Daniel8a33d041b515
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss
index fee77b844e..d3491ef8d5 100644
--- a/app/src/assets/scss/component/_typography.scss
+++ b/app/src/assets/scss/component/_typography.scss
@@ -27,6 +27,11 @@
font-size: inherit;
}
+ &.table__cell-rich {
+ // 富文本预览沿用所在单元格的字体。
+ font-family: inherit;
+ }
+
img {
max-width: 100%;
margin: 0 auto;