Skip to content

v1.5.0

Choose a tag to compare

@sitefinitysteve sitefinitysteve released this 10 Mar 12:44
· 18 commits to main since this release

Added

  • Quote normalization — smart/curly quotes (""'') are now automatically normalized to straight quotes before diffing in DiffHtml, eliminating false diffs caused by copy-paste from word processors or CMS editors
  • ignoreFormattingTags prop for DiffHtml — strips inline formatting tags (<strong>, <em>, <b>, <i>, <u>, <s>, <mark>, <sub>, <sup>) before diffing so style-only changes don't produce noisy output
  • normalizeQuotes and stripFormattingTags utility functions (src/utils/normalizeHtml.ts)
  • Comprehensive test suites for quote normalization and formatting tag stripping (DiffHtml + normalizeHtml)

Changed

  • DiffHtml now pipes both oldText and newText through a normalization step before computing the diff
  • ESLint config, lint scripts (lint, lint:fix), and Husky prepare script added to package.json
  • Self-closing tag formatting applied to DiffHtml template