From 70aafa34dcb3dda9851e44f610b56cc613f010a8 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 14 Sep 2023 05:57:04 -0700 Subject: [PATCH] Fix blockquote markdown rendering --- modules/html_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/html_generator.py b/modules/html_generator.py index af21d7e..c2e622e 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -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)