This commit is contained in:
2023-01-20 12:29:32 +08:00
parent 40fae1c7c0
commit 0b2d9e3efd
23 changed files with 271 additions and 150 deletions

View File

@@ -7,6 +7,8 @@ import { NaiveUiResolver } from "unplugin-vue-components/resolvers"
import IconsResolver from "unplugin-icons/resolver"
import Icons from "unplugin-icons/vite"
import Markdown from "vite-plugin-vue-markdown"
import Highlight from "markdown-it-highlightjs"
import c from "highlight.js/lib/languages/c"
const url = "https://ojtest.hyyz.izhai.net"
const proxyConfig = {
@@ -52,7 +54,15 @@ export default defineConfig({
dts: "./src/components.d.ts",
}),
Icons({ autoInstall: true }),
Markdown(),
Markdown({
markdownItSetup(md) {
md.use(Highlight, {
register: {
c,
},
})
},
}),
],
server: {
proxy: {