summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/highlighter.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/highlighter.ts b/src/utils/highlighter.ts
new file mode 100644
index 0000000..eeaeff0
--- /dev/null
+++ b/src/utils/highlighter.ts
@@ -0,0 +1,6 @@
+import { createHighlighter } from 'shiki';
+
+export const highlighterPromise = createHighlighter({
+ langs: ['jsx', 'js'],
+ themes: ['min-dark']
+});