Skip to content

Commit

Permalink
fix(macros): correct anchor-link encoding (#12059)
Browse files Browse the repository at this point in the history
remove superfluous url encoding on anchor hrefs
  • Loading branch information
argl authored Oct 30, 2024
1 parent 807bdc0 commit 05f5591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kumascript/src/api/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class HTMLTool {
// Link the first element child to the ID.
const firstContent = $element.contents().first();
if (!firstContent.is("a") && firstContent.find("a").length === 0) {
$(firstContent).wrap(`<a href="#${encodeURIComponent(id)}"></a>`);
$(firstContent).wrap(`<a href="#${id}"></a>`);
}
}
});
Expand Down

0 comments on commit 05f5591

Please sign in to comment.