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
allow markdown in heading cells #3531
Conversation
italics, bold, math, etc. closes ipython#3053
This should probably get its counterpart in nbconvert as the same time. |
For latex conversion this is already in nbconvert IIRC! We used this to take care of the underscore escaping, cf ipython/nbconvert#171 |
I think @jakobgager is right about the latex, at least the sphinx templates support this. The other templates do not. |
I will try to work in the others template to support this... we need markdown in header cells. |
allow markdown in heading cells
Great! Thanks. |
There seems to be a bug with markdown in heading cells in the current master (pulled 5 minutes ago). Might add: Chrome 28.0.1500.71 on Ubuntu 12.04 |
I can confirm this behavior, but only with math (italics, bullet points and so on, seems to work right for me). |
For me it freezes even if I do something like Update: I get the same behavior with FF 22.0 |
Big problem in mathjax math handeling. Marking as Prio Blocker 1.0 will revert markdown in heading cell temporarly |
Be carefull not to leave any markdown in cell, it might prevent to load. |
There is multiple issues,
|
Reverted in #3595 will open an issue to re-do this PR. |
@Carreau you are extremely fast 👏 |
Hold on I thought we were talking about not doing full markdown in heading cells. Did that get merged? Sent from my iPhone On Jul 10, 2013, at 7:14 AM, Jakob Gager notifications@github.com wrote:
|
Yes, to have at least emphase and bold. So this was not full markdown support... even if you could have put anything in it. BTW, after reverting I can stil-already have math in heading cell. |
Me too... do you know why? |
I am still confused because that is not the direction things were headed in On Wed, Jul 10, 2013 at 9:01 AM, Matthias Bussonnier <
Brian E. Granger |
Math, but not markdown, in heading cells was supported since at least 0.13. |
I think so... On Wed, Jul 10, 2013 at 9:55 AM, Jakob Gager notifications@github.comwrote:
Brian E. Granger |
Let me put my thinking in a different way: changing heading cells from raw text to markdown constitutes a major change in the notebook format that we should not be doing without more consideration and incrementing the notebook format. |
@ellisonbg totally disagree. Heading Cell is just a text cell with one tiny piece of implicit formatting and semantic structural meaning. That has no further implications. I have always considered it a bug that the input is not rendered, and there is nothing lost by fixing this bug. |
I don't see how this is not a format change. Before the change, heading Because it was a deliberate choice to not allow markdown in heading cell, I Downsides of this change:
I would like to have a better sense of what our long term markup syntax On Wed, Jul 10, 2013 at 10:02 AM, Min RK notifications@github.com wrote:
Brian E. Granger |
The part about
Only in that they should treat heading cells with the following logic:
This is actually how nbconvert used to work (I don't know how many times it's been rewritten since then, so it may not now).
This is true - if we ever want to replace markdown in heading cells with something new that broke backward compatibility, we would need a new nbformat. I'm not sure "makes it harder to create a mutant love child" is a particularly strong argument, though. Here's what the heading cell has always meant to me:
It has always been a small, easily fixed, bug that we forgot to properly render the text in a heading cell. I cannot imagine that we would want to change that, and the lack of formatting means that users have to choose between formatting and structure, which is a clear failure of design. |
I totally agree with @minrk that, as long as headings are style-able if entered as markdown cell (using #) there should be an option to style the heading cells as well, just for consistency reasons. |
Me too... as a user, my notebooks don't have heading cells, because they can be formatted...
it was very simple to accommodate nbconvert to render markdown in heding cells instead of raw text, example here: #3576. |
I don't agree with this perspective, but I am fine going with it. |
Sorry @damianavila but I could not follow your preference. I personally think there is no need to allow markdown in heading cells, but allow mathjax math rendering. That is, I would stick with the current 0.13 implementation. Unfortunately, this is somehow inconsistent with the headings which can be created based on simple markdown cells. |
I agree with @minrk here, I think it is a failure of design the fact that you have to choose between formatting and structure... |
allow markdown in heading cells
italics, bold, math, etc.
closes #3053