Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
var fs = require("fs"); var path = require("path"); var unified = require("unified"); var markdown = require("remark-parse"); var remark2rehype = require("remark-rehype"); var anthor = require("rehype-slugs"); var sanitize = require("hast-util-sanitize"); var format = require("rehype-format"); var html = require("rehype-stringify"); var report = require("vfile-reporter");
unified is an interface for processing text using syntax trees. Syntax trees are a representation of text understandable to programs. Those programs, called plugins, take these trees and inspect and modify them. To get to the syntax tree from text, there is a parser. To get from that back to text, there is a compiler. This is the process of a processor.
1 2 3 4 5 6 7 8 9 10 11
| ........................ process ........................... | | .......... parse ... | ... run ... | ... stringify ..........|