From 8f07f2295bafa6975d26fe0b344b746cc4de40df Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Mon, 5 Aug 2019 14:32:11 -0400 Subject: [PATCH] fix: MD038/no-space-in-code Spaces inside code span elements --- .markdownlint.json | 1 - locale/ar/docs/guides/getting-started-guide.md | 2 +- locale/en/blog/release/v4.5.0.md | 2 +- locale/en/blog/release/v6.2.1.md | 2 +- locale/en/docs/guides/getting-started-guide.md | 2 +- locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md | 2 +- locale/fa/docs/guides/getting-started-guide.md | 2 +- locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md | 2 +- locale/it/docs/guides/getting-started-guide.md | 2 +- locale/ko/docs/guides/getting-started-guide.md | 4 ++-- locale/ru/about/working-groups.md | 2 +- locale/ru/docs/guides/getting-started-guide.md | 2 +- locale/ru/docs/meta/topics/dependencies.md | 2 +- locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md | 2 +- .../ru/knowledge/file-system/how-to-read-files-in-nodejs.md | 2 +- locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md | 2 +- locale/zh-cn/docs/guides/getting-started-guide.md | 2 +- 17 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.markdownlint.json b/.markdownlint.json index 5cff56c349210..8cdd11000a9d9 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -26,7 +26,6 @@ "MD034": false, "MD035": false, "MD036": false, - "MD038": false, "MD039": false, "MD040": false, "MD041": false, diff --git a/locale/ar/docs/guides/getting-started-guide.md b/locale/ar/docs/guides/getting-started-guide.md index 326aaaf48936b..8841483f856be 100644 --- a/locale/ar/docs/guides/getting-started-guide.md +++ b/locale/ar/docs/guides/getting-started-guide.md @@ -24,4 +24,4 @@ server.listen(port, hostname, () => { }); ``` -بعد ذلك، قم بتشغيل هذا الخادوم باستعمال الأمر ``` node app.js ```، و قم بزيارة الرابط http://localhost:3000 لترى رسالة مفادها 'Hello World'. +بعد ذلك، قم بتشغيل هذا الخادوم باستعمال الأمر `node app.js`، و قم بزيارة الرابط http://localhost:3000 لترى رسالة مفادها 'Hello World'. diff --git a/locale/en/blog/release/v4.5.0.md b/locale/en/blog/release/v4.5.0.md index fa15875f9a7cf..db3df38abfa6c 100644 --- a/locale/en/blog/release/v4.5.0.md +++ b/locale/en/blog/release/v4.5.0.md @@ -7,7 +7,7 @@ slug: node-v4-5-0 layout: blog-post.hbs author: Myles Borins --- - + ### Notable Changes Semver Minor: diff --git a/locale/en/blog/release/v6.2.1.md b/locale/en/blog/release/v6.2.1.md index 8a9cf46af05d6..11aea450d0d54 100644 --- a/locale/en/blog/release/v6.2.1.md +++ b/locale/en/blog/release/v6.2.1.md @@ -7,7 +7,7 @@ slug: node-v6-2-1 layout: blog-post.hbs author: Rod Vagg --- - + ### Notable changes * **buffer**: Ignore negative lengths in calls to `Buffer()` and `Buffer.allocUnsafe()`. This fixes a possible security concern (reported by Feross Aboukhadijeh) where user input is passed unchecked to the Buffer constructor or `allocUnsafe()` as it can expose parts of the memory slab used by other Buffers in the application. Note that negative lengths are not supported by the Buffer API and user input to the constructor should always be sanitised and type-checked. (Anna Henningsen) [#7051](https://github.com/nodejs/node/pull/7051) diff --git a/locale/en/docs/guides/getting-started-guide.md b/locale/en/docs/guides/getting-started-guide.md index a66d897400f47..593f0cfb3c534 100644 --- a/locale/en/docs/guides/getting-started-guide.md +++ b/locale/en/docs/guides/getting-started-guide.md @@ -25,4 +25,4 @@ server.listen(port, hostname, () => { }); ``` -After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World' +After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World' diff --git a/locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md b/locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md index ab9342c1999fe..132a049b7fd7b 100644 --- a/locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md +++ b/locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached! -You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. +You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. diff --git a/locale/fa/docs/guides/getting-started-guide.md b/locale/fa/docs/guides/getting-started-guide.md index a66d897400f47..593f0cfb3c534 100644 --- a/locale/fa/docs/guides/getting-started-guide.md +++ b/locale/fa/docs/guides/getting-started-guide.md @@ -25,4 +25,4 @@ server.listen(port, hostname, () => { }); ``` -After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World' +After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World' diff --git a/locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md b/locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md index ab9342c1999fe..132a049b7fd7b 100644 --- a/locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md +++ b/locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached! -You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. +You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. diff --git a/locale/it/docs/guides/getting-started-guide.md b/locale/it/docs/guides/getting-started-guide.md index a66d897400f47..593f0cfb3c534 100644 --- a/locale/it/docs/guides/getting-started-guide.md +++ b/locale/it/docs/guides/getting-started-guide.md @@ -25,4 +25,4 @@ server.listen(port, hostname, () => { }); ``` -After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World' +After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World' diff --git a/locale/ko/docs/guides/getting-started-guide.md b/locale/ko/docs/guides/getting-started-guide.md index 60995d6a9c579..bc1a0c436411a 100644 --- a/locale/ko/docs/guides/getting-started-guide.md +++ b/locale/ko/docs/guides/getting-started-guide.md @@ -30,5 +30,5 @@ server.listen(port, hostname, () => { }); ``` - -그런 다음 ``` node app.js ```를 사용하여 웹 사이트를 실행한 후 을 방문하면 'Hello World'라는 메시지를 볼 수 있을 것입니다. \ No newline at end of file + +그런 다음 `node app.js`를 사용하여 웹 사이트를 실행한 후 을 방문하면 'Hello World'라는 메시지를 볼 수 있을 것입니다. diff --git a/locale/ru/about/working-groups.md b/locale/ru/about/working-groups.md index 68932f0f3db60..053ad8e625f1e 100644 --- a/locale/ru/about/working-groups.md +++ b/locale/ru/about/working-groups.md @@ -71,7 +71,7 @@ _nan_ в npm. Проект NAN предоставляет уровень абс Обязанности: * Сотрудничество с V8 для интеграции `v8_inspector` в Node.js. * Сотрудничество с V8 для интеграции `trace_event` в Node.js. -* Сотрудничество с Core для совершенствования `async_wrap` и` async_hooks`. +* Сотрудничество с Core для совершенствования `async_wrap` и `async_hooks`. * Поддержание и улучшение интеграции системы трассировки ОС (например, ETW, LTTNG, dtrace). * Документирование диагностических возможностей и API в Node.js и его компонентах. * Изучение возможностей и пробелов, обсуждение запросов функций и решение конфликтов в диагностике Node.js. diff --git a/locale/ru/docs/guides/getting-started-guide.md b/locale/ru/docs/guides/getting-started-guide.md index 55e1c8a7977f6..e930a13d7a4a3 100644 --- a/locale/ru/docs/guides/getting-started-guide.md +++ b/locale/ru/docs/guides/getting-started-guide.md @@ -25,4 +25,4 @@ server.listen(port, hostname, () => { }); ``` -Далее запустите ваш веб-сервер, используя команду ``` node app.js ```, откройте http://localhost:3000 в браузере и вы увидите сообщение 'Hello World'. +Далее запустите ваш веб-сервер, используя команду `node app.js`, откройте http://localhost:3000 в браузере и вы увидите сообщение 'Hello World'. diff --git a/locale/ru/docs/meta/topics/dependencies.md b/locale/ru/docs/meta/topics/dependencies.md index 108b9722bc13f..cd50cea769101 100644 --- a/locale/ru/docs/meta/topics/dependencies.md +++ b/locale/ru/docs/meta/topics/dependencies.md @@ -59,7 +59,7 @@ layout: docs.hbs ### OpenSSL -OpenSSL широко используется в модулях `tls` и` crypto`. Он предоставляет проверенные на практике реализации +OpenSSL широко используется в модулях `tls` и `crypto`. Он предоставляет проверенные на практике реализации многих криптографических функций, которые современные сети используют для обеспечения безопасности. - [Документация](https://www.openssl.org/docs/) diff --git a/locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md b/locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md index 46e1d0f956f77..56e00eb841809 100644 --- a/locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md +++ b/locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached! -You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. +You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. diff --git a/locale/ru/knowledge/file-system/how-to-read-files-in-nodejs.md b/locale/ru/knowledge/file-system/how-to-read-files-in-nodejs.md index 90b143b001193..9146f5727ed2a 100644 --- a/locale/ru/knowledge/file-system/how-to-read-files-in-nodejs.md +++ b/locale/ru/knowledge/file-system/how-to-read-files-in-nodejs.md @@ -16,7 +16,7 @@ layout: knowledge-post.hbs `encoding` это необязательный параметр, который указывает тип кодировки, для чтения файла. Возможные кодировки: 'ascii', 'utf8' и 'base64'. Если кодировка не указана, по умолчанию используется значение `null`. -`callback` ― это функция, которая вызывается, когда файл был прочитан и содержимое готово ― ей передается два аргумента, `error` и `data`. Если ошибки нет, `error` будет иметь значение` null`, а `data` будет содержать содержимое файла; иначе `err` содержит сообщение об ошибке. +`callback` ― это функция, которая вызывается, когда файл был прочитан и содержимое готово ― ей передается два аргумента, `error` и `data`. Если ошибки нет, `error` будет иметь значение `null`, а `data` будет содержать содержимое файла; иначе `err` содержит сообщение об ошибке. Поэтому, если мы хотим прочитать `/etc/hosts` и вывести его в stdout (точно так же, как `cat` в UNIX): diff --git a/locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md b/locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md index 46e1d0f956f77..56e00eb841809 100644 --- a/locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md +++ b/locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached! -You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. +You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently. diff --git a/locale/zh-cn/docs/guides/getting-started-guide.md b/locale/zh-cn/docs/guides/getting-started-guide.md index bc4834d73c119..e85e8ec57c24f 100644 --- a/locale/zh-cn/docs/guides/getting-started-guide.md +++ b/locale/zh-cn/docs/guides/getting-started-guide.md @@ -25,4 +25,4 @@ server.listen(port, hostname, () => { }); ``` -然后使用 ``` node app.js ``` 运行程序,访问 ,你就会看到一个消息,写着“Hello World”。 +然后使用 `node app.js` 运行程序,访问 ,你就会看到一个消息,写着“Hello World”。