Made the improved codeblock finder actually work.

This commit is contained in:
The Wobbler 2025-04-10 11:35:13 +02:00
parent e1ac1ff083
commit 8c827f40e7

2
omg.py
View file

@ -104,7 +104,7 @@ class OMG:
continue continue
if "```" in line: # detect codeblocks and ignore everything inside it if "```" in line: # detect codeblocks and ignore everything inside it
if not "```" in line[line.find("```"):]: if line.count("```") % 2: # odd count of "```" in line
codeblock = not codeblock codeblock = not codeblock
continue continue