1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

#4 renamed stringify

This commit is contained in:
Fedor Katurov 2021-05-06 15:44:35 +07:00
parent 43aa09a88b
commit 61f714aa07

View file

@ -1,6 +1,6 @@
import extract from "remark-extract-frontmatter"; import extract from "remark-extract-frontmatter";
import frontmatter from "remark-frontmatter"; import frontmatter from "remark-frontmatter";
import compiler from "retext-stringify"; import stringify from "retext-stringify";
import parser from "remark-parse"; import parser from "remark-parse";
import unified from "unified"; import unified from "unified";
import { parse } from "yaml"; import { parse } from "yaml";
@ -26,7 +26,7 @@ export class Template<
} }
const processor = unified() const processor = unified()
.use(compiler) .use(stringify)
.use(frontmatter) .use(frontmatter)
.use(extract, { yaml: parse }) .use(extract, { yaml: parse })
.use(removeFrontmatter) .use(removeFrontmatter)