-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/issue 96 enhanced copy to clipboard with PNPM docs #120
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for super-tapioca-5987ce ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
755280a
to
9bed337
Compare
9bed337
to
1ab52a9
Compare
442f2c8
to
485c9ed
Compare
Seems like some snippets are getting mangled during prerendering when used with the ctc-block component and / or are otherwise not having their HTML escaped 😞 Currently impacting these examples, which I had to leave as normal markdown code fences
Seems like a minimal reproduction <app-ctc-block variant="snippet" heading="src/pages/users.js">
```js
// eslint-disable-next-line no-unused-vars
export async function getBody(compilation, page, request) {
const users = await fetch("http://www.example.com/api/users").then((resp) => resp.json());
const timestamp = new Date().getTime();
return `
<body>
<h1>Hello from the server rendered users page! 👋</h1>
</body>
`;
}
```
</app-ctc-block> Escaping makes it work, but shows the <app-ctc-block variant="snippet" heading="src/pages/users.js">
```js
// eslint-disable-next-line no-unused-vars
export async function getBody(compilation, page, request) {
const users = await fetch("http://www.example.com/api/users").then((resp) => resp.json());
const timestamp = new Date().getTime();
return \`
<body>
<h1>Hello from the server rendered users page! 👋</h1>
</body>
\`;
}
```
</app-ctc-block> Also, for some reason on the SSR page, the styles / images are all busted too? 😱 |
Related Issue
resolves #96
Summary of Changes
TODO
public-hoist-pattern[]=@lit-labs/*
and wc-compiler for PNPM users$
should be white in the output for runners variantUpstreams
Thoughts / Questions
<details>
+<summary>
, or maybepopover
for this? Perhaps align with Progressively Enhanced Capabilities content #81 ?