Fix blockquote markdown rendering

This commit is contained in:
oobabooga 2023-09-14 05:57:04 -07:00
parent e180284593
commit 70aafa34dc

View file

@ -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)