15

In Markdown, you add an image as

![myimg](link)

Now, I can easily change the size and placement of said image using attributes as

![myimg](link){: height="75px" width="300px" align="left"}

How do I also make it so that there is also a (choosable) space between image and text? Parameters like border don't work.

Using Kramdown as converter, on Github pages, if that matters.

4

2 回答 2

22

Markdown 无法设计这样的布局。您可以使用多个不间断空格(  ) 来调整图像和文本之间的间距。

例子:

![image](link)    text

结果:

    文本

于 2018-02-07T15:32:14.580 回答
1

为了使图像旁边的文本段落对我有用,我使用了这个:

![myimg](link){: height="75px" width="300px" style="float:left; padding-right:10px" }
于 2020-03-24T04:28:56.277 回答