chore: upgrade syntax highlighting dependencies, prism-react-renderer to v2, react-live to v4 (#9316)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Chongyi Zheng 2023-10-06 13:15:14 -04:00 committed by GitHub
parent df42d891c2
commit dceaae41d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 124 additions and 137 deletions

View file

@ -5,7 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
import darkTheme from 'prism-react-renderer/themes/vsDark/index.cjs.js';
import {themes} from 'prism-react-renderer';
const darkTheme = themes.vsDark;
export default {
plain: {

View file

@ -5,7 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
import lightTheme from 'prism-react-renderer/themes/github/index.cjs.js';
import {themes} from 'prism-react-renderer';
const lightTheme = themes.github;
export default {
...lightTheme,