Skip to content

Commit

Permalink
fix: upgrade vite-plugin-vue-markdown, close #696
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 12, 2022
1 parent 3c06398 commit 9087b08
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
1 change: 0 additions & 1 deletion .tazerc.json
Expand Up @@ -4,7 +4,6 @@
"execa",
"tsup",
"codemirror",
"vite-plugin-vue-markdown",
"monaco-editor"
]
}
2 changes: 1 addition & 1 deletion packages/slidev/node/plugins/loaders.ts
Expand Up @@ -183,7 +183,7 @@ export function createSlidesLoader(
Array.from(hmrPages).map(async (i) => {
const file = `${slidePrefix}${i + 1}.md`
try {
const md = await transformMarkdown(await (<any>MarkdownPlugin.transform)(newData.slides[i]?.content, file), i, newData)
const md = await transformMarkdown((await (<any>MarkdownPlugin.transform)(newData.slides[i]?.content, file)).code, i, newData)
const handleHotUpdate = 'handler' in VuePlugin.handleHotUpdate! ? VuePlugin.handleHotUpdate!.handler : VuePlugin.handleHotUpdate!
return await handleHotUpdate({
...ctx,
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/package.json
Expand Up @@ -90,7 +90,7 @@
"vite": "^3.1.0",
"vite-plugin-inspect": "^0.7.1",
"vite-plugin-remote-assets": "^0.3.0",
"vite-plugin-vue-markdown": "~0.20.1",
"vite-plugin-vue-markdown": "^0.22.1",
"vite-plugin-vue-server-ref": "^0.3.0",
"vite-plugin-windicss": "^1.8.8",
"vue": "^3.2.39",
Expand Down
30 changes: 22 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9087b08

Please sign in to comment.