Mysterious p tag nested in li
Regarding this file in a repo I'm working on: https://github.com/grbfacet/grbfacet.github.io/blob/master/ref-markdown.md
In the GitHub preview of the Mardown file, you'll notice an odd line space between "Bullet 3" and "Bullet 4" (formerly "2" and "3" respectively but edited to confirm it wasn't something magic about 3 items) but the source is as follows:
(blank line)
* Bullet 1
* Bullet 2
* Bullet 3
* Bullet 4
(blank line)
And for whatever reason, the Markdown parser is injecting a <p> tag into the last <li>. However, the HTML output it correct as a GitHub Page (http://grbfacet.github.io/ref-markdown.html)
The HTML output is generated with Jekyll, so it's a probleme with the Github Markdown (markup)
I've got the same problem with this markdown :
Markdown :
1. chicken chicken chicken chicken
1. chicken chicken chicken chicken
1. chicken chicken chicken chicken
1. chicken chicken chicken chicken
1. chicken chicken chicken chicken
1. chicken chicken chicken chicken
Test
```
chicken chicken chicken
chicken chicken chicken
chicken chicken chicken
```
Result:
-
chicken chicken chicken chicken
-
chicken chicken chicken chicken
-
chicken chicken chicken chicken
-
chicken chicken chicken chicken
-
chicken chicken chicken chicken
- chicken chicken chicken chicken
Test
chicken chicken chicken chicken chicken chicken chicken chicken chicken
Yup. I figured it was something with the GFM parser.
Hey there! 👋 We just updated our markdown renderer for blobs to CommonMark:
https://github.com/blog/2333-a-formal-spec-for-github-flavored-markdown
I'm not seeing this issue at the linked file anymore, so I'm going to close this out. If I missed something, just let me know and I can reopen!