diff --git a/omg.py b/omg.py index 7c86a5d..42d466e 100755 --- a/omg.py +++ b/omg.py @@ -104,7 +104,7 @@ class OMG: continue 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 continue