From 6ecb3ccd08ccd044763c48819a3913422b2e0586 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 18 Jan 2024 00:38:38 +0000 Subject: [PATCH] Some var => let. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4780 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb.json | 2 +- apps/ssb/tf-utils.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 11e37fe7..f350cc26 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&pc/SH1ng7DyH2BZFDMcYoUMYxRdhrwXGzoMhQho7ju4=.sha256" + "previous": "&6j+dB7MfKW+rrUTaoBMTVVEWCiIB/F84IWWvlVfsxH0=.sha256" } \ No newline at end of file diff --git a/apps/ssb/tf-utils.js b/apps/ssb/tf-utils.js index 715801e7..c9cc7ac2 100644 --- a/apps/ssb/tf-utils.js +++ b/apps/ssb/tf-utils.js @@ -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) {