Skip to content

Commit

Permalink
var -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Sep 6, 2024
1 parent f2f0fe4 commit bd07700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/md2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ filter.stdio(function ({ t, c }, format, meta) {
level = 0;
return content;
} else if (t === "Link" && c[2][0][0] === ":") {
var id = c[2][0].substring(1);
const id = c[2][0].substring(1);
return [
filter.RawInline("html", `<a id="${id}" href="#${id}">`),
...c[1],
Expand Down

0 comments on commit bd07700

Please sign in to comment.