scribe-plugin-content-cleaner

1.0.1 • Public • Published

Scribe Content Cleaner plugin

Formats the content of the HTML wrapped by the Scribe instance and applies Guardian rules for cleaning content to a standard format.

Rules summary

  • Reduce multiple whitespace to a single space
  • Turns -- into the endash character, regards of spacing around the double-hyphens
  • Turns - into the endash character
  • Removes elements that only consist of break return elements
  • Reduces multiple break-returns to a single break return
  • Where a break-return separates non-boundary characters the break-return is replaced with a space

Running the tests

  • npm install
  • npm test

Known issues

Tests are not running locally on Firefox due to an out-of-date Selenium Webdriver dependency

Readme

Keywords

none

Package Sidebar

Install

npm i scribe-plugin-content-cleaner

Weekly Downloads

1

Version

1.0.1

License

none

Last publish

Collaborators

  • scribe-dev