Better code blocks

This commit is contained in:
2024-10-05 12:29:54 +03:00
parent 8f819f3ab1
commit 2311498575
7 changed files with 629 additions and 461 deletions

View File

@@ -1,8 +1,9 @@
import adapter from '@sveltejs/adapter-node'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
import {vitePreprocess} from '@sveltejs/vite-plugin-svelte'
import {mdsvex} from "mdsvex"
import remarkTypograf from "@mavrin/remark-typograf"
import externalLinks from "./rehype/external-links.js"
import {shikiHighlighter} from "./shikiHighlighter.js"
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -10,11 +11,14 @@ const config = {
preprocess: [
vitePreprocess(),
mdsvex({
highlight: {
highlighter: shikiHighlighter
},
remarkPlugins: [
remarkTypograf,
],
rehypePlugins: [
externalLinks
externalLinks,
]
})
],