HTML-LML
Converts HTML to LML or an AST format
// convert HTML to LMLconst parseHTML = parseHTML; ;
Full signiture:
parseHTMLsource: string, parseConfig?: ParseConfig IParser
See the lml documentation for details
CLI
There is a dedicated command line tool for LML: lml-cli Install that and this package globally to allow for HTML parsing on command line:
npm install --global html-lmlnpm install --global lml-clilml --to lml source.html