Skip to content

Commit

Permalink
pandoc: Don't strip path off of sourceURL.
Browse files Browse the repository at this point in the history
We need this information for relative URLs!

This should resolve the continuing problem noted in #750.
  • Loading branch information
jgm committed Aug 6, 2014
1 parent 56f2c61 commit 482f7f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pandoc.hs
Expand Up @@ -1167,8 +1167,7 @@ main = do
(x:_) -> case parseURI x of
Just u
| uriScheme u `elem` ["http:","https:"] ->
Just $ show u{ uriPath = "",
uriQuery = "",
Just $ show u{ uriQuery = "",
uriFragment = "" }
_ -> Nothing

Expand Down

0 comments on commit 482f7f8

Please sign in to comment.