fix linting for fenced codeblocks only (see electron/electronjs.org#868)

This commit is contained in:
Vanessa Yuen 2017-11-20 14:18:24 +08:00
parent 2441d51093
commit 435e027dc3
17 changed files with 79 additions and 65 deletions

View file

@ -2,17 +2,17 @@
## Why am I having trouble installing Electron?
When running `npm install electron`, some users occasionally encounter
When running `npm install electron`, some users occasionally encounter
installation errors.
In almost all cases, these errors are the result of network problems and not
actual issues with the `electron` npm package. Errors like `ELIFECYCLE`,
`EAI_AGAIN`, `ECONNRESET`, and `ETIMEDOUT` are all indications of such
network problems. The best resolution is to try switching networks, or
In almost all cases, these errors are the result of network problems and not
actual issues with the `electron` npm package. Errors like `ELIFECYCLE`,
`EAI_AGAIN`, `ECONNRESET`, and `ETIMEDOUT` are all indications of such
network problems. The best resolution is to try switching networks, or
just wait a bit and try installing again.
You can also attempt to download Electron directly from
[electron/electron/releases](https://github.com/electron/electron/releases)
You can also attempt to download Electron directly from
[electron/electron/releases](https://github.com/electron/electron/releases)
if installing via `npm` is failing.
## When will Electron upgrade to latest Chrome?
@ -134,7 +134,7 @@ delete window.module;
When using Electron's built-in module you might encounter an error like this:
```
```sh
> require('electron').webFrame.setZoomFactor(1.0)
Uncaught TypeError: Cannot read property 'setZoomLevel' of undefined
```
@ -151,7 +151,7 @@ console.log(require.resolve('electron'))
and then check if it is in the following form:
```
```sh
"/path/to/Electron.app/Contents/Resources/atom.asar/renderer/api/lib/exports/electron.js"
```