Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make markdown text align justify

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!!

like image 711
Zhenye Na Avatar asked Jun 03 '26 06:06

Zhenye Na


1 Answers

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

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

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

enter image description here

like image 143
Andre Figueiredo Avatar answered Jun 06 '26 05:06

Andre Figueiredo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!