Skip to content

Commit ec5d668

Browse files
authored
Fixing code backticks (#23892)
* Fixing backticks * Fixing more pages * Fixing more backticks
1 parent 84b29b7 commit ec5d668

File tree

14 files changed

+41
-41
lines changed

14 files changed

+41
-41
lines changed

src/content/changelog/workers/2025-01-28-nodejs-compat-improvements.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
return new Response("Wrote to server", { status: 200 });
3939
},
4040
} satisfies ExportedHandler;
41-
````
41+
```
4242
</TypeScriptExample>
4343

4444
Additionally, you can now use other APIs including [`net.BlockList`](https://nodejs.org/api/net.html#class-netblocklist) and
@@ -55,8 +55,8 @@ You can use [`node:dns`](https://nodejs.org/api/dns.html) for name resolution vi
5555
```ts
5656
import dns from 'node:dns';
5757

58-
let responese = await dns.promises.resolve4('cloudflare.com', 'NS');
59-
````
58+
let response = await dns.promises.resolve4('cloudflare.com', 'NS');
59+
```
6060

6161
</TypeScriptExample>
6262

src/content/docs/ai-gateway/integrations/aig-workers-ai-binding.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ npx wrangler dev
113113

114114
You will be prompted to log in after you run `wrangler dev`. When you run `npx wrangler dev`, Wrangler will give you a URL (most likely `localhost:8787`) to review your Worker. After you go to the URL Wrangler provides, you will see a message that resembles the following example:
115115

116-
````json
116+
```json
117117
{
118118
"response": "A fascinating question!\n\nThe phrase \"Hello, World!\" originates from a simple computer program written in the early days of programming. It is often attributed to Brian Kernighan, a Canadian computer scientist and a pioneer in the field of computer programming.\n\nIn the early 1970s, Kernighan, along with his colleague Dennis Ritchie, were working on the C programming language. They wanted to create a simple program that would output a message to the screen to demonstrate the basic structure of a program. They chose the phrase \"Hello, World!\" because it was a simple and recognizable message that would illustrate how a program could print text to the screen.\n\nThe exact code was written in the 5th edition of Kernighan and Ritchie's book \"The C Programming Language,\" published in 1988. The code, literally known as \"Hello, World!\" is as follows:\n\n```
119119
main()
@@ -122,7 +122,7 @@ main()
122122
}
123123
```\n\nThis code is still often used as a starting point for learning programming languages, as it demonstrates how to output a simple message to the console.\n\nThe phrase \"Hello, World!\" has since become a catch-all phrase to indicate the start of a new program or a small test program, and is widely used in computer science and programming education.\n\nSincerely, I'm glad I could help clarify the origin of this iconic phrase for you!"
124124
}
125-
````
125+
```
126126

127127
## 5. Deploy your AI Worker
128128

src/content/docs/durable-objects/api/container.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class MyDurableObject extends DurableObject {
3939

4040
}
4141

42-
````
42+
```
4343
</TypeScriptExample>
4444

4545

@@ -51,7 +51,7 @@ export class MyDurableObject extends DurableObject {
5151

5252
```js
5353
this.ctx.container.running;
54-
````
54+
```
5555

5656
## Methods
5757

src/content/docs/hyperdrive/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565

6666
} satisfies ExportedHandler<{ HYPERDRIVE: Hyperdrive }>;
6767

68-
````
68+
```
6969

7070
</TabItem>
7171
<TabItem label="wrangler.jsonc">
@@ -89,7 +89,7 @@ export default {
8989
}
9090
]
9191
}
92-
````
92+
```
9393

9494
</TabItem>
9595
</Tabs>
@@ -124,7 +124,7 @@ export default {
124124
});
125125
}} satisfies ExportedHandler<Env>;
126126

127-
````
127+
```
128128

129129
</TabItem>
130130
<TabItem label="wrangler.jsonc">
@@ -148,7 +148,7 @@ export default {
148148
}
149149
]
150150
}
151-
````
151+
```
152152

153153
</TabItem>
154154
</Tabs>

src/content/docs/kv/examples/cache-data-with-workers-kv.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if (!bodyMatch) return 'No content found';
107107

108108
}
109109

110-
````
110+
```
111111
</TabItem>
112112
<TabItem label="wrangler.jsonc">
113113
```json
@@ -126,7 +126,7 @@ if (!bodyMatch) return 'No content found';
126126
}
127127
]
128128
}
129-
````
129+
```
130130

131131
</TabItem>
132132
</Tabs>

src/content/docs/kv/examples/distributed-configuration-with-workers-kv.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ syncPreviewStatus()
8787
.catch(console.error)
8888
.finally(() => process.exit(0));
8989

90-
````
90+
```
9191
</TabItem>
9292
<TabItem label=".env">
9393
```md title=".env"
@@ -96,7 +96,7 @@ CLOUDFLARE_EMAIL = <CLOUDFLARE_EMAIL_HERE>
9696
CLOUDFLARE_API_KEY = <CLOUDFLARE_API_KEY_HERE>
9797
CLOUDFLARE_ACCOUNT_ID = <CLOUDFLARE_ACCOUNT_ID_HERE>
9898
CLOUDFLARE_WORKERS_KV_NAMESPACE_ID = <CLOUDFLARE_WORKERS_KV_NAMESPACE_ID_HERE>
99-
````
99+
```
100100

101101
</TabItem>
102102
<TabItem label="db.sql">
@@ -115,7 +115,7 @@ INSERT INTO users (username, email, preview_features_enabled) VALUES
115115
('bob', '[email protected]', false),
116116
('charlie', '[email protected]', true);
117117

118-
````
118+
```
119119
</TabItem>
120120
</Tabs>
121121

@@ -216,7 +216,7 @@ export default {
216216
}
217217
]
218218
}
219-
````
219+
```
220220
221221
</TabItem>
222222
</Tabs>

src/content/docs/kv/examples/routing-with-workers-kv.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
}
112112
} satisfies ExportedHandler<Env>;
113113

114-
````
114+
```
115115
</TabItem>
116116
<TabItem label="wrangler.jsonc">
117117
```json
@@ -130,7 +130,7 @@ export default {
130130
}
131131
]
132132
}
133-
````
133+
```
134134

135135
</TabItem>
136136
</Tabs>

src/content/docs/kv/examples/workers-kv-to-serve-assets.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Render, PackageManagers, TabItem, Tabs } from "~/components";
1313
By storing static assets in Workers KV, you can retrieve these assets globally with low-latency and high throughput. You can then serve these assets directly, or use them to dynamically generate responses. This can be useful when serving files such as custom scripts, small images that fit within [KV limits](/kv/platform/limits/), or when generating dynamic HTML responses from static assets such as translations.
1414

1515
:::note[Note]
16-
If you need to **host a front-end or full-stack web application**, **use [Cloudflare Workers static assets](/workers/static-assets/) or [Cloudflare Pages](/pages/)**, which provide a purpose-built deployment experience for web applications and their assets.
16+
If you need to **host a front-end or full-stack web application**, **use [Cloudflare Workers static assets](/workers/static-assets/) or [Cloudflare Pages](/pages/)**, which provide a purpose-built deployment experience for web applications and their assets.
1717

1818
[Workers KV](/kv/) provides a more flexible API which allows you to access, edit, and store assets directly from your [Worker](/workers/) without requiring deployments. This can be helpful for serving custom assets that are not included in your deployment bundle, such as uploaded media assets or custom scripts and files generated at runtime.
1919
:::
@@ -96,7 +96,7 @@ export default {
9696

9797
} satisfies ExportedHandler<Env>;
9898

99-
````
99+
```
100100
</TabItem>
101101
<TabItem label="wrangler.jsonc">
102102
```json
@@ -115,7 +115,7 @@ export default {
115115
}
116116
]
117117
}
118-
````
118+
```
119119

120120
</TabItem>
121121
</Tabs>
@@ -272,7 +272,7 @@ export default {
272272
},
273273
} satisfies ExportedHandler<Env>;
274274

275-
````
275+
```
276276
</TabItem>
277277
<TabItem label="wrangler.jsonc">
278278
```json
@@ -291,7 +291,7 @@ export default {
291291
}
292292
]
293293
}
294-
````
294+
```
295295

296296
</TabItem>
297297
</Tabs>

src/content/docs/learning-paths/mtls/mtls-workers/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
}
4545
}
4646

47-
````
47+
```
4848

4949
</TabItem>
5050
<TabItem label="Service Worker" icon="seti:javascript">
@@ -79,7 +79,7 @@ addEventListener('fetch', event => {
7979
})(event.request)
8080
);
8181
});
82-
````
82+
```
8383

8484
</TabItem>
8585
</Tabs>

src/content/docs/workers-ai/guides/tutorials/explore-code-generation-using-deepseek-coder-models.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ else:
9191

9292
A common use case is to complete the code for the user after they provide a descriptive comment.
9393

94-
````python
94+
```python
9595
model = "@hf/thebloke/deepseek-coder-6.7b-base-awq"
9696

9797
prompt = "# A function that checks if a given word is a palindrome"
@@ -112,7 +112,7 @@ display(Markdown(f"""
112112
{code.strip()}
113113
```
114114
"""))
115-
````
115+
```
116116

117117
```python
118118
# A function that checks if a given word is a palindrome
@@ -240,7 +240,7 @@ A common use case in Developer Tools is to autocomplete based on context. DeepSe
240240

241241
Warning: The tokens are prefixed with `<|` and suffixed with `|>` make sure to copy and paste them.
242242

243-
````python
243+
```python
244244
model = "@hf/thebloke/deepseek-coder-6.7b-base-awq"
245245

246246
code = """
@@ -270,7 +270,7 @@ display(Markdown(f"""
270270
```
271271
"""))
272272

273-
````
273+
```
274274

275275
```python
276276
is_valid_email = re.match(r"[^@]+@[^@]+\.[^@]+", email_address)
@@ -280,7 +280,7 @@ is_valid_email = re.match(r"[^@]+@[^@]+\.[^@]+", email_address)
280280

281281
No need to threaten the model or bring grandma into the prompt. Get back JSON in the format you want.
282282

283-
````python
283+
```python
284284
model = "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
285285

286286
# Learn more at https://json-schema.org/
@@ -342,7 +342,7 @@ display(Markdown(f"""
342342
{response.strip()}
343343
```
344344
"""))
345-
````
345+
```
346346

347347
```json
348348
{

0 commit comments

Comments
 (0)