mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-09-20 18:45:09 +02:00
Readability
This commit is contained in:
parent
705121161b
commit
46a8aa8c09
1 changed files with 2 additions and 0 deletions
|
@ -33,9 +33,11 @@ def fix_newlines(string):
|
|||
string = string.strip()
|
||||
return string
|
||||
|
||||
|
||||
def replace_blockquote(m):
|
||||
return m.group().replace('\n', '\n> ').replace('\\begin{blockquote}', '').replace('\\end{blockquote}', '')
|
||||
|
||||
|
||||
def convert_to_markdown(string):
|
||||
|
||||
# Blockquote
|
||||
|
|
Loading…
Reference in a new issue