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();
|
||||
|
||||
// internal link
|
||||
const url = sluggify(fp + anchor)
|
||||
const url = encodeURIComponent(fp) + anchor;
|
||||
return {
|
||||
type: "link",
|
||||
url,
|
||||
|
|
@ -276,7 +276,7 @@ export default function ofm() {
|
|||
title,
|
||||
},
|
||||
},
|
||||
children: firstChild.children,
|
||||
children: [firstChild.children[0], ...node.children.slice(1)],
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue