html-lml
v0.8.1
Published
HTML parser extension for the LML package
Downloads
2
Maintainers
Readme
HTML-LML
Converts HTML to LML or an AST format
// convert HTML to LML
const parseHTML = require('lml').parseHTML;
parseHTML(htmlString).toLML();
Full signiture:
parseHTML(source: 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-lml
npm install --global lml-cli
lml --to lml source.html