$ signs are used for LaTeX markup. The collision is unfortunate and it is possible to use other delimiters for LaTeX, but there is no reason to break existing code now. Why do you want to run complicated HTML/JavaScript through SageMathCell at all? I suspect it is better to build your page independently and then insert Sage code into it, rather than make the whole page part of Sage code.
Best, Andrey On Monday, 9 October 2023 at 23:30:18 UTC-6 [email protected] wrote: > There appears to be a bug in SageMathCell when running in HTML mode with > the handling of JavaScript template literals > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals > . > These literals are like Python f-strings. The syntax for string > interpolation requires a dollar sign, but that causes some kind of > corruption in SageMathCell. Here's a small demo. (I backslash-escaped the > dollar to prevent the corruption). > > > https://sagecell.sagemath.org/?z=eJx9UUtrwzAMvvtXaGXQhEFy2WlNc-kKG-wF66WwQ91arcVcO8RKu1L63yf3MRiDXSz5kz59elRX96-jyfRtDJbXrlbVxaA2YpjYYf3OLfkVkGdsm-A0U_DAGLkqTwmqKs-EeTC7RL_9jyRRVTX1OIUghjUK_iV4I7ChzfmtypNPvukYeNfgsJfyeir4hdV-Jf8sy4f1XgEsgo8MG-1gCGwpFuJ2OPiJGBG-hBrdoueXYLBYUht57HAtwMiSMwMllLKEiUVYBufCNg3hyCNkW2IbpJW5XnxGp6PNYanJxeJISQoFeY_tw-T5SbRm09ABphnR3MHH9V5aOswuAo8MUao5AyvayAJEL2rZRIuxcww6nnqV5D-F-78K9-EmzT1QhzzLe2W6xXFvYtMx0mmOJ_0GTRGgdw==&lang=html > > Is this a bug? Is there a workaround? > > -- You received this message because you are subscribed to the Google Groups "sage-cell" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-cell/6f5f1a30-9bbf-4e22-b314-a083564842e6n%40googlegroups.com.
