Search code examples
markdown

How to right-align and justify-align in Markdown?


Markdown text is always left-aligned. Is there a way to do right-align and justification in Markdown?

To be precise, I'm using Markdown in Jupyter Notebook (IPython).


Solution

  • Aligning text in pure markdown is not possible. However, you can align the text using inline HTML tags.

    <div style="text-align: right"> your-text-here </div>
    

    To justify, replace right with justify in the above.