4 ms·
I worked around the inline math issue by doing: md2 = x => md([x[0].replace(/\$(.*?)\$/g, m => tex([m.slice(1,-1)]).outerHTML)]) I do appreciate you addin
by dunham 9y ago
I worked around the inline math issue by doing:
md2 = x => md([x[0].replace(/\$(.*?)\$/g, m => tex([m.slice(1,-1)]).outerHTML)])
I do appreciate you adding support for ${tex`...`}, but it's still a bit more verbose than I'd like to type.
- mbostock 9y agoWell, it’s nice that you can always define your own tagged template literal. ;) The double backslashes certainly are annoying. We may be able to eliminate them by using String.raw. https://github.com/observablehq/notebook-stdlib/issues/10 https://github.com/observablehq/notebook-stdlib/issues/10
- dunham 9y agoI just saw that pop up on the front page of observablehq. That resolves another pain point for me. (My first experiment with the platform happened to have a lot of math exposition in it.)