Merge branch 'master' of https://git.peaceultime.com/peaceultime/remark-ofm
This commit is contained in:
commit
02d116c893
|
|
@ -167,7 +167,7 @@ export default function ofm() {
|
||||||
const alias = rawAlias?.slice(1).trim();
|
const alias = rawAlias?.slice(1).trim();
|
||||||
|
|
||||||
// internal link
|
// internal link
|
||||||
const url = sluggify(fp + anchor)
|
const url = encodeURIComponent(fp) + anchor;
|
||||||
return {
|
return {
|
||||||
type: "link",
|
type: "link",
|
||||||
url,
|
url,
|
||||||
|
|
@ -276,7 +276,7 @@ export default function ofm() {
|
||||||
title,
|
title,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
children: firstChild.children,
|
children: [firstChild.children[0], ...node.children.slice(1)],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue