diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2014-08-02 16:09:17 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2014-08-02 16:12:05 -0700 |
commit | 1d137fbed69a61e751e94539b51a2aad0618026d (patch) | |
tree | 41a025b0157f9915a0b27e0b7ea98b5aa5b49718 /src/Text/Pandoc/Readers/LaTeX.hs | |
parent | ce8922437d3c74139dffe97fa7e0949e03c2eea8 (diff) | |
download | pandoc-1d137fbed69a61e751e94539b51a2aad0618026d.tar.gz |
Shared: fetchItem improvements.
* More consistent logic: absolute URIs are fetched from the net;
other things are treated as relative URIs if sourceURL is a Just,
otherwise as file paths.
* We escape characters that are not allowed in URIs before trying
to parse them (e.g. '|', which often occurs in the wild).
* When treating relative paths as local file paths, we drop
any fragment or query. This is useful e.g. when you've downloaded
web fonts locally, but your source still contains the original
relative URLs.
Together with the previous commit, this should close #1477.
Diffstat (limited to 'src/Text/Pandoc/Readers/LaTeX.hs')
0 files changed, 0 insertions, 0 deletions