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


当前回答

div元素有自己的对齐属性align。

<div align="center">
  my text here.
</div>

其他回答

居中对齐,将你想居中对齐的文本用箭头(-> <-)环绕起来,就像这样:

-> This is center aligned <-

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

<center>Centered text</center>

在Github你需要写:

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

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

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

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

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

原生markdown不支持没有HTML + css的文本对齐。