[Bug] 数学公式重复出现 #3699
-
📦 EnvironmentVercel 📌 Version1.14.10 💻 Operating SystemWindows 🌐 BrowserFirefox 🐛 Bug Description数学公式重复出现,第一次公式渲染无误,随后出现相同的公式,而且渲染不正常 📷 Recurrence StepsNo response 🚦 Expected Behavior仅显示正常渲染的公式 📝 Additional Information |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 3 replies
-
👀 @lghnb Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
我这边是正常的,另外你提交源码的时候可以用 Markdown 包裹起来,方便复制。 这个问题一般见于 KaTeX 的 CSS 样式表没能被正常加载,请检查你的域名是否可以正常访问 CDN 资源,打开控制台、网络看看有无报错 |
Beta Was this translation helpful? Give feedback.
-
This is normal for me. In addition, when you submit the source code, you can wrap it in Markdown for easy copying. This problem generally occurs when KaTeX's CSS style sheet fails to load properly. Please check whether your domain name can access CDN resources normally, open the console and network to see if there are any errors. |
Beta Was this translation helpful? Give feedback.
-
你大概也在用 .top 域名吧,cdn 把这个顶级域名拉黑了。 |
Beta Was this translation helpful? Give feedback.
-
作为临时措施,可以用油猴脚本在网页中插入其他来源的 css 。 (function() {
'use strict';
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.css';
document.head.appendChild(link);
})(); |
Beta Was this translation helpful? Give feedback.
-
As a temporary measure, you can use Greasemonkey script to insert css from other sources into the web page. (function() {
'use strict';
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.15.2/katex.min.css';
document.head.appendChild(link);
})(); |
Beta Was this translation helpful? Give feedback.
-
Hi all, thank you for the discussion and the temporary solutions. However, I believe a client-side solution by inserting CSS using plugins is not a proper solution -- I cannot expect clients to do this every time manually. May I know if there is any workaround to solve this from the server side? I am using docker for deployment, so I understand that might be more difficult. |
Beta Was this translation helpful? Give feedback.
-
@enor2017 Personally, I think it's a pity that unless Lobechat makes a change, it will be difficult to fix it from our own server side. |
Beta Was this translation helpful? Give feedback.
你大概也在用 .top 域名吧,cdn 把这个顶级域名拉黑了。
希望以后 lobechat 能让用户自选 cdn 。