diff --git a/markdownify/__init__.py b/markdownify/__init__.py index cd66a39..ba40ba4 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -208,7 +208,7 @@ def escape(self, text): if not text: return '' if self.options['escape_misc']: - text = re.sub(r'([\\&<`[>~#=+|-])', r'\\\1', text) + text = re.sub(r'([\\&<`[\]>~#=+|-])', r'\\\1', text) text = re.sub(r'([0-9])([.)])', r'\1\\\2', text) if self.options['escape_asterisks']: text = text.replace('*', r'\*')