diff --git a/docutranslate/utils/markdown_utils.py b/docutranslate/utils/markdown_utils.py index 30456f7..8960e1b 100644 --- a/docutranslate/utils/markdown_utils.py +++ b/docutranslate/utils/markdown_utils.py @@ -64,7 +64,7 @@ def uris2placeholder(markdown: str, mask_dict: MaskDict): mask_dict.set(id, match.group()) return f"" - uri_pattern = r'(!?\[.*?\])\((.*?)\)' + uri_pattern = r'(!\[.*?\])\((.*?)\)' markdown = re.sub(uri_pattern, uri2placeholder, markdown) return markdown