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 backwards incompatibility with markdown2html #1022

Merged
merged 1 commit into from
May 12, 2019

Conversation

jhamrick
Copy link
Member

Recent changes to html.py's handling of markdown2html also breaks nbgrader, which uses the markdown2html filter. The original filter only assumes the input is source code, not necessarily a cell, but the new version of the filter in this file assumes the context includes a 'cell' field. This isn't the case for the way the filter is being used by nbgrader, but this change alleviates the problem by returning an empty dictionary by default for the cell contents.

Related to #1007

@MSeal
Copy link
Contributor

MSeal commented May 12, 2019

That's a reasonable safeguard in the code.

@MSeal MSeal merged commit e9d82f4 into jupyter:master May 12, 2019
@MSeal
Copy link
Contributor

MSeal commented May 12, 2019

There's a few items floating around for 5.5.1 or possible a 5.6 release in the not-too-distance future so it shouldn't linger outside a release for too long.

@jhamrick jhamrick deleted the fix-markdown2html branch May 13, 2019 08:11
@jhamrick
Copy link
Member Author

Great, thanks!

@maartenbreddels
Copy link
Collaborator

Hi Jessica, sorry for breaking that!

@jhamrick
Copy link
Member Author

No problem, it's part of the process 😄

@meeseeksmachine
Copy link

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/nbconvert-5-6-0-release/1867/1

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

Successfully merging this pull request may close these issues.

4 participants