From e65c48be33bfbe0bb8b692ad48610910771181bf Mon Sep 17 00:00:00 2001 From: Brunovsky Date: Tue, 11 Dec 2018 00:41:51 +0000 Subject: [PATCH] Fix issue 2557 katex alignment in display math --- browser/components/markdown.styl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/browser/components/markdown.styl b/browser/components/markdown.styl index b7f219b8..e5647c33 100644 --- a/browser/components/markdown.styl +++ b/browser/components/markdown.styl @@ -55,11 +55,12 @@ body line-height 1.6 overflow-x hidden background-color $ui-noteDetail-backgroundColor + // do not allow display line breaks + .katex-display > .katex + white-space nowrap + // allow inline line breaks .katex - font 400 1.2em 'KaTeX_Main' - line-height 1.2em white-space initial - text-indent 0 .katex .mfrac>.vlist>span:nth-child(2) top 0 !important .katex-error