Skip to content

Commit 916d7df

Browse files
committed
fix preview path
1 parent 722c623 commit 916d7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Server {
116116
(
117117
await renderPreview(await readFile(path + ".md", "utf-8"), {
118118
root: this.root,
119-
path: pathname.slice("/".length),
119+
path: pathname,
120120
pages,
121121
resolver: this._resolver!
122122
})

0 commit comments

Comments
 (0)