Skip to content

Commit caca61d

Browse files
authored
Overwrite prettier rule that is breaking image documentation (cloudflare#22400)
1 parent f6403ee commit caca61d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist
55
public/__redirects
66
public/analytics/static/downloads/main.css
77
src/content/workers-ai-models/*.json
8+
src/content/partials/images/*.mdx

src/content/partials/images/onerror.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ This setting only works directly with [image transformations](/images/transform-
1111
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.
1212

1313
<Tabs>
14-
<TabItem label="URL format">```js onerror=redirect ```</TabItem>
14+
<TabItem label="URL format">
15+
```js
16+
onerror=redirect
17+
```
18+
</TabItem>
1519
</Tabs>

src/content/partials/images/slow-connection-quality.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@ Allows overriding `quality` value whenever a slow connection is detected.
99
Available options are same as [quality](/images/transform-images/transform-via-url/#quality).
1010

1111
<Tabs>
12-
<TabItem label="URL format">```js slow-connection-quality=50 ```</TabItem>
13-
<TabItem label="URL format alias">```js scq=50 ```</TabItem>
12+
<TabItem label="URL format">
13+
```js
14+
slow-connection-quality=50
15+
```
16+
</TabItem>
17+
<TabItem label="URL format alias">
18+
```js
19+
scq=50
20+
```
21+
</TabItem>
1422
</Tabs>
1523

1624
Detecting slow connections is currently only supported on Chromium-based browsers such as Chrome, Edge, and Opera.

0 commit comments

Comments
 (0)