Skip to content

Commit

Permalink
fix: frac-line is not displayed (close AlistGo/alist#6929)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 4, 2024
1 parent 7e3bef7 commit 54f9455
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down
5 changes: 5 additions & 0 deletions src/components/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 54f9455

Please sign in to comment.