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

Last <p> is missing in a list #667

Closed
Massedil opened this issue Sep 18, 2018 · 3 comments
Closed

Last <p> is missing in a list #667

Massedil opened this issue Sep 18, 2018 · 3 comments

Comments

@Massedil
Copy link

Try to parse this markdown code here :

> 1. bla
> 
> 2. bla
> 
> 3. bla

Markdown PHP 1.3 gives :

<blockquote>
  <ol>
  <li><p>bla</p></li>
  <li><p>bla</p></li>
  <li><p>bla</p></li>
  </ol>
</blockquote>

Parsedown gives :

<blockquote>
<ol>
<li>
<p>bla</p>
</li>
<li>
<p>bla</p>
</li>
<li>bla</li>
</ol>
</blockquote>

The last <p></p> is missing.

The result with parsedown is <li>bla</li> instead of <li><p>bla</p></li>.


Problem is also here with :

1. bla

2. bla

3. bla

Same result with :

1. bla
2. bla
3. bla
@aidantwoods
Copy link
Collaborator

Hi, which version of Parsedown are you using? I believe this should have been fixed in the latest release (1.7.1) by #475

@Massedil
Copy link
Author

Hi, which version of Parsedown are you using? I believe this should have been fixed in the latest release (1.7.1) by #475

Sorry, I was not using version 1.7.1. I can confirm that this issue is solved in 1.7.1.

Note that the demo website (http://parsedown.org/demo) seems to be not up to date.

@aidantwoods
Copy link
Collaborator

Note that the demo website (http://parsedown.org/demo) seems to be not up to date.

Yeah :( I don't have access to update that unfortunately

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

2 participants