diff --git a/pypandoc/__init__.py b/pypandoc/__init__.py index c82ca6b..1f237b8 100644 --- a/pypandoc/__init__.py +++ b/pypandoc/__init__.py @@ -161,6 +161,7 @@ def convert_file(source_file:Union[list, str, Path, Generator], to:str, format:U discovered_source_files = [] if isinstance(source_file, str): + source_file = source_file.replace('[', '[[]') discovered_source_files += glob.glob(source_file) if isinstance(source_file, list): # a list of possibly file or file patterns. Expand all with glob for filepath in source_file: