Skip to content

Commit d848ee5

Browse files
authored
Merge pull request #2692 from Brunovsky/fix-2557
Fix issue 2557 katex alignment in display math
2 parents 2df0f1b + e65c48b commit d848ee5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

browser/components/markdown.styl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ body
5555
line-height 1.6
5656
overflow-x hidden
5757
background-color $ui-noteDetail-backgroundColor
58+
// do not allow display line breaks
59+
.katex-display > .katex
60+
white-space nowrap
61+
// allow inline line breaks
5862
.katex
59-
font 400 1.2em 'KaTeX_Main'
60-
line-height 1.2em
6163
white-space initial
62-
text-indent 0
6364
.katex .mfrac>.vlist>span:nth-child(2)
6465
top 0 !important
6566
.katex-error

0 commit comments

Comments
 (0)