How to make markdown text align justify

2019-07-17 06:01发布

问题:

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/: