mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 01:30:20 +01:00
Readability
This commit is contained in:
parent
705121161b
commit
46a8aa8c09
@ -33,9 +33,11 @@ def fix_newlines(string):
|
|||||||
string = string.strip()
|
string = string.strip()
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
||||||
def replace_blockquote(m):
|
def replace_blockquote(m):
|
||||||
return m.group().replace('\n', '\n> ').replace('\\begin{blockquote}', '').replace('\\end{blockquote}', '')
|
return m.group().replace('\n', '\n> ').replace('\\begin{blockquote}', '').replace('\\end{blockquote}', '')
|
||||||
|
|
||||||
|
|
||||||
def convert_to_markdown(string):
|
def convert_to_markdown(string):
|
||||||
|
|
||||||
# Blockquote
|
# Blockquote
|
||||||
|
Loading…
Reference in New Issue
Block a user