parse5 icon indicating copy to clipboard operation
parse5 copied to clipboard

Html pretty support?

Open tianyingchun opened this issue 5 months ago • 2 comments
trafficstars

Html pretty support?

tianyingchun avatar Jun 17 '25 07:06 tianyingchun

out of scope

wooorm avatar Jun 17 '25 10:06 wooorm

E.G serialize(options) options can setup some formatting

tianyingchun avatar Jun 17 '25 23:06 tianyingchun

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

wooorm avatar Jun 19 '25 07:06 wooorm

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. :(

tianyingchun avatar Jun 19 '25 07:06 tianyingchun

different tools do different things and I think that’s okay!

wooorm avatar Jun 19 '25 08:06 wooorm