markdown是否支持本机文本对齐而不使用html + css?
当前回答
原生markdown不支持没有HTML + css的文本对齐。
其他回答
对于带有attr_list扩展名的python markdown,语法略有不同:
{: #someid .someclass somekey='some value' }
例子:
[Click here](http://exmaple.com){: .btn .btn-primary }
Lead information paragraph
{: .lead }
对于自述文件的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>
这有点俗气,但如果你正在使用GFM或其他支持用管道构建表的MD语法,你可以使用列对齐特性:
|| <!-- empty table header -->
|:--:| <!-- table header/body separator with center formatting -->
| I'm centered! | <!-- cell gets column's alignment -->
这在标记中起作用。
原生markdown不支持没有HTML + css的文本对齐。
推荐文章
- 如何将LaTeX与Markdown混合?
- 乳胶渲染在README。md在Github上
- 在Markdown Jekyll中使用图像说明
- Slack Markdown链接没有解决
- 差异语法突出显示在Github Markdown
- 我如何创建一个文本框的笔记在markdown?
- 在Markdown中创建一个没有标题的表
- R -降价避免包装加载消息
- 在MarkDown中包含SVG(托管在GitHub上)
- 自动TOC在github风味markdown
- 使用pandoc从Markdown转换为PDF时设置空白大小
- 如何显示数学方程在一般github的markdown(不是github的博客)
- 使用Markdown的Sphinx而不是reST
- 降价和图像对齐
- 如何样式一个JSON块在Github维基?