markup icon indicating copy to clipboard operation
markup copied to clipboard

Mysterious p tag nested in li

Open webbower opened this issue 11 years ago • 3 comments

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)

webbower avatar May 19 '15 20:05 webbower

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:

  1. chicken chicken chicken chicken

  2. chicken chicken chicken chicken

  3. chicken chicken chicken chicken

  4. chicken chicken chicken chicken

  5. chicken chicken chicken chicken

    1. chicken chicken chicken chicken

    Test

    chicken chicken chicken
    chicken chicken chicken
    chicken chicken chicken
    

gnuletik avatar Jul 29 '15 13:07 gnuletik

Yup. I figured it was something with the GFM parser.

webbower avatar Aug 25 '15 21:08 webbower

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!

shawnajean avatar Mar 22 '17 22:03 shawnajean