From 3620e917b5e089de59c3f7979dc87bb3ea32cc52 Mon Sep 17 00:00:00 2001 From: Dorus Rolvink Date: Sat, 26 Feb 2022 22:51:28 +0100 Subject: [PATCH] I will never get git revert --- md_mermaid.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/md_mermaid.py b/md_mermaid.py index d5b0c81..c2306e1 100644 --- a/md_mermaid.py +++ b/md_mermaid.py @@ -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) @@ -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