aboutsummaryrefslogtreecommitdiff
path: root/src/lib/languages/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/languages/index.ts')
-rw-r--r--src/lib/languages/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/languages/index.ts b/src/lib/languages/index.ts
new file mode 100644
index 0000000..296c1fa
--- /dev/null
+++ b/src/lib/languages/index.ts
@@ -0,0 +1,6 @@
+import { svelte } from './svelte'
+import type { Hljs } from './types'
+
+export function registerLanguages(hljs: Hljs) {
+ hljs.registerLanguage('svelte', svelte)
+}