Skip to content

Commit

Permalink
config: enable toml syntax highlighting
Browse files Browse the repository at this point in the history
docusaurus doesn't enable toml highlighting by default, let's enable it

See the following links for the list of languages enabled by default:
https://docusaurus.io/docs/markdown-features/code-blocks#supported-languages
https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/generate-prism-languages/index.ts#L9-L23
  • Loading branch information
ondrejbudai committed Nov 12, 2024
1 parent 29d7740 commit a547e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const config: Config = {
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['toml'],
},
} satisfies Preset.ThemeConfig,
plugins: [
Expand Down

0 comments on commit a547e54

Please sign in to comment.