Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pypandoc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down