markdown是否支持本机文本对齐而不使用html + css?


当前回答

对于自述文件的Github使用div可以中心一切-

<div align="center">
    Any Text/Card/Item
</div>

但是这样使用p并不适用于所有item-

<p align="center">
    Any Text/Card/Item
</p>

其他回答

为了在md文件中居中文本,你可以使用center标签,如html标签:

<center>Centered text</center>

对于自述文件的Github使用div可以中心一切-

<div align="center">
    Any Text/Card/Item
</div>

但是这样使用p并不适用于所有item-

<p align="center">
    Any Text/Card/Item
</p>

我发现在jupyter笔记本单元格上使用latex语法非常有用,比如:

![good-boy](https://i.imgur.com/xtoLyW2.jpg  "Good boy on boat")

$$\text{This is some centered text}$$

使用表语法的一个限定的“是”。例如,您可以将纯文本居中对齐如下:

| |
| :-: |
| Excerpts from Romeo and Juliet (arr. V. Borisovsky) |

这个收益率:

Excerpts from Romeo and Juliet (arr. V. Borisovsky)

请注意,您仍然可以在HTML块中使用Markdown。例如:

<div style="font-style: italic; text-align: center;" markdown="1">

## Excerpts from Romeo and Juliet (arr. V. Borisovsky)
### Sergei Prokofiev
#### Timothy Ridout, viola ∙ Frank Dupree, piano

</div>

在Github你需要写:

<p align="justify">
  Lorem ipsum
</p>