fix: add default value for base in `createMarkdownRenderer` (#555) (#556)

pull/716/head
Divyansh Singh 2 years ago committed by GitHub
parent 5f62fcd740
commit 78a2e84e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

@ -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)

Loading…
Cancel
Save