mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 10:59:32 +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):
|
def convert_to_markdown(string):
|
||||||
|
|
||||||
# Blockquote
|
# Blockquote
|
||||||
|
string = re.sub(r'(^|[\n])>', r'\1>', string)
|
||||||
pattern = re.compile(r'\\begin{blockquote}(.*?)\\end{blockquote}', re.DOTALL)
|
pattern = re.compile(r'\\begin{blockquote}(.*?)\\end{blockquote}', re.DOTALL)
|
||||||
string = pattern.sub(replace_blockquote, string)
|
string = pattern.sub(replace_blockquote, string)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user