remove highlightjs

This commit is contained in:
Malte Teichert
2024-05-19 16:59:49 +02:00
parent b22da65ad7
commit 98969c8173
3 changed files with 3031 additions and 16 deletions

View File

@@ -40,7 +40,6 @@
},
"type": "module",
"dependencies": {
"highlight.js": "11.9.0",
"@floating-ui/dom": "1.6.5"
}
}

3031
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,21 +1,6 @@
<script lang="ts">
import '../app.postcss';
// Highlight JS
import hljs from 'highlight.js/lib/core';
import 'highlight.js/styles/github-dark.css';
import { storeHighlightJs } from '@skeletonlabs/skeleton';
import xml from 'highlight.js/lib/languages/xml'; // for HTML
import css from 'highlight.js/lib/languages/css';
import javascript from 'highlight.js/lib/languages/javascript';
import typescript from 'highlight.js/lib/languages/typescript';
hljs.registerLanguage('xml', xml); // for HTML
hljs.registerLanguage('css', css);
hljs.registerLanguage('javascript', javascript);
hljs.registerLanguage('typescript', typescript);
storeHighlightJs.set(hljs);
// Floating UI for Popups
import { computePosition, autoUpdate, flip, shift, offset, arrow } from '@floating-ui/dom';
import { storePopup } from '@skeletonlabs/skeleton';