Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
610bbc4
1
Parent(s):
9545214
fix: 修复显示原始输出时也渲染mathjax的问题
Browse files- assets/custom.js +1 -1
assets/custom.js
CHANGED
@@ -390,7 +390,7 @@ var rendertime = 0; // for debugging
|
|
390 |
var mathjaxUpdated = false;
|
391 |
|
392 |
function renderMathJax() {
|
393 |
-
messageBotDivs = document.querySelectorAll('.message.bot');
|
394 |
for (var i = 0; i < messageBotDivs.length; i++) {
|
395 |
var mathJaxSpan = messageBotDivs[i].querySelector('.MathJax_Preview');
|
396 |
if (!mathJaxSpan && shouldRenderLatex && !mathjaxUpdated) {
|
|
|
390 |
var mathjaxUpdated = false;
|
391 |
|
392 |
function renderMathJax() {
|
393 |
+
messageBotDivs = document.querySelectorAll('.message.bot .md-message');
|
394 |
for (var i = 0; i < messageBotDivs.length; i++) {
|
395 |
var mathJaxSpan = messageBotDivs[i].querySelector('.MathJax_Preview');
|
396 |
if (!mathJaxSpan && shouldRenderLatex && !mathjaxUpdated) {
|