Home  >  Article  >  Development Tools  >  How to hit spaces in Github Markdown (two methods)

How to hit spaces in Github Markdown (two methods)

PHPz
PHPzOriginal
2023-04-10 09:43:112082browse

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:

1. Use HTML entities

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

2. Use a combination of backslashes and spaces

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn