astro/packages/integrations/mdx/test/fixtures/mdx-script-style-raw/src/pages/index.mdx
Bjorn Lu 964d55246b
Prevent HTML-escape of raw strings in JSX script/style tags (#6459)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-03-09 00:29:22 +08:00

13 lines
170 B
Text

# Script style raw
<script id="test-script">
{`console.log('raw script')`}
</script>
<style id="test-style">
{`
h1[id="script-style-raw"] {
color: red;
}
`}
</style>