mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Fix blockquote markdown rendering
This commit is contained in:
parent
e180284593
commit
70aafa34dc
@ -40,6 +40,7 @@ def replace_blockquote(m):
|
||||
def convert_to_markdown(string):
|
||||
|
||||
# Blockquote
|
||||
string = re.sub(r'(^|[\n])>', r'\1>', string)
|
||||
pattern = re.compile(r'\\begin{blockquote}(.*?)\\end{blockquote}', re.DOTALL)
|
||||
string = pattern.sub(replace_blockquote, string)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user