453 B
453 B
Fix fenced code block in JS templates (#19908 by @Kjubikstronk)
// Input
const content = markdown`
\`\`\`js
markdown\`
\\\`\\\`\\\`js
console.log('hi');
\\\`\\\`\\\`
\`
\`\`\`
`;
// Prettier stable
const content = markdown`
~~~js
markdown\`
~~~js
console.log("hi");
~~~
\`;
~~~
`;
// Prettier main
const content = markdown`
~~~~js
markdown\`
~~~js
console.log("hi");
~~~
\`;
~~~~
`;