How to use the richtypo.richtypo function in richtypo

To help you get started, we’ve selected a few richtypo 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 nalgeon / metalsmith-typography / lib / index.js View on Github external
Object.keys(files).forEach(function(file){
      debug('checking file: %s', file);
      if (!isHtml(file)) return;
      var data = files[file];
      debug('applying typography rules to file: %s', file);
      var str = richtypo.richtypo(data.contents.toString(), rules);
      data.contents = new Buffer(str);
      files[file] = data;
    });
  };

richtypo

HTML and Markdown typography enhancer with extensible rules

MIT
Latest version published 3 months ago

Package Health Score

68 / 100
Full package analysis