Some var => let.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4780 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2024-01-18 00:38:38 +00:00
parent 4867bacb72
commit 6ecb3ccd08
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
"previous": "&pc/SH1ng7DyH2BZFDMcYoUMYxRdhrwXGzoMhQho7ju4=.sha256"
"previous": "&6j+dB7MfKW+rrUTaoBMTVVEWCiIB/F84IWWvlVfsxH0=.sha256"
}

View File

@ -46,14 +46,14 @@ function image(node, entering) {
}
export function markdown(md) {
var reader = new commonmark.Parser({safe: true});
var writer = new commonmark.HtmlRenderer();
let reader = new commonmark.Parser({safe: true});
let writer = new commonmark.HtmlRenderer();
writer.image = image;
var parsed = reader.parse(md || '');
let parsed = reader.parse(md || '');
parsed = linkify.transform(parsed);
parsed = hashtagify.transform(parsed);
var walker = parsed.walker();
var event, node;
let walker = parsed.walker();
let event, node;
while ((event = walker.next())) {
node = event.node;
if (event.entering) {