gridea icon indicating copy to clipboard operation
gridea copied to clipboard

渲染KaTeX公式不正常

Open xyf007 opened this issue 6 years ago • 3 comments

我的环境

名称 值
操作系统 Windows 10
软件版本 0.9.2
主题名称 Simple

期望行为

正常渲染 KaTeX 公式

当前行为

KaTeX 源码和渲染后的结果同时出现 1.png 2.png

xyf007 avatar Jul 19 '20 05:07 xyf007

我也遇到过这个问题. 应该是特定的theme有问题, 我发现的simple是这样的. 可以用notes或者fly试一下.

ZhiqiWang avatar Sep 10 '20 16:09 ZhiqiWang

我也遇到过这个问题. 应该是特定的theme有问题, 我发现的simple是这样的. 可以用notes或者fly试一下.

后来我换了 theme 也好了

xyf007 avatar Sep 13 '20 08:09 xyf007

在 C:\Users{你的用户名}\Documents\Gridea\themes\simple\templates\post.ejs 的<head></head>内加入: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css"> 之后再同步就解决这个问题了

Gabriel-1023 avatar Mar 18 '22 17:03 Gabriel-1023