How to add multiple spaces between texts in Markdown

in #markdown7 years ago (edited)

Markdown basics

Markdown is a lightweight markup language just like HTML. And it's especially designed in such a way to be converted to HTML and rendered in browsers. It can also be rendered using other ways, but mostly it's done using HTML. It's a nice tool to write rich text with plain text and it's less complex than HTML. It's widely used for README files, articles, forums, messages, etc.

Adding multiple spaces

Now, adding multiple spaces between texts depends on how it's rendered. If the markdown text is converted to HTML and rendered in browsers, then you can use the following technique to add multiple spaces between texts.

Solution : Use  (Non-Breaking SPace)

How does it work?

HTML renders multiple spaces into a single space, but if you want to preserve them you use a different code(&nbsp) and since the markdown is converted to HTML, you got it!

Example

Src:

I have a long space before            me.

How you see it in SteemIT website(SteemIT renders markdown using HTML):

I have a long space before            me.

A bonus time-saving trick

Only multiple space characters() are converted to a single space character, so you can combine the space character with  . So if you want, say, 6 spaces, you could combine 6 space characters with  .

Ex : I have 6 spaces before      me
Rendered : I have 6 spaces before      me

And finally one more thing, there are other codes like  (2 x  ) and  (4 x  ).

Good Posting!!!

Credits : https://meta.stackexchange.com/questions/122520/how-to-write-multiple-spaces-in-the-post

Sort:  

Congratulations @jamesanto! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @jamesanto! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Thank you so much for this post. It has helped me making my first post in steemit.

How can you get a double space inside a code block though?

This post was very helpful, Thanks!

Congratulations @jamesanto! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!