File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = function (src) {
21
21
const isProd = process . env . NODE_ENV === 'production'
22
22
const isServer = this . target === 'node'
23
23
const options = getOptions ( this )
24
+ const loader = Object . create ( this )
24
25
const { sourceDir } = options
25
26
let { markdown } = options
26
27
if ( ! markdown ) {
@@ -71,6 +72,7 @@ module.exports = function (src) {
71
72
data : { hoistedTags, links } ,
72
73
dataBlockString
73
74
} = markdown . render ( content , {
75
+ loader,
74
76
frontmatter : frontmatter . data ,
75
77
relPath : path . relative ( sourceDir , file )
76
78
} )
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ module.exports = (md, externalAttrs) => {
66
66
const routerLinks = md . $data . routerLinks || ( md . $data . routerLinks = [ ] )
67
67
routerLinks . push ( to )
68
68
69
- return Object . assign ( { } , token , {
70
- tag : 'router-link'
69
+ return Object . create ( token , {
70
+ tag : { value : 'router-link' }
71
71
} )
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments