From f2b243cd5ff38b31d33746ff82d3dbf14cbcb44c Mon Sep 17 00:00:00 2001 From: jeffser Date: Sat, 10 Aug 2024 19:23:11 -0600 Subject: [PATCH] Changed python 2 to python from codeblocks --- src/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index 148d9a7..e23ab0a 100644 --- a/src/window.py +++ b/src/window.py @@ -886,7 +886,7 @@ Generate a title following these rules: parts.append({"type": "normal", "text": normal_text.strip()}) language = match.group(1) code_text = match.group(2) - parts.append({"type": "code", "text": code_text, "language": language}) + parts.append({"type": "code", "text": code_text, "language": 'python3' if language == 'python' else language}) pos = end # Match code blocks without language no_lang_code_block_pattern = re.compile(r'`\n(.*?)\n`', re.DOTALL)