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

Fix bullet list parsing in markdown #2177

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

douglas-raillard-arm
Copy link
Contributor

@douglas-raillard-arm douglas-raillard-arm commented Sep 11, 2024

Jupyter markdown allows bullet list to start right after the previous element, without any blank line in between. The default settings of pandoc is to not recognize that as a bullet list.

Therefore, enable the pandoc markdown extension that makes the blank line optional.

Fixes #917

Jupyter markdown allows bullet list to start right after the previous element,
without any blank line in between. The default settings of pandoc is to not
recognize that as a bullet list.

Therefore, enable the pandoc markdown extension that makes the blank line
optional.
@t-makaro
Copy link
Contributor

This looks great to me. This is the appropriate way to solve this (upstream to pandoc) and the tests pass. I would merge this, but I appear not to have maintainer access anymore (I assume due to inactivity). @takluyver You seem to be the one most active recently. Can we get this merged?

@krassowski krassowski added the bug label Jan 28, 2025
@krassowski krassowski changed the title markdown: Fix bullet list parsing Fix bullet list parsing in markdown Jan 28, 2025
Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me, aligning it with valid Markdown as used by Notebook and JupyterLab

@krassowski krassowski merged commit 01c6ab2 into jupyter:main Jan 28, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bullet list not getting properly generated in PDF
3 participants