You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images, particularly logo and thumbnail images, are often clickable links on web pages. Currently this is possible in myst using plain markdown, e.g. [![]()](). But then we don't have access to the configuration options offered by the {image} directive.
So my proposal is basically to add this functionality, perhaps with a new :url: argument to the image directive.
Additional notes
The specific use case I'm thinking of here is for logos, which naturally want to link back to landing pages for whatever the logo is representing. The native logo images are often large, high-res image files and we want to scale them down for display, e.g. using the :width: option.
The need to scale down an image is one of the main reasons I reach for the {image} directive over the native Markdown image.
The text was updated successfully, but these errors were encountered:
choldgraf
changed the title
Images as links
Create a clickable link for images with the image directive
Dec 9, 2024
choldgraf
changed the title
Create a clickable link for images with the image directive
Create a clickable link for images with image and figure directives
Dec 9, 2024
Proposal
Images, particularly logo and thumbnail images, are often clickable links on web pages. Currently this is possible in myst using plain markdown, e.g.
[![]()]()
. But then we don't have access to the configuration options offered by the{image}
directive.So my proposal is basically to add this functionality, perhaps with a new
:url:
argument to the image directive.Additional notes
The specific use case I'm thinking of here is for logos, which naturally want to link back to landing pages for whatever the logo is representing. The native logo images are often large, high-res image files and we want to scale them down for display, e.g. using the
:width:
option.The need to scale down an image is one of the main reasons I reach for the
{image}
directive over the native Markdown image.The text was updated successfully, but these errors were encountered: