remark là unified có remarkParse và remarkStringify
Gọi remark
thế này
const file = await remark()
.use(remarkPresetLintConsistent)
.use(remarkPresetLintRecommended)
.process('1) Hello, _Jupiter_ and *Neptune*!')
tương đương với gọi unified
thế này:
const file = await unified()
.use(remarkParse)
.use(remarkStringify)
.use(remarkPresetLintConsistent)
.use(remarkPresetLintRecommended)
.process('1) Hello, _Jupiter_ and *Neptune*!')
Nguồn:: Stack Overflow, Why can remark work independently from unified?