File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export interface MarkdownRenderer {
42
42
}
43
43
44
44
export const createMarkdownRenderer = (
45
+ root : string ,
45
46
options : MarkdownOptions = { }
46
47
) : MarkdownRenderer => {
47
48
const md = MarkdownIt ( {
@@ -55,7 +56,7 @@ export const createMarkdownRenderer = (
55
56
md . use ( componentPlugin )
56
57
. use ( highlightLinePlugin )
57
58
. use ( preWrapperPlugin )
58
- . use ( snippetPlugin )
59
+ . use ( snippetPlugin , root )
59
60
. use ( hoistPlugin )
60
61
. use ( containerPlugin )
61
62
. use ( extractHeaderPlugin )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export function createMarkdownToVueRenderFn(
19
19
root : string ,
20
20
options : MarkdownOptions = { }
21
21
) {
22
- const md = createMarkdownRenderer ( options )
22
+ const md = createMarkdownRenderer ( root , options )
23
23
24
24
return ( src : string , file : string ) : MarkdownCompileResult => {
25
25
const relativePath = slash ( path . relative ( root , file ) )
You can’t perform that action at this time.
0 commit comments