From 54f94553cb3303e67b295f2fcad702d61f0122df Mon Sep 17 00:00:00 2001 From: Andy Hsu Date: Sun, 4 Aug 2024 19:01:34 +0800 Subject: [PATCH] fix: frac-line is not displayed (close alist-org/alist#6929) --- pnpm-lock.yaml | 10 +++++----- src/components/Markdown.tsx | 2 +- src/components/markdown.css | 5 +++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e91fab233..405f4a31a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ dependencies: version: 0.6.7(@stitches/core@1.2.8)(solid-js@1.4.8)(solid-transition-group@0.0.12) '@monaco-editor/loader': specifier: ^1.4.0 - version: 1.4.0(monaco-editor@0.46.0) + version: 1.4.0(monaco-editor@0.50.0) '@motionone/solid': specifier: ^10.14.1 version: 10.14.1(solid-js@1.4.8) @@ -623,12 +623,12 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@monaco-editor/loader@1.4.0(monaco-editor@0.46.0): + /@monaco-editor/loader@1.4.0(monaco-editor@0.50.0): resolution: {integrity: sha512-00ioBig0x642hytVspPl7DbQyaSWRaolYie/UFNjoTdvoKPzo6xrXLhTk9ixgIKcLH5b5vDOjVNiGyY+uDCUlg==} peerDependencies: monaco-editor: '>= 0.21.0 < 1' dependencies: - monaco-editor: 0.46.0 + monaco-editor: 0.50.0 state-local: 1.0.7 dev: false @@ -2591,8 +2591,8 @@ packages: minimist: 1.2.6 dev: true - /monaco-editor@0.46.0: - resolution: {integrity: sha512-ADwtLIIww+9FKybWscd7OCfm9odsFYHImBRI1v9AviGce55QY8raT+9ihH8jX/E/e6QVSGM+pKj4jSUSRmALNQ==} + /monaco-editor@0.50.0: + resolution: {integrity: sha512-8CclLCmrRRh+sul7C08BmPBP3P8wVWfBHomsTcndxg5NRCEPfu/mc2AGU8k37ajjDVXcXFc12ORAMUkmk+lkFA==} dev: false /mri@1.2.0: diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index 0fd91017d..7ff8019b6 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -158,7 +158,7 @@ const insertKatexCSS = once(() => { const link = document.createElement("link") link.rel = "stylesheet" link.href = - "https://registry.npmmirror.com/katex/0.16.8/files/dist/katex.min.css" + "https://registry.npmmirror.com/katex/0.16.11/files/dist/katex.min.css" document.head.appendChild(link) }) diff --git a/src/components/markdown.css b/src/components/markdown.css index 241fd127f..365e8e2a8 100644 --- a/src/components/markdown.css +++ b/src/components/markdown.css @@ -1312,3 +1312,8 @@ white-space: break-spaces; word-break: break-all; } + +/* https://github.com/alist-org/alist/issues/6929 */ +.katex-display .frac-line { + border-bottom-width: 0.04em; +}