Spaces:
Sleeping
Sleeping
Commit
·
e329cea
1
Parent(s):
cc62443
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: #A5D2F1">{hl}</mark>')
|
118 |
|
119 |
# add line break
|
120 |
text = text.replace('\n', f" <br /> ")
|