Adding space between text and image in Markdown

mar tin picture mar tin · Jan 6, 2017 · Viewed 8.5k times · Source

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.

Answer

Tamás Sengel picture Tamás Sengel · Feb 7, 2018

Markdown is not capable of designing layouts like this. You can use multiple non-breaking spaces ( ) to adjust the spacing between an image and text.

Example:

![image](link)    text

Result:

    text