|
|
@ -125,10 +125,9 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => {
|
|
|
|
title ? `[${title}]` : ''
|
|
|
|
title ? `[${title}]` : ''
|
|
|
|
}`
|
|
|
|
}`
|
|
|
|
|
|
|
|
|
|
|
|
const resolvedPath = path.resolve(
|
|
|
|
const { realPath, path: _path } = state.env as MarkdownEnv
|
|
|
|
path.dirname((state.env as MarkdownEnv).path),
|
|
|
|
const resolvedPath = path.resolve(path.dirname(realPath ?? _path), filepath)
|
|
|
|
filepath
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
token.src = [resolvedPath, region.slice(1)]
|
|
|
|
token.src = [resolvedPath, region.slice(1)]
|
|
|
|
token.markup = '```'
|
|
|
|
token.markup = '```'
|
|
|
|