diff --git a/docs/browser.md b/docs/browser.md index db8b99763..130bd7566 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -7,7 +7,7 @@ Run Prettier in the browser with the `standalone.js` UMD bundle shipped in the N ### `prettier.format(code, options)` -Unlike the `format` function from the [main API](api.md#prettierformatsource-options), this function does not load plugins automatically, so a `plugins` property is required if you want to load plugins. Additionally, the parsers included in the Prettier package won't be loaded automatically, so you need to load them before using them. +Unlike the `format` function from the [main API](api.md#prettierformatsource--options), this function does not load plugins automatically, so a `plugins` property is required if you want to load plugins. Additionally, the parsers included in the Prettier package won't be loaded automatically, so you need to load them before using them. See [Usage](#usage) below for examples. diff --git a/docs/ignore.md b/docs/ignore.md index fe4a54f8e..9706b8d23 100644 --- a/docs/ignore.md +++ b/docs/ignore.md @@ -7,7 +7,7 @@ Prettier offers an escape hatch to ignore a block of code or prevent entire file ## Ignoring Files -To exclude files from formatting, add entries to a `.prettierignore` file in the project root or set the [`--ignore-path` CLI option](cli.md#ignore-path). `.prettierignore` uses [gitignore syntax](https://git-scm.com/docs/gitignore#_pattern_format). +To exclude files from formatting, add entries to a `.prettierignore` file in the project root or set the [`--ignore-path` CLI option](cli.md#--ignore-path). `.prettierignore` uses [gitignore syntax](https://git-scm.com/docs/gitignore#_pattern_format). ## JavaScript diff --git a/docs/options.md b/docs/options.md index 87cc24f6e..f6a193368 100644 --- a/docs/options.md +++ b/docs/options.md @@ -346,7 +346,7 @@ If you want to make sure that your entire git repository only contains Linux-sty 1. Ensure Prettier’s `endOfLine` option is set to `lf` (this is a default value since v2.0.0) 1. Configure [a pre-commit hook](precommit.md) that will run Prettier -1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#check). If you use Travis CI, set [the `autocrlf` option](https://docs.travis-ci.com/user/customizing-the-build#git-end-of-line-conversion-control) to `input` in `.travis.yml`. +1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#--check). If you use Travis CI, set [the `autocrlf` option](https://docs.travis-ci.com/user/customizing-the-build#git-end-of-line-conversion-control) to `input` in `.travis.yml`. 1. Add `* text=auto eol=lf` to the repo's `.gitattributes` file. You may need to ask Windows users to re-clone your repo after this change to ensure git has not converted `LF` to `CRLF` on checkout. diff --git a/website/versioned_docs/version-stable/browser.md b/website/versioned_docs/version-stable/browser.md index 0a5ce0360..b992adc02 100644 --- a/website/versioned_docs/version-stable/browser.md +++ b/website/versioned_docs/version-stable/browser.md @@ -8,7 +8,7 @@ Run Prettier in the browser with the `standalone.js` UMD bundle shipped in the N ### `prettier.format(code, options)` -Unlike the `format` function from the [main API](api.md#prettierformatsource-options), this function does not load plugins automatically, so a `plugins` property is required if you want to load plugins. Additionally, the parsers included in the Prettier package won't be loaded automatically, so you need to load them before using them. +Unlike the `format` function from the [main API](api.md#prettierformatsource--options), this function does not load plugins automatically, so a `plugins` property is required if you want to load plugins. Additionally, the parsers included in the Prettier package won't be loaded automatically, so you need to load them before using them. See [Usage](#usage) below for examples. diff --git a/website/versioned_docs/version-stable/ignore.md b/website/versioned_docs/version-stable/ignore.md index 6a6ff88cf..527b3fddc 100644 --- a/website/versioned_docs/version-stable/ignore.md +++ b/website/versioned_docs/version-stable/ignore.md @@ -8,7 +8,7 @@ Prettier offers an escape hatch to ignore a block of code or prevent entire file ## Ignoring Files -To exclude files from formatting, add entries to a `.prettierignore` file in the project root or set the [`--ignore-path` CLI option](cli.md#ignore-path). `.prettierignore` uses [gitignore syntax](https://git-scm.com/docs/gitignore#_pattern_format). +To exclude files from formatting, add entries to a `.prettierignore` file in the project root or set the [`--ignore-path` CLI option](cli.md#--ignore-path). `.prettierignore` uses [gitignore syntax](https://git-scm.com/docs/gitignore#_pattern_format). ## JavaScript diff --git a/website/versioned_docs/version-stable/options.md b/website/versioned_docs/version-stable/options.md index 6df1ff4b5..6f5733c52 100644 --- a/website/versioned_docs/version-stable/options.md +++ b/website/versioned_docs/version-stable/options.md @@ -347,7 +347,7 @@ If you want to make sure that your entire git repository only contains Linux-sty 1. Ensure Prettier’s `endOfLine` option is set to `lf` (this is a default value since v2.0.0) 1. Configure [a pre-commit hook](precommit.md) that will run Prettier -1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#check). If you use Travis CI, set [the `autocrlf` option](https://docs.travis-ci.com/user/customizing-the-build#git-end-of-line-conversion-control) to `input` in `.travis.yml`. +1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#--check). If you use Travis CI, set [the `autocrlf` option](https://docs.travis-ci.com/user/customizing-the-build#git-end-of-line-conversion-control) to `input` in `.travis.yml`. 1. Add `* text=auto eol=lf` to the repo's `.gitattributes` file. You may need to ask Windows users to re-clone your repo after this change to ensure git has not converted `LF` to `CRLF` on checkout.