Skip to content

Commit

Permalink
Merge pull request oruelle#4 from obsidian-html/master
Browse files Browse the repository at this point in the history
fix special characters being removed
  • Loading branch information
oruelle committed Apr 6, 2022
2 parents af97fe5 + 22c4d60 commit 692428c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions md_mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,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 @@ -59,9 +57,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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='md_mermaid',
version='0.1.1',
version='0.1.2',
author='Olivier Ruelle',
author_email='olivier.ruelle@yahoo.com',
description='Python-Markdown extension to add support for mermaid graph inside markdown file.',
Expand Down

0 comments on commit 692428c

Please sign in to comment.