Skip to content

Commit 20bdf47

Browse files
pedrosousaOxyjun
andauthored
Apply suggestions from PCX review
Co-authored-by: Jun Lee <[email protected]>
1 parent deec018 commit 20bdf47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/docs/browser-rendering/how-to/pdf-generation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
Rather than using Browser Rendering to navigate to a user-provided URL, manually generate a webpage, then provide that webpage to the Browser Rendering instance. This allows you to render any design you want.
6767

6868
:::note
69-
You can generate your HTML or CSS using any method you like. This example uses string interpolation, but this method is fully-compatible with web frameworks capable of rendering HTML on Workers such as React, Remix, and Vue.
69+
You can generate your HTML or CSS using any method you like. This example uses string interpolation, but the method is also fully compatible with web frameworks capable of rendering HTML on Workers such as React, Remix, and Vue.
7070
:::
7171

7272
For this example, we're going to take in user-provided content (via a '?name=' parameter), and have that name output in the final PDF document.
@@ -125,7 +125,7 @@ const generateDocument = (name: string) => {
125125
This example HTML document should render a beige background imitating a certificate showing that the user-provided name has successfully rendered a PDF using Cloudflare Workers.
126126

127127
:::note
128-
It is usually best to avoid directly interpolating user-provided content into an image or PDF renderer in production applications. To render contents like an invoice, it wold be best to validate the data input, and fetch data yourself using tools like [D1](/d1/) or [Workers KV](/kv/).
128+
It is usually best to avoid directly interpolating user-provided content into an image or PDF renderer in production applications. To render contents like an invoice, it would be best to validate the data input and fetch the data yourself using tools like [D1](/d1/) or [Workers KV](/kv/).
129129
:::
130130

131131
## 2. Load HTML and CSS Into Browser

src/content/docs/spectrum/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Spectrum allows you to route MQTT, email, file transfer, version control, games,
9292
href="https://www.cloudflare.com/plans/"
9393
icon="document"
9494
>
95-
Compare available Cloudflare plans
95+
Compare available Cloudflare plans.
9696
</LinkTitleCard>
9797

9898
</CardGrid>

0 commit comments

Comments
 (0)