noties / Markwon

Android markdown library (no WebView)
https://noties.io/Markwon/
Apache License 2.0
2.68k stars 298 forks source link

How to add additional new line for `<p>` html tag to behave same as Android's Html class. #443

Open anidhamal opened 1 year ago

anidhamal commented 1 year ago

How to have <p> html tag behave same as Android's Html class.

I'm using HtmlPlugin which handles default tags including <p>

Markwon.builder(context)
.usePlugin(HtmlPlugin.create())

It seems, it's internally adding new line for paragraph content. If we see Android's Html class, it adds two new lines for <p> content.

How should I go about it to add additional new line? Is there any way to modify text content to add new line before rendering?

eg

<p>Thanks<br>a lot!</p><p>Please follow these instructions</p>
Current Updating to