How to Add a Link to an Image in Markdown
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
Yes, Markdown supports adding links to images.
Use the following syntax to make an image clickable:
[](链接地址)
Here, 图片描述 is the image's text description, 图片链接 is the image's URL, and 链接地址 is the URL to open when the image is clicked.
For example, suppose I have an image at https://cdn-img-r2.czl.net/2023/10/16/652cd7098d749.png and want it to link to https://card.onekey.so/?i=JIHJSO when clicked. I can use the following syntax:
[](https://card.onekey.so/?i=JIHJSO)
The image will then appear as a clickable link.
Last updated 2024-01-14
Comments 0