Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
97a723f
1
Parent(s):
d642c73
修复代码框在亮色模式下的样式问题
Browse files- ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py
CHANGED
@@ -48,7 +48,7 @@ def parse_text(text):
|
|
48 |
count += 1
|
49 |
items = line.split('`')
|
50 |
if count % 2 == 1:
|
51 |
-
lines[i] = f'<pre><code class="{items[-1]}" style="display: block; white-space: pre; background-color: hsl(0, 0%, 32%); border-radius: 8px; padding: 0px 1em 1em; margin-top: 1em; font-size: initial;">'
|
52 |
firstline = True
|
53 |
else:
|
54 |
lines[i] = f'</code></pre>'
|
|
|
48 |
count += 1
|
49 |
items = line.split('`')
|
50 |
if count % 2 == 1:
|
51 |
+
lines[i] = f'<pre><code class="{items[-1]}" style="display: block; white-space: pre; background-color: hsl(0, 0%, 32%); border-radius: 8px; padding: 0px 1em 1em; margin-top: 1em; font-size: initial;color: #FFF;">'
|
52 |
firstline = True
|
53 |
else:
|
54 |
lines[i] = f'</code></pre>'
|