Basic operations such as line break and left alignment in tables in Markdown

Basic operations such as line break and left alignment in tables in Markdown

1. Paragraph wrapping

Method : use<br>

Example one:

床前明月光,<br>疑是地上霜
>>>
输出:
床前明月光,
疑是地上霜

Example two:

项目     | 备注
-------- | -----
电脑     | 这是一台<br>电脑

Output result:

project Remark
computer this is a
computer

2. Line breaks in ordinary sentences

Method : use\, and then pressEnterthe key. Or, just press the key directly at the place where a line break is requiredEnter.

For example:

床前明月光,\
疑是地上霜
>>>
输出:
床前明月光,
疑是地上霜

3. Table left/right/center alignment

|左对齐| 居中对齐| 右对齐|
|:-----| -------|-----:|
|电脑  |电脑    |电脑   |

Output result:

align left center alignment right align
computer computer computer

4. Table embedded list

项目     | 备注
-------- |:-----
电脑     | <li>第一点<li>第二点说明

Output result:

project Remark
computer
  • The first point
  • Second point

Guess you like

Origin blog.csdn.net/weixin_42782150/article/details/126877404