guardian / scribe-plugin-curly-quotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scribe-plugin-curly-quotes Build Status

Substitutes plain quotation marks with their semantic equivalents.

Installation

bower install scribe-plugin-curly-quotes

Alternatively, you can access the distribution files through GitHub releases.

Usage Example

scribe-plugin-curly-quotes is an AMD module:

require(['scribe', 'scribe-plugin-curly-quotes'], function (Scribe, scribePluginCurlyQuotes) {
  var scribeElement = document.querySelector('.scribe');
  // Create an instance of Scribe
  var scribe = new Scribe(scribeElement);

  scribe.use(scribePluginCurlyQuotes());
});

Developing and testing

Run ./setup.sh to download dependencies

Run ./run-tests.sh to run the tests

About


Languages

Language:JavaScript 88.7%Language:HTML 9.0%Language:Shell 2.2%