Skip to content

Commit b0391be

Browse files
committed
Overwrite prettier rule that is breaking image documentation
1 parent f6403ee commit b0391be

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-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/metadata.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Color profiles and EXIF rotation are applied to the image even if the metadata i
1111
Available options are `copyright`, `keep`, and `none`. The default for all JPEG images is `copyright`. WebP and PNG output formats will always discard EXIF metadata.
1212

1313
:::note
14+
1415
- If [Polish](/images/polish/) is enabled, then all metadata may already be removed and this option will have no effect.
1516
- Even when choosing to keep EXIF metadata, Cloudflare will modify JFIF data (potentially invalidating it) to avoid the known incompatibility between the two standards. For more details, refer to [JFIF Compatibility](https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format#Compatibility).
1617
:::
@@ -29,6 +30,7 @@ Options include:
2930
<Tabs>
3031
<TabItem label="URL format">
3132
```js
33+
3234
metadata=none
3335
```
3436
</TabItem>

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)