Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setSafeMode prevents multiple line breaks #856

Open
QuestionDevelopment opened this issue Oct 23, 2023 · 0 comments
Open

setSafeMode prevents multiple line breaks #856

QuestionDevelopment opened this issue Oct 23, 2023 · 0 comments

Comments

@QuestionDevelopment
Copy link

QuestionDevelopment commented Oct 23, 2023

Good day,
When rendering the following markdown

Lorem ipsum dolor sit amet, consectet**ur adipiscing e**lit, sed *do eiusmod te*mpor incididunt ut labore et.

<br>
<br>
<br>
<br>
<br>
* da
* ASD
* sd

Parsedown encodes the
tags when setsafemode is enabled. I have tried with setBreaksEnabled enabled and disabled. No difference in results. Html generated is as follows:

<p>Lorem ipsum dolor sit amet, consectet<strong>ur adipiscing e</strong>lit, sed <em>do eiusmod te</em>mpor incididunt ut labore et.</p>
<p>&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</p>
<ul>
<li>da</li>
<li>ASD</li>
<li>sd</li>
</ul>
<p>ASDSDSsdasdasda</p>

My apologizes if this is by design but as far as I can tell there would be no way to ever use safe mode if this is true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant