Transform Parse5’s AST to @starptech/prettyhtml-hast-util-from-parseHAST
The implementation is a derivated from hast-util-from-parse (Version 4.0.2)
npm install --save @starptech/prettyhtml-hast-util-from-parse
Modifications
- Use
@starptech/prettyhtml-hastscript
- Link
<template>
tags with the tree and remove container elements like#document-fragment