mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 09:19:23 +01:00
Fix new lines in the HTML tab
This commit is contained in:
parent
46f6536fae
commit
8579fe51dd
@ -34,7 +34,7 @@ def convert_to_markdown(string):
|
|||||||
string = string.replace('\\begin{blockquote}', '> ')
|
string = string.replace('\\begin{blockquote}', '> ')
|
||||||
string = string.replace('\\end{blockquote}', '')
|
string = string.replace('\\end{blockquote}', '')
|
||||||
string = re.sub(r"(.)```", r"\1\n```", string)
|
string = re.sub(r"(.)```", r"\1\n```", string)
|
||||||
# string = fix_newlines(string)
|
string = fix_newlines(string)
|
||||||
return markdown.markdown(string, extensions=['fenced_code'])
|
return markdown.markdown(string, extensions=['fenced_code'])
|
||||||
|
|
||||||
def generate_basic_html(string):
|
def generate_basic_html(string):
|
||||||
|
Loading…
Reference in New Issue
Block a user