@@ -93,7 +93,7 @@ import Text.Pandoc.Highlighting (highlightingStyles)
9393import Text.Pandoc.PDF (makePDF)
9494import Text.Pandoc.SelfContained (makeDataURI, makeSelfContained)
9595import Text.Pandoc.Shared (eastAsianLineBreakFilter, stripEmptyParagraphs,
96− headerShift, isURI, ordNub, safeRead, tabFilter)
96+ headerShift, isURI, ordNub, safeRead, tabFilter, uriPathToPath)
9797import qualified Text.Pandoc.UTF8 as UTF8
9898import Text.Pandoc.Writers.Math (defaultKaTeXURL, defaultMathJaxURL)
9999import Text.Pandoc.XML (toEntities)
@@ -795,7 +795,7 @@ readSource src = case parseURI src of
795795 readURI src
796796 | uriScheme u == "file:" ->
797797 liftIO $ UTF8.toText <$>
798− BS.readFile (uriPath u)
798+ BS.readFile (uriPathToPath $ uriPath u)
799799 _ -> liftIO $ UTF8.toText <$>
800800 BS.readFile src
801801