Benjamin Atkin 5 years ago
parent
commit
51eca0f2ea
  1. 2
      app.js

2
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"),

Loading…
Cancel
Save