Overwrite prettier rule that is breaking image documentation (#22400)

This commit is contained in:
Doug 2025-05-13 20:57:56 +01:00 committed by GitHub
parent f6403ee5cd
commit caca61de05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 3 deletions

View file

@ -5,3 +5,4 @@ dist
public/__redirects
public/analytics/static/downloads/main.css
src/content/workers-ai-models/*.json
src/content/partials/images/*.mdx

View file

@ -11,5 +11,9 @@ This setting only works directly with [image transformations](/images/transform-
In case of a [fatal error](/images/reference/troubleshooting/#error-responses-from-resizing) that prevents the image from being resized, redirects to the unresized source image URL. This may be useful in case some images require user authentication and cannot be fetched anonymously via Worker. This option should not be used if there is a chance the source image is very large. This option is ignored if the image is from another domain, but you can use it with subdomains.
<Tabs>
<TabItem label="URL format">```js onerror=redirect ```</TabItem>
<TabItem label="URL format">
```js
onerror=redirect
```
</TabItem>
</Tabs>

View file

@ -9,8 +9,16 @@ Allows overriding `quality` value whenever a slow connection is detected.
Available options are same as [quality](/images/transform-images/transform-via-url/#quality).
<Tabs>
<TabItem label="URL format">```js slow-connection-quality=50 ```</TabItem>
<TabItem label="URL format alias">```js scq=50 ```</TabItem>
<TabItem label="URL format">
```js
slow-connection-quality=50
```
</TabItem>
<TabItem label="URL format alias">
```js
scq=50
```
</TabItem>
</Tabs>
Detecting slow connections is currently only supported on Chromium-based browsers such as Chrome, Edge, and Opera.