Spaces:
Sleeping
Sleeping
Commit
·
aa2bee0
1
Parent(s):
f079b05
Updates on highlight color
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ class Backend:
|
|
114 |
def highlight_text(self, text, highlight_list):
|
115 |
# hightlight the reference
|
116 |
for hl in highlight_list:
|
117 |
-
text = text.replace(hl, f'<mark style="background: #
|
118 |
|
119 |
# add line break
|
120 |
text = text.replace('\n', f" <br /> ")
|
|
|
114 |
def highlight_text(self, text, highlight_list):
|
115 |
# hightlight the reference
|
116 |
for hl in highlight_list:
|
117 |
+
text = text.replace(hl, f'<mark style="background: #2562E9">{hl}</mark>')
|
118 |
|
119 |
# add line break
|
120 |
text = text.replace('\n', f" <br /> ")
|