markdown新技巧_图片

2023-02-09

关于markdown引用图片的新技巧,图片引用链接后添加hover text,以在鼠标悬置图片上时,显示额外的悬浮文字。此外,通过base64将图片直接合并在markdown文件中,相较于分开情况,文件体积变大。

源地址:Steven Zhang——Markdown 速查表,节选。

Image 图片

Basic Formart 基本格式

Alt text is The Alt tag of the image, which is used to describe the keywords of the image. Image link: It can be the local address or URL of the image. “hover text” will appear when the mouse hovers over the image. Alt text and hover text are optional.

Alt text:图片的Alt标签,用来描述图片的关键词。Image link:可以是图片的本地地址或者是网址。“hover text”:鼠标悬置于图片上会出现的标题文字。

![alt text](Image link.jpg "hover text")

Convert Image to Markdown Document 转换图片为markdown文件(base64)

Use the base64 transcoding tool to convert the image into a base64 string, and then fill the string into the link in the basic format.

将图片转换成base64形式的字符串,然后把字符串写入链接中。

![ABC](base64 string)