feat: enable fonts by theme(courseapp)

This commit is contained in:
Rotimi Best
2025-06-01 04:45:16 +01:00
parent 830759d125
commit 9c1b0bb9c0
29 changed files with 179 additions and 90 deletions
@@ -1,10 +1,11 @@
import { mdsvex, escapeSvelte } from 'mdsvex';
import { escapeSvelte, mdsvex } from 'mdsvex';
import adapter from '@sveltejs/adapter-auto';
import { createHighlighter } from 'shiki';
import rehypeSlug from 'rehype-slug';
import rehypeUnwrapImages from 'rehype-unwrap-images';
import remarkToc from 'remark-toc';
import rehypeSlug from 'rehype-slug';
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { createHighlighter } from 'shiki';
/** @type {import('mdsvex').MdsvexOptions} */
const mdsvexOptions = {
@@ -26,7 +27,12 @@ const mdsvexOptions = {
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [vitePreprocess(), mdsvex(mdsvexOptions)],
preprocess: [
vitePreprocess({
script: true
}),
mdsvex(mdsvexOptions)
],
kit: {
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.