modernweb-dev / rocket

The modern web setup for static sites with a sprinkle of JavaScript
https://rocket.modern-web.dev
MIT License
368 stars 51 forks source link

[bug] Js story doesn't render tick blocks with '${}' properly #431

Open guillemcordoba opened 2 years ago

guillemcordoba commented 2 years ago

This code in a page.rocket.md file:

```js story
import {html} from '@mdjs/mdjs/preview';
const hey = 'hey';

export const StoryPreview = () => html` Use ${hey} in Rocket! `;


Is rendered like this in the final html

`Use ${hey} in Rocket!`

I would expect for it to render like this:

`Use hey in Rocket!`