How to use diffable-html - 2 common examples

To help you get started, we’ve selected a few diffable-html 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 ifiokjr / remirror / support / jest / jest.framework.ts View on Github external
print: val => {
    return toDiffableHtml(val).trim();
  },
});
github reakit / reakit / packages / website / src / components / EditorWithTabs.js View on Github external
const getHTML = (code, config, evalInContext) => {
  const component = compileComponent(code, config, evalInContext);
  const markup = renderToStaticMarkup(component);
  return diffableHtml(markup).trim();
};

diffable-html

Opinionated HTML formatter focused towards making HTML diffs readable.

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis

Popular diffable-html functions