在Markdown中更改图像大小 [英] Changing image size in Markdown
问题描述
我刚开始使用Markdown。我喜欢它,但有一件事让我烦恼:如何使用Markdown更改图像的大小?
I just got started with Markdown. I love it, but there is one thing bugging me: how can I change the size of an image using Markdown?
文档仅对图像给出以下建议:
The documentation only gives the following suggestion for an image:
![drawing](drawing.jpg)
如果有可能,我希望图片也能居中。我要求一般降价,而不仅仅是github如何做到这一点。
If it is possible I would like the picture to also be centered. I am asking for general markdown, not just how github does it.
推荐答案
使用某些Markdown实施(包括 Mou 和标记为2 (仅限macOS))您可以在之后附加 = WIDTHxHEIGHT
用于调整图像大小的图形文件的URL。不要忘记 =
之前的空格。
With certain Markdown implementations (including Mou and Marked 2 (only macOS)) you can append =WIDTHxHEIGHT
after the URL of the graphic file to resize the image. Do not forget the space before the =
.
![](./pic/pic1_50.png =100x20)
你可以跳过高度
![](./pic/pic1s.png =250x)
这篇关于在Markdown中更改图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!