Skip to content

Commit 045cdb1

Browse files
committed
ensure display none even if css load fails
1 parent e78e8b0 commit 045cdb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared_utils/advanced_markdown_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def markdown_convertion(txt):
347347

348348
# 在文本中插入一个base64编码的原始文本,以便在复制时能够获得原始文本
349349
raw_text_encoded = compress_string(txt)
350-
raw_text_node = f'<div class="raw_text">{raw_text_encoded}</div>'
350+
raw_text_node = f'<div class="raw_text" style="display:none">{raw_text_encoded}</div>'
351351
suf = raw_text_node + "</div>"
352352

353353
# 用于查找数学公式的正则表达式

0 commit comments

Comments
 (0)