As a tool often used by programmers, Github plays an important role in collaborative development. The most familiar feature is Github Markdown. But sometimes I need to type spaces in Markdown, but I don’t know how to do it. The following will introduce in detail how to type spaces in Github Markdown.
There are two main ways to play spaces in Github Markdown:
In HTML, spaces can be used
or
, so using HTML entities in Markdown can also achieve the effect of hitting spaces.
For example, enter the following code in Markdown:
这 是一个 例子
or:
这 是一个 例子
to produce the following output:
This is an example
Another method is to use a combination of backslashes \
and spaces. The number of spaces is up to you.
For example, enter the following code in Markdown:
这\ 是\ 一个\ 例\ 子
to produce the following output:
This\ is\ an\ example\ sub
Both of the above methods can be used to create spaces in Github Markdown. You can choose which method to use based on your own preferences and usage habits. It should be noted that when using the second method, if you forget to enter a space after the backslash \
, the output may be affected.
To sum up, for Github users, mastering the advanced skills of Markdown is one of the important means to improve collaboration efficiency and expression ability, and it is also an important way to improve skills. Hope this article is helpful to everyone.
The above is the detailed content of How to hit spaces in Github Markdown (two methods). For more information, please follow other related articles on the PHP Chinese website!