You've already forked remark-ofm
Merge branch 'master' of https://git.peaceultime.com/peaceultime/remark-ofm
This commit is contained in:
@@ -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)],
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user