|
1 | 1 | diff --git a/server/utils/content.ts b/server/utils/content.ts |
2 | | -index e30eeb312d00dd6111b5574680e6b8b725d7cb76..2d6d6e570dfef6537276dc4a613f3cd5fcbf4e8c 100644 |
3 | 2 | --- a/server/utils/content.ts |
4 | 3 | +++ b/server/utils/content.ts |
5 | | -@@ -1,14 +1,15 @@ |
6 | | - import { defineContentPlugin, type ComarkContent, type CacheOptions, comarkContent } from 'comark-content'; |
7 | | - import fs from 'comark-content/sources/fs' |
8 | | - import github from 'comark-content/sources/github' |
| 4 | +@@ -4 +4 @@ |
9 | 5 | -import rangi from 'comark/plugins/rangi' |
10 | 6 | +import shiki from 'comark/plugins/shiki' |
11 | | - import security from 'comark/plugins/security' |
12 | | - import emoji from 'comark/plugins/emoji' |
13 | | - import toc from 'comark/plugins/toc' |
14 | | - import mermaid from 'comark/plugins/mermaid' |
15 | | - import yaml from 'comark-content/plugins/yaml' |
16 | | - import tracingOtel from 'comark-content/plugins/tracing/otel' |
17 | | --import { githubLight, githubDark } from 'rangi/themes' |
| 7 | +@@ -12 +12,2 @@ |
| 8 | +-import { geistTheme } from '../../utils/geist-theme.ts' |
18 | 9 | +import vitesseDark from '@shikijs/themes/vitesse-dark' |
19 | 10 | +import vitesseLight from '@shikijs/themes/vitesse-light' |
20 | | - import { contentTracer } from './tracer.ts' |
21 | | - |
22 | | - // Rebuilt only when the head advances (see `getProdContent`). Holds the *promise*, not the instance: the |
23 | | -@@ -18,7 +19,7 @@ let content: Promise<ComarkContent> | undefined |
24 | | - // Bump CONTENT_PARSER_VERSION in `cache.ts` when these plugins or their options change cached output. |
25 | | - const comarkPlugins = [ |
26 | | - mermaid({ theme: 'zinc-light', themeDark: 'zinc-dark' }), |
27 | | -- rangi({ theme: { light: githubLight, dark: githubDark } }), |
| 11 | +@@ -21 +22 @@ |
| 12 | +- rangi({ theme: geistTheme }), |
28 | 13 | + shiki({ registerDefaultThemes: false, themes: { light: vitesseLight, dark: vitesseDark } }), |
29 | | - toc({ depth: 3 }), |
30 | | - emoji(), |
31 | | - security({ |
0 commit comments