chore(docs): use markdown syntax for external links - #4667
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| ### The Alpha Problem | ||
|
|
||
| There is not yet full <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Browser_compatibility" target="_blank">browser support</a> for alpha use of a hex color. The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()" target="_blank">`rgba()`</a> function only accepts a value in `R, G, B, A` (Red, Green, Blue, Alpha) format. The following code shows examples of correct and incorrect values passed to `rgba()`. | ||
| There is not yet full [browser support](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Browser_compatibility) for alpha use of a hex color. The [`rgba()`](<https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()>) function only accepts a value in `R, G, B, A` (Red, Green, Blue, Alpha) format. The following code shows examples of correct and incorrect values passed to `rgba()`. |
There was a problem hiding this comment.
Is there a reason the rgba link is enclosed in <>?
There was a problem hiding this comment.
Prettier applies when the URL contains parentheses (this one ends in #rgb()_and_rgba()).
| ### The Alpha Problem | ||
|
|
||
| There is not yet full <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Browser_compatibility" target="_blank">browser support</a> for alpha use of a hex color. The <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()" target="_blank">`rgba()`</a> function only accepts a value in `R, G, B, A` (Red, Green, Blue, Alpha) format. The following code shows examples of correct and incorrect values passed to `rgba()`. | ||
| There is not yet full [browser support](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Browser_compatibility) for alpha use of a hex color. The [`rgba()`](<https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#rgb()_and_rgba()>) function only accepts a value in `R, G, B, A` (Red, Green, Blue, Alpha) format. The following code shows examples of correct and incorrect values passed to `rgba()`. |
There was a problem hiding this comment.
Is there a reason the rgba link is enclosed in <>?
There was a problem hiding this comment.
Prettier applies when the URL contains parentheses (this one ends in #rgb()_and_rgba()).
|
|
||
| ### CORS {/* #cors */} | ||
|
|
||
| [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) (Cross-Origin Resource Sharing) is a mechanism for servers to control client access to web assets. Refer to the [CORS FAQs](../troubleshooting/cors) for more information. |
There was a problem hiding this comment.
Just FYI I did some research into inclusive language and Google's own inclusive documentation tips allow the word see:
Here is the direct link: https://developers.google.com/style/word-list#see
There was a problem hiding this comment.
That's awesome!! Thank you!
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Co-authored-by: Brandy Smith <brandyscarney@users.noreply.github.com>
Issue URL: N/A
What is the current behavior?
External links are written two ways: mostly markdown, but 338 as raw
<a target="_blank">. 198 of those are missingrel="noopener noreferrer".The glossary is built from 41
<section>blocks with raw anchors, which prettier mangles into invalid HTML. So both glossaries sit in.prettierignore, andindex.mdneeds aprettier-ignore.Those anchors are HTML
idattributes, not heading IDs, so Docusaurus can't validate them. 195 broken anchor references went unchecked, including a[Babel](#babel)link with no Babel entry.What is the new behavior?
### Term {/* #id */}), all 41 IDs preservedLeft alone: 3 anchors that wrap markup, and 7 inside code fences.
Does this introduce a breaking change?
Other information
Readers see no difference. Docusaurus already adds
target="_blank" rel="noopener noreferrer"to external URLs, so markdown links render the same as the raw ones did.Wins:
rel="noopener noreferrer", closing awindow.openergap<h3>is invisible to it