Skip to content

Fix markdown mode loading #1757

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

Merged
merged 4 commits into from
Sep 12, 2016
Merged

Fix markdown mode loading #1757

merged 4 commits into from
Sep 12, 2016

Conversation

minrk
Copy link
Member

@minrk minrk commented Sep 12, 2016

and options_default in general, which has been ignored entirely for most cell types since #1676.

This attempts to resolve the separation of config and Class.options_default by using options_default as the defaults for the cell's config objects, eliminating a separate notion of 'options' and 'config'.

For some reason, I also had to add an explicit 'reload ipythongfm' action after that mode is defined, since we are no longer guaranteed that the IPython markdown mode is defined when markdown cells are getting created. I'm not sure exactly when that stopped working, but I imagine it's due to webpack and require fighting with each other (cc @blink1073)

I also added to the config section the ability to get the whole class-config object merged with defaults, since that's the data structure we want here.

Closes #1743

and merge object config values with defaults (e.g. Cell.cm_config)
fixes omitted codemirror config due to ignoring options_default.

load options_default via config defaults (modifying options_default at runtime has no effect).
if ipythongfm is defined after notebook is loaded, re-load it in all cells that are using it.
@fonnesbeck
Copy link

This fixes the issue for me, thanks.

@gnestor
Copy link
Contributor

gnestor commented Sep 12, 2016

I have tested and it fixes Markdown syntax highlighting and line soft wrapping for me. Merging...

@gnestor gnestor merged commit 4c3e996 into jupyter:master Sep 12, 2016
@minrk minrk added this to the 5.0 milestone Sep 13, 2016
@minrk minrk deleted the markdown-load branch September 13, 2016 13:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Markdown cells no longer soft wrap lines in master
3 participants