From a3cca9aae67b9cee1c483812ce036a862175492c Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 16 Nov 2023 01:35:36 +0000 Subject: [PATCH] Slight wiki formatting tweaks. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4636 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/wiki.json | 2 +- apps/wiki/handler.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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,