-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting default-image-extension
can break external images
#10355
Comments
Those affected by this could work around it by adding a dummy query parameter to the end, e.g. Conceivably, there might be people who are relying on the existing behavior and using query strings ending in |
My preferred solution would be to limit the feature to local files, because that results in the easiest rule. Also, there are at least three common ways, in which a specific format could be requested from an URL: Query parameters, filepath extensions, "accept" http headers, and possibly more. That makes me think that pandoc should avoid it altogether. |
For all I know, though, people may be relying on this feature for URLs -- you might provde several formats at the same URL endpoint, distinguished by extensions. |
We could add a deprecation notice for that code path, use that note to ask for feedback in case the feature is intentionally used like that, and otherwise disable it completely after a year or so. |
I think I'd be okay with just making the change now and warning about it in the changelog. |
Images referencing external URIs can break if
default-image-extension
is enabled, as the extension is blindly appended to the URI. E.g., an image likewill be modified to the equivalent of
This breaks the image.
Ideas:
https://pbs.twimg.com/media/Ga-G5MtWIAAjpC6.png?format=jpg&name=large
, which works ok.See also:
&name=large.png
added to markdown image urls quarto-dev/quarto-cli#11247--default-image-extension
should probably not apply on encoded data url images #9118The text was updated successfully, but these errors were encountered: