-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
figure shortcode no longer supports SVG images #1620
Comments
Git bisect suggests 55228b7 is to blame. |
Note that Hugo does not currently support SVG as an image type but as a generic resource within the Hugo framework. Academic's Figure code was not intended to work with SVG given Hugo does not yet support SVG as an image type, although in some versions of Academic it may have worked. Hence, this would be more of a question and feature request for adding SVG support to figures. Feel free to submit a PR. An alternative approach for SVG might be to utilise the standard Markdown image syntax, with the caveat that it won't have the flexibility of figures. |
This issue has been automatically marked as stale because it has not had any recent activity. The resources of the Academic team are limited, and so we are asking for your help. |
@gcushen could you reopen the issue and I'll provide a PR for this? The current figure shortcode implementation tries to resize "image" resources and for others it just creates an The problem is, Hugo returns SVG for |
Describe the bug
A clear and concise description of what the bug is.
Using
now results in
To Reproduce
Steps to reproduce the behavior:
Put an svg in your page
Expected behavior
SVG gets linked correctly
Technical details:
v0.65.3-211BA42A/extended
The text was updated successfully, but these errors were encountered: