How to make markdown text align justify

只愿长相守 提交于 2019-12-14 01:58:26

问题


I use this

<p align="justify">
Some plain texts will be aligned justify
</p>

It is really awesome when I just have plain text. However, if I would like to justify something like this, it does not work correctly. The url and list will disappear.

[Lorem ipsum dolor sit amet](some-awesome-webpage), consectetur adipisicing elit, sed do eiusmod
- tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
- quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
- consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
```cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non```
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

My workplace for markdown support html and blablabla. I am new to this.

Any suggestions will be appreaciated!

Thank you!!


回答1:


Use CSS to advanced styling, after each formatted text block:

{: style="text-align: justify"}

See screenshot below from http://kramdown.herokuapp.com/:



来源:https://stackoverflow.com/questions/49470805/how-to-make-markdown-text-align-justify

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!