Skip to content

Commit

Permalink
prism-react-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 16, 2025
1 parent e39d725 commit 25170ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-nocheck
// Note: type annotations allow type checking and IDEs autocompletion

const { themes } = require('prism-react-renderer');

// script-src causes development builds to fail
// But unsafe-eval should NOT be in production builds
// Also, put GTM first because sometimes the ';' in the escaped single quotes causes the browser to think it's the end
Expand Down Expand Up @@ -125,7 +127,7 @@ module.exports = async function createConfigAsync() {
],
},
prism: {
theme: require('prism-react-renderer/themes/github'),
theme: themes.github,
additionalLanguages: ['csharp', 'toml', 'ocaml'],
},
// https://github.com/flexanalytics/plugin-image-zoom
Expand Down

0 comments on commit 25170ad

Please sign in to comment.