Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
455 B
455 B
Fix fenced code block in a 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");
~~~
\`;
~~~~
`;