You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you put something like the following into a bikeshed doc (note the backquotes for the string):
<script>
function foo(p, label, div) {
// Do something with |p|
let nodes = document.querySelctorAll(`*[id^="${p}"]`)
}
</script>
bikeshed prints a warning about the var |p| being used just once, And also changes the JS code to
let nodes = document.querySelectorAll(<code>*[id^="${prefix}"]</code>);
It seems as if bikeshed is parsing the contents of the script as regular bikeshed texxt. Can it be turned off?
An alternative is to place the JS code in a separate file, which works. But then the spec preview won't have the necessary files to generate the preview as expected. (The locally generated spec will, of course, look right.)
The text was updated successfully, but these errors were encountered:
Oooof, indeed. Hm, I'm gonna have to do some mangling to get that to work. The `-Markdown behavior is done before the rest of Markdown (which knows not to look inside of scripts and similar elements) precisely because it needs to let you escape things like script open tags. I've known I'd need to get the two to work together for a while now, but with a bug report in the wild I'll really have to prioritize it.
If you put something like the following into a bikeshed doc (note the backquotes for the string):
bikeshed prints a warning about the var |p| being used just once, And also changes the JS code to
It seems as if bikeshed is parsing the contents of the script as regular bikeshed texxt. Can it be turned off?
An alternative is to place the JS code in a separate file, which works. But then the spec preview won't have the necessary files to generate the preview as expected. (The locally generated spec will, of course, look right.)
The text was updated successfully, but these errors were encountered: