Skip to content

Commit

Permalink
I will never get git revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrolvink committed Feb 26, 2022
1 parent 7b476b6 commit 3620e91
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions md_mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ def run(self, lines):
in_mermaid_code = False
is_mermaid = False
for line in lines:
# Strip non printable characters
line = strip_notprintable(line)
# Wait for starting line with MermaidRegex (~~~ or ``` following by [mM]ermaid )
if not in_mermaid_code:
m_start = MermaidRegex.match(line)
Expand All @@ -58,9 +56,8 @@ def run(self, lines):
new_lines.append("")
m_end = None
elif in_mermaid_code:
new_lines.append(line.strip())
new_lines.append(strip_notprintable(line).strip())
else:

new_lines.append(line)

old_line = line
Expand Down

0 comments on commit 3620e91

Please sign in to comment.