From: XhmikosR Date: Thu, 31 Jul 2014 17:11:46 +0000 (+0300) Subject: Update README.md. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3af54edc24fb4ac2d63f87cd09f21d242b367047;p=html-minifier.git Update README.md. --- diff --git a/README.md b/README.md index 1267ac2..f05bd13 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,10 @@ How does HTMLMinifier compare to [another solution](http://www.willpeavy.com/min | `keepClosingSlash` | Keep the trailing slash on singleton elements | `false` | | `caseSensitive` | Treat attributes in case sensitive manner (useful for SVG; e.g. viewBox) | `false` | | `minifyJS` | Minify Javascript in script elements and on* attributes (uses [UglifyJS](https://github.com/mishoo/UglifyJS2)) | `false` (could be `true`, `false`, `Object` (options)) | -| `minifyCSS` | Minify CSS in style elements and style attributes (uses [clean-css](https://github.com/GoalSmashers/clean-css)) | `false` (could be `true`, `false`, `Object` (options)) | +| `minifyCSS` | Minify CSS in style elements and style attributes (uses [clean-css](https://github.com/GoalSmashers/clean-css)) | `false` (could be `true`, `false`, `Object` (options)) | | `ignoreCustomComments` | Array of regex'es that allow to ignore certain comments, when matched | `[ ]` | -| `processScripts` | Array of strings corresponding to types of script elements to process through minifier (e.g. "text/ng-template", "text/x-handlebars-template", etc.) | `[ ]` | -| `maxLineLength` | Specify a maximum line length. Compressed output will be split by newlines at valid html split-points. | +| `processScripts` | Array of strings corresponding to types of script elements to process through minifier (e.g. `text/ng-template`, `text/x-handlebars-template`, etc.) | `[ ]` | +| `maxLineLength` | Specify a maximum line length. Compressed output will be split by newlines at valid HTML split-points. | | `customAttrAssign` | `[ ]` | Arrays of regex'es that allow to support custom attribute assign expressions (e.g. `'
'`) | | `customAttrSurround` | `[ ]` | Arrays of regex'es that allow to support custom attribute surround expressions (e.g. ``) | @@ -78,7 +78,7 @@ npm link . For command line usage please see `html-minifier --help` -### Node.js +## Node.js ```js var minify = require('html-minifier').minify;