Closed amyzhaoyu closed 2 years ago
JavaScript does not allow dashes in variable names. In fact, when you create a JavaScript cell in a notebook such as:
copy-top = 10
you would get a syntax error.
We should validate the cell name field to avoid this from happening.
Describe the bug
If I name a cell with a label containing a dash (eg.
copy-top
) - I can save it in the notebook, however, when I go to embed the notebook cells, the resulting embed (iframe, etc) is blank.To Reproduce Steps to reproduce the behavior:
In a notebook, name a cell with a label containing a dash
-
(I didn't try other punctuation but assuming that is probably problematic as well).Click the checkmark.
Go to
...
--> export --> embed cells.Expected behavior Embed should work as expected (ie. the code/visualizations should render).
Desktop (please complete the following information):