mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Workaround for convert_to_markdown bug
This commit is contained in:
parent
7f8c1c1f07
commit
0485ff20e8
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue