Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding optional a href link for images #4

Closed
angelacastaneda opened this issue Dec 2, 2023 · 1 comment
Closed

Adding optional a href link for images #4

angelacastaneda opened this issue Dec 2, 2023 · 1 comment

Comments

@angelacastaneda
Copy link

Hey big fan of your package. I used to always write insanity in pandoc markdown to get the functionality your code provides:

![figcaption](/path/to/img.jpg `title'){alt="alt text"}

anyways, I was hoping you could add a feature to optionally toggle a hyperlink to the image itself, e.g.

![alt text](/path/to/img.jpg "title")
figcaption

generates

<figure>
  <a href="/path/to/img.jpg">
    <img src="/path/to/img.jpg" alt="alt text" title="title"/>
  </a>
  <figcaption>figcaption</figcaption>
</figure>

That way you can just click on an image to zoom in. Thanks again for the cool package.

@yilei
Copy link
Contributor

yilei commented Jun 18, 2024

Thank you for the FR @angelacastaneda!

I just published a new version v1.1.0 to optionally add an image link, see instructions.

Feel free to open another issue if you encounter any problems.

@yilei yilei closed this as completed Jun 18, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants