Fix included Python-Markdown; Fix replacements with escape char

This commit is contained in:
2022-08-26 19:53:47 +02:00
parent 36db6c04ae
commit 9cf3bc3e27
6 changed files with 19 additions and 25 deletions

View File

@ -95,6 +95,7 @@ def ReplWithEsc(Str, Find, Repl, Esc='\\'):
New = New[:-1]
New += Repl + e
elif Sects[i-1].endswith(Esc):
New = New[:-1]
New += Find + e
else:
New += Repl + e