Hi!
So, in general, most flavors of markdown don’t support text alignment or other page layout features. Depending on who you’re talking to, this is one of markdown’s best features: freedom from fiddling with formatting so that you can focus on the important part of writing, which is the actual writing.
Some flavors of markdown support some extended markdown features for alignment. Deepdwn supports centered text with:
-> centered text here <-
(see the example document).
Additionally, some editors (also like Deepdwn) allow HTML content, or a limited set of HTML and HTML attributes for text alignment.
You can add a div text-align
style attribute with either left
, right
, or center
:
ex:
<div style="text-align: right">
This will be right aligned
</div>
That lack of universal support is one reason to be careful about the features you make use of, since it will make your documents less portable between editors (or build tools, or preprocessors, or whatever).
You may also find that there are better supported features that you could use instead to get the content structure that you want (like definition lists, or footnotes, or tables, it depends).
Hope that helps!