fix(theme): upgrade prism-react-renderer, fix html script and style tag highlighting (#9567)

This commit is contained in:
Sébastien Lorber 2023-11-21 12:40:28 +01:00 committed by GitHub
parent 424ffd2e29
commit 58f59e7f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 8 deletions

View file

@ -383,3 +383,23 @@ y = times2(x);
% highlight-end
\end{document}
```
## HTML - script + style highlighting
See https://github.com/facebook/docusaurus/issues/9517
```html
<html lang="en">
<head>
<script>
const name = 'Formidable';
console.log(name);
</script>
<style>
.some-class {
border: solid red thick;
}
</style>
</head>
</html>
```