如何在Markdown中右对齐和对齐对齐? [英] How to right-align and justify-align in Markdown?

查看:1201
本文介绍了如何在Markdown中右对齐和对齐对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

降价文字始终左对齐.有没有办法在Markdown中进行右对齐和对齐?

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

确切地说,我在 Jupyter Notebook (IPython)中使用Markdown.

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

推荐答案

无法使用本地降价对齐文本.但是,您可以使用内联HTML标签对齐文本.

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

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

要进行辩解,在上面将right替换为justify.

To justify, replace right with justify in the above.

这篇关于如何在Markdown中右对齐和对齐对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆