notebook
notebook copied to clipboard
Javascript in markdown renders incorrectly.
This chunk of javascript code in a markdown cell (using the mongodb api)
db.unicorns.update({
name: "Rarity"}, {
$push: {
friends: {
$each: ["TwilightSparkle", "Applejack", "Fluttershy"]}}}, {
upsert: true})
renders incorrectly if tagged explicitly as a javascript snippet:
db.unicorns.update({
name: "Rarity"}, {
@@0@@each: ["TwilightSparkle", "Applejack", "Fluttershy"]}}}, {
upsert: true})
I'm running version:
$ jupyter --version
4.3.0
Looks like our maths parsing going wrong :-(
Ahhh, the two dollar signs, I missed that.
It does work properly in a code block when I do not explicitly call out javascript. So it seems like calling out the language is disabling some guard against mathjax parsing.
I'd guess that the Javascript highlight breaks the replacement that would put the 'maths' back in there in place of @@0@@.
Any progress on this? It is rather annoying since dollar signs are an important part of code and one cannot really escape them somehow in a code cell.
Does this still occur with current Jupyter Notebook? If not, please close.