From 43aaef6cdf4b350f84d263e109215cd67dee47da Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 17 Mar 2020 22:09:19 +0100 Subject: [PATCH] Fix broken HTML anchor in the Rationale documentation (#7783) The italic Markdown formatting is included in the automatically generated ID, so it must be present in the references as well. --- docs/rationale.md | 2 +- website/versioned_docs/version-stable/rationale.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/rationale.md b/docs/rationale.md index 1994a4047..8ae87b11b 100644 --- a/docs/rationale.md +++ b/docs/rationale.md @@ -187,7 +187,7 @@ This practice is also common in [standard] which uses a semicolon-free style. The [`--print-width`](options.md#print-width) is more of a guideline to Prettier than a hard rule. It generally means “try to make lines this long, go shorter if needed and longer in special cases.” -There are some edge cases, such as really long string literals, regexps, comments and variable names, which cannot be broken across lines (without using code transforms which [Prettier doesn’t do](#what-prettier-is-not-concerned-about)). Or if you nest your code 50 levels deep your lines are of course going to be mostly indentation :) +There are some edge cases, such as really long string literals, regexps, comments and variable names, which cannot be broken across lines (without using code transforms which [Prettier doesn’t do](#what-prettier-is-_not_-concerned-about)). Or if you nest your code 50 levels deep your lines are of course going to be mostly indentation :) Apart from that, there are a few cases where Prettier intentionally exceeds the print width. diff --git a/website/versioned_docs/version-stable/rationale.md b/website/versioned_docs/version-stable/rationale.md index 0d1174455..729b54043 100644 --- a/website/versioned_docs/version-stable/rationale.md +++ b/website/versioned_docs/version-stable/rationale.md @@ -188,7 +188,7 @@ This practice is also common in [standard] which uses a semicolon-free style. The [`--print-width`](options.md#print-width) is more of a guideline to Prettier than a hard rule. It generally means “try to make lines this long, go shorter if needed and longer in special cases.” -There are some edge cases, such as really long string literals, regexps, comments and variable names, which cannot be broken across lines (without using code transforms which [Prettier doesn’t do](#what-prettier-is-not-concerned-about)). Or if you nest your code 50 levels deep your lines are of course going to be mostly indentation :) +There are some edge cases, such as really long string literals, regexps, comments and variable names, which cannot be broken across lines (without using code transforms which [Prettier doesn’t do](#what-prettier-is-_not_-concerned-about)). Or if you nest your code 50 levels deep your lines are of course going to be mostly indentation :) Apart from that, there are a few cases where Prettier intentionally exceeds the print width.