diff --git a/apps/wiki.json b/apps/wiki.json index f1691bb12..97ecc65b8 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&UMb81rZg54kgoGBmpGBtWcmtuioPfTx6HT3OyQYJ/LU=.sha256" + "previous": "&LCMT+xWf3xEYwQ7HLx9AUHuj0wTHOn2Ux0uUz8Anlu4=.sha256" } \ No newline at end of file diff --git a/apps/wiki/handler.js b/apps/wiki/handler.js index 373e805ee..76719676c 100644 --- a/apps/wiki/handler.js +++ b/apps/wiki/handler.js @@ -2,9 +2,9 @@ import * as utils from './utils.js'; import * as commonmark from './commonmark.min.js'; function markdown(md) { - var reader = new commonmark.Parser({safe: true}); - var writer = new commonmark.HtmlRenderer(); - var parsed = reader.parse(md || ''); + let reader = new commonmark.Parser({safe: true}); + let writer = new commonmark.HtmlRenderer(); + let parsed = reader.parse(md || ''); let walker = parsed.walker(); let event; while ((event = walker.next())) { @@ -55,7 +55,7 @@ async function main() { await respond({ data: `

${wiki_name}: ${wiki_doc_name}

-
${markdown(md)}
+
${markdown(md)}
`, content_type: 'text/html', status_code: 200,