Made the improved codeblock finder actually work.
This commit is contained in:
parent
e1ac1ff083
commit
8c827f40e7
1 changed files with 1 additions and 1 deletions
2
omg.py
2
omg.py
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue