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:
parent
43aa09a88b
commit
61f714aa07
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue