How to use hast-util-from-dom - 1 common examples

To help you get started, we’ve selected a few hast-util-from-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rehypejs / rehype-dom / packages / rehype-dom-parse / src / index.js View on Github external
function parser(doc, file) {
    const create = settings.fragment == null || settings.fragment ? createFragment : createDocument;
    return fromDOM(create(String(file)));
  }

hast-util-from-dom

hast utility to create a tree from the DOM

ISC
Latest version published 1 year ago

Package Health Score

60 / 100
Full package analysis

Popular hast-util-from-dom functions