From 8579fe51dd09651ce7168d2191f9d741540881a5 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:59:34 -0300 Subject: [PATCH] Fix new lines in the HTML tab --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index ff18c913..48d2e02e 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -34,7 +34,7 @@ def convert_to_markdown(string): string = string.replace('\\begin{blockquote}', '> ') string = string.replace('\\end{blockquote}', '') string = re.sub(r"(.)```", r"\1\n```", string) -# string = fix_newlines(string) + string = fix_newlines(string) return markdown.markdown(string, extensions=['fenced_code']) def generate_basic_html(string):