observablehq / framework

A static site generator for data apps, dashboards, reports, and more. Observable Framework combines JavaScript on the front-end for interactive graphics with any language on the back-end for data analysis.
https://observablehq.com/framework/
ISC License
2.13k stars 85 forks source link

Inline expressions following literal backticks are not parsed correctly #1433

Closed mbostock closed 3 weeks ago

mbostock commented 3 weeks ago

Minimal reproduction:

<code>```</code>

<pre>${`1`}</pre>

The ${`1`} should be interpreted as an inline expression, but it’s not. Probably a bug in how code spans are parsed.

mbostock commented 3 weeks ago

Fixed in #1438.