From 880d9b1004311fd8d856288868e7948dab12fa98 Mon Sep 17 00:00:00 2001 From: Germain Date: Mon, 3 Jul 2023 16:07:30 +0100 Subject: [PATCH] fix markdown content (#11177) --- res/css/_common.pcss | 5 ++++- res/css/views/rooms/_EventTile.pcss | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/res/css/_common.pcss b/res/css/_common.pcss index 8412cf2644..7a0528102d 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -52,7 +52,7 @@ limitations under the License. } /** - * We need to increase the specificity of the selector to override the + * We need to increase the specificity of the selector to override the * custom property set by the design tokens package */ [class^="cpd-theme"][class^="cpd-theme"] { @@ -352,6 +352,9 @@ legend { .markdown-body { font: var(--cpd-font-body-md-regular) !important; letter-spacing: var(--cpd-font-letter-spacing-body-md); + font-family: inherit !important; + white-space: normal !important; + line-height: inherit !important; color: inherit; /* inherit the colour from the dark or light theme by default (but not for code blocks) */ pre, diff --git a/res/css/views/rooms/_EventTile.pcss b/res/css/views/rooms/_EventTile.pcss index 547d66fb6d..3d3053219e 100644 --- a/res/css/views/rooms/_EventTile.pcss +++ b/res/css/views/rooms/_EventTile.pcss @@ -698,6 +698,9 @@ $left-gutter: 64px; .markdown-body { font: var(--cpd-font-body-md-regular) !important; letter-spacing: var(--cpd-font-letter-spacing-body-md); + font-family: inherit !important; + white-space: normal !important; + line-height: inherit !important; color: inherit; /* inherit the colour from the dark or light theme by default (but not for code blocks) */ pre,