Markdown `native` text alignment
Solution 1:
native markdown doesn't support text alignment without html
+ css
.
Solution 2:
In order to center text in md files you can use the center tag like html tag:
<center>Centered text</center>
Solution 3:
I known this isn't markdown, but <p align="center">
worked for me, so if anyone figures out the markdown syntax instead I'll be happy to use that. Until then I'll use the HTML tag.
Solution 4:
The div element has its own alignment attribute, align.
<div align="center">
my text here.
</div>
Solution 5:
It's hacky but if you're using GFM or some other MD syntax which supports building tables with pipes you can use the column alignment features:
|| <!-- empty table header -->
|:--:| <!-- table header/body separator with center formatting -->
| I'm centered! | <!-- cell gets column's alignment -->
This works in marked.