parse5
parse5 copied to clipboard
Html pretty support?
Html pretty support?
out of scope
E.G serialize(options) options can setup some formatting
It could theoretically, but then the scope of this project becomes bigger.
i have an ecosystem above parse5 (which is a parser), perhaps you want that: https://github.com/syntax-tree/hast-util-from-html-isomorphic, https://github.com/syntax-tree/hast-util-format, https://github.com/syntax-tree/hast-util-to-html
understand it, However, in most cases, formatting is a very common feature, and we have to introduce terms like "j's-beauty" and "prittier" to implement it. :(
different tools do different things and I think that’s okay!