Skip to content

Commit 0047243

Browse files
authored
Merge pull request #27 from chkware/26-need-better-syntax-highlighting-support
feat: add syntax highlighting support for http and yaml
2 parents 0a965c5 + b7ca9a9 commit 0047243

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docusaurus.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/palenight');
4+
const lightCodeTheme = require('prism-react-renderer/themes/github');
55
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

77
const TwitterSvg =
@@ -127,6 +127,7 @@ const config = {
127127
respectPrefersColorScheme: true,
128128
},
129129
prism: {
130+
additionalLanguages: ['http', 'yaml'],
130131
theme: lightCodeTheme,
131132
darkTheme: darkCodeTheme,
132133
},

0 commit comments

Comments
 (0)