This commit is contained in:
Clément Pons
2025-04-22 11:33:33 +02:00

View File

@@ -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)],
} }
} }
}) })