Skip to content

Commit

Permalink
fix: add default value for base in createMarkdownRenderer (#555) (#556
Browse files Browse the repository at this point in the history
)
  • Loading branch information
brc-dd authored Jun 3, 2022
1 parent 5f62fcd commit 78a2e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node/markdown/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export type { Header }
export const createMarkdownRenderer = async (
srcDir: string,
options: MarkdownOptions = {},
base: string
base = '/'
): Promise<MarkdownRenderer> => {
const md = MarkdownIt({
html: true,
Expand Down
2 changes: 1 addition & 1 deletion src/node/markdownToVue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function createMarkdownToVueRenderFn(
pages: string[],
userDefines: Record<string, any> | undefined,
isBuild = false,
base: string,
base = '/',
includeLastUpdatedData = false
) {
const md = await createMarkdownRenderer(srcDir, options, base)
Expand Down

0 comments on commit 78a2e84

Please sign in to comment.