mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
fix(theme): upgrade prism-react-renderer, fix html script and style tag highlighting (#9567)
This commit is contained in:
parent
424ffd2e29
commit
58f59e7f89
6 changed files with 28 additions and 8 deletions
|
@ -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>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue