Skip to content

Commit

Permalink
fix: syntax highlighting (#6138)
Browse files Browse the repository at this point in the history
We have to enable the shiki highlighting mode and set a theme.

Fixes MRGFY-4834

Depends-On: #6137
  • Loading branch information
sileht authored Mar 5, 2025
1 parent 041dd4a commit 219ad45
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 972 deletions.
11 changes: 8 additions & 3 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import mdx from '@astrojs/mdx';
import { defineConfig } from 'astro/config';
import AutoImport from 'astro-auto-import';
import { astroExpressiveCode } from 'astro-expressive-code';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import remarkSmartypants from 'remark-smartypants';
import { asideAutoImport, astroAsides } from './integrations/astro-asides';
import { youtubeAutoImport, astroYoutubeEmbeds } from './integrations/astro-youtube-embed';
import { ScalarApiReference } from './integrations/scalar-api-reference';
import { astroDocsExpressiveCode } from './integrations/expressive-code';
import { autolinkConfig } from './plugins/rehype-autolink-config';
import { rehypeOptimizeStatic } from './plugins/rehype-optimize-static';
import { rehypeTasklistEnhancer } from './plugins/rehype-tasklist-enhancer';
Expand Down Expand Up @@ -36,8 +36,13 @@ export default defineConfig({
}),
astroAsides(),
astroYoutubeEmbeds(),
astroDocsExpressiveCode(),
mdx(),
astroExpressiveCode({
themes: ['slack-ochin', 'slack-dark'],
}),
mdx({
syntaxHighlight: 'shiki',
shikiConfig: { themes: {light:'slack-ochin', dark: 'slack-dark'}}
}),
react({
include: ['react-icons', 'Tables'],
}),
Expand Down
21 changes: 0 additions & 21 deletions integrations/expressive-code.ts

This file was deleted.

Loading

0 comments on commit 219ad45

Please sign in to comment.