From b6d293d2158c66a3edbb86c0c43b4c51af3484f7 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 21 Apr 2017 07:53:00 +0300 Subject: doc: prepare js code for eslint-plugin-markdown This is an initial step to eliminate most of parsing errors. PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz Reviewed-By: James M Snell Reviewed-By: Timothy Gu Reviewed-By: Gibson Fahnestock Reviewed-By: Yuta Hiroto --- doc/api/zlib.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/api/zlib.md') diff --git a/doc/api/zlib.md b/doc/api/zlib.md index a91456bb0b..804324521a 100644 --- a/doc/api/zlib.md +++ b/doc/api/zlib.md @@ -84,7 +84,9 @@ request.on('response', (response) => { break; } }); +``` +```js // server example // Running a gzip operation on every request is quite expensive. // It would be much more efficient to cache the compressed buffer. @@ -159,7 +161,7 @@ For example, to reduce the default memory requirements from 256K to 128K, the options should be set to: ```js -{ windowBits: 14, memLevel: 7 } +const options = { windowBits: 14, memLevel: 7 }; ``` This will, however, generally degrade compression. -- cgit v1.2.3