From 4dd3f8009b6467b512acf11eafdb3bdbfec0887c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 12 Nov 2024 12:25:51 +0100 Subject: [PATCH] config: enable toml syntax highlighting 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 --- docusaurus.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index e7bcd914f..e448080e2 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -138,6 +138,7 @@ const config: Config = { prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, + additionalLanguages: ['toml'], }, } satisfies Preset.ThemeConfig, plugins: [