Skip to content

Commit 78a2e84

Browse files
authored
fix: add default value for base in createMarkdownRenderer (#555) (#556)
1 parent 5f62fcd commit 78a2e84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node/markdown/markdown.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export type { Header }
5656
export const createMarkdownRenderer = async (
5757
srcDir: string,
5858
options: MarkdownOptions = {},
59-
base: string
59+
base = '/'
6060
): Promise<MarkdownRenderer> => {
6161
const md = MarkdownIt({
6262
html: true,

src/node/markdownToVue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function createMarkdownToVueRenderFn(
2727
pages: string[],
2828
userDefines: Record<string, any> | undefined,
2929
isBuild = false,
30-
base: string,
30+
base = '/',
3131
includeLastUpdatedData = false
3232
) {
3333
const md = await createMarkdownRenderer(srcDir, options, base)

0 commit comments

Comments
 (0)