mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-27 04:23:21 +01:00
Workaround for convert_to_markdown bug
This commit is contained in:
parent
7f8c1c1f07
commit
0485ff20e8
@ -154,6 +154,8 @@ def add_long_list_class(html):
|
||||
|
||||
@functools.lru_cache(maxsize=None)
|
||||
def convert_to_markdown(string):
|
||||
if not string:
|
||||
return ""
|
||||
|
||||
# Make \[ \] LaTeX equations inline
|
||||
pattern = r'^\s*\\\[\s*\n([\s\S]*?)\n\s*\\\]\s*$'
|
||||
|
Loading…
Reference in New Issue
Block a user