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

Adding a nested list element creates extraneous space (markdown_github to html) #1636

Closed
cjerdonek opened this issue Sep 20, 2014 · 4 comments

Comments

@cjerdonek
Copy link

It seems like there is a glitch in how nested lists are rendered when converting GitHub Markdown to HTML (checked in Pandoc 1.13.1). For example, this renders fine:

* a
* a
* a

But adding a nested list to the last element:

* a
* a
* a
    * a

causes it to be rendered like this--

* a
* a

* a

    * a

The command I used was--

$ pandoc --from=markdown_github --to=html --output=test.html test.md 
@neongreen
Copy link

It seems to happen because markdown_github enables lists_without_preceding_blankline, which makes the paragraph parser always emit a Para when a paragraph is followed by a list.

@cjerdonek
Copy link
Author

Thanks a lot for proposing a patch and test, @neongreen.

@mpickering
Copy link
Collaborator

@neongreen are you going to submit a pull request?

@neongreen
Copy link

@mpickering, yes, thanks for reminding – I'll do it tomorrow.

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

3 participants