nbviewer.js icon indicating copy to clipboard operation
nbviewer.js copied to clipboard

fix tex.

Open nagexiucai opened this issue 7 years ago • 3 comments

something of math, such as formula, in tex are not renderd properly.

and something like description of matplotlib.pyplot's output <matplotlib.figure.Figure at 0xd4f9860> may be customized hidden.

nagexiucai avatar Mar 24 '18 08:03 nagexiucai

Cool, I wondered what the best to do this was. I had a similar thought but never knew if there were any caveats.

To finish this, I think we'd need to add KaTeX to this (I've been eyeing that one), either as an explicit script import, or lazy loaded if $$ or $ is present in any of the markdown cells. So that it works out of the box. We'll then get a few math notebooks to test it out.

Also, you don't have to sign your code, there's git blame for that :-)

kokes avatar Mar 24 '18 09:03 kokes

Yes, "explicit script import, or lazy loaded if $$ or $ is present in any of the markdown cells" is good. But i am not so good at javascript, take the wheel please, I will learn the changes.

nagexiucai avatar Mar 26 '18 05:03 nagexiucai

I'd just

Then you can uncomment that piece of code that does the rendering and then we can both test it live!

kokes avatar Mar 26 '18 06:03 kokes