@@ -73,6 +73,9 @@ import Text.Pandoc.Readers.Txt2Tags (getT2TMeta)
7373import Paths_pandoc (getDataDir)
7474import Text.Printf (printf)
7575import Text.Pandoc.Error
76+#ifdef _WINDOWS
77+import System.FilePath.Glob (glob)
78+#endif
7679
7780type Transform = Pandoc -> Pandoc
7881
@@ -1056,7 +1059,13 @@ main = do
10561059
10571060 -- thread option data structure through all supplied option actions
10581061 opts <- foldl (>>=) (return defaultOpts) actions
1062+
1063+-- on windows we need to do our own file globbing, since the shell doesn't.
1064+#ifdef _WINDOWS
1065+ mapM glob args >>= convertWithOpts opts . concat
1066+#else
10591067 convertWithOpts opts args
1068+#endif
10601069
10611070convertWithOpts :: Opt -> [FilePath] -> IO ()
10621071convertWithOpts opts args = do