@@ -1019,6 +1019,8 @@ defaultReaderName fallback (x:xs) =
1019 ".xhtml" -> "html"
1019 ".xhtml" -> "html"
1020 ".html" -> "html"
1020 ".html" -> "html"
1021 ".htm" -> "html"
1021 ".htm" -> "html"
1022+ ".md" -> "markdown"
1023+ ".markdown" -> "markdown"
1022 ".tex" -> "latex"
1024 ".tex" -> "latex"
1023 ".latex" -> "latex"
1025 ".latex" -> "latex"
1024 ".ltx" -> "latex"
1026 ".ltx" -> "latex"
@@ -1375,6 +1377,8 @@ convertWithOpts opts args = do
1375 readSource src = case parseURI src of
1377 readSource src = case parseURI src of
1376 Just u | uriScheme u `elem` ["http:","https:"] ->
1378 Just u | uriScheme u `elem` ["http:","https:"] ->
1377 readURI src
1379 readURI src
1380+ | uriScheme u == "file:" ->
1381+ UTF8.readFile (uriPath u)
1378 _ -> UTF8.readFile src
1382 _ -> UTF8.readFile src
1379 readURI src = do
1383 readURI src = do
1380 res <- openURL src
1384 res <- openURL src