diff --git a/app.js b/app.js index 7a0b111..4c71ea3 100644 --- a/app.js +++ b/app.js @@ -52,7 +52,7 @@ router.post('/micropub', async (ctx, next) => { }) function readMarkdown(md) { - const parsed = parse(value); + const parsed = parse(md); const codeBlocks = parsed.children.filter((block) => block.type === "code"); const blocks = { html: codeBlocks.filter((block) => block.lang === "html"),