Files
pandoc/test
John MacFarlaneandClaude ac4abe44e3 Treat data: and file: URI schemes case-insensitively.
URI schemes are case-insensitive (RFC 3986, section 3.1), but several
places matched only lowercase "data:" or "file:":

- Text.Pandoc.URI.pBase64DataURI (also used by isURI)
- downloadOrRead: the fast-path prefix check and the parseURI
  fallback for data: and file: URIs
- Text.Pandoc.App.Input.readSource: file:, http:, and https: URIs
  given as input sources
- Text.Pandoc.MediaBag: canonicalize's fast path and insertMedia's
  data-URI branch

Previously, e.g. DATA:image/gif;base64,... would be handed to openURL
and the image dropped, and a large uppercase data URI would also force
a full parseURI in MediaBag.canonicalize. Now such URIs are handled
the same as their lowercase equivalents. Added a test case.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-09 23:30:32 -07:00
..
…
…
…
2026-07-10 22:42:10 +02:00
…
…
…
…
2026-07-12 12:50:54 +02:00
2026-08-16 16:25:00 -07:00
2026-07-12 12:50:54 +02:00