From 20bdf4722c314639f339e96c8a1618b1f9f915e8 Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:40:40 +0000 Subject: [PATCH] Apply suggestions from PCX review Co-authored-by: Jun Lee --- src/content/docs/browser-rendering/how-to/pdf-generation.mdx | 4 ++-- src/content/docs/spectrum/index.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/content/docs/browser-rendering/how-to/pdf-generation.mdx b/src/content/docs/browser-rendering/how-to/pdf-generation.mdx index 84f8187b20266e..c5ea765a3556dc 100644 --- a/src/content/docs/browser-rendering/how-to/pdf-generation.mdx +++ b/src/content/docs/browser-rendering/how-to/pdf-generation.mdx @@ -66,7 +66,7 @@ export default { 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. :::note -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. +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. ::: 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) => { 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. :::note -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/). +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/). ::: ## 2. Load HTML and CSS Into Browser diff --git a/src/content/docs/spectrum/index.mdx b/src/content/docs/spectrum/index.mdx index 006b62673ac9e1..f119fd7ed7a3df 100644 --- a/src/content/docs/spectrum/index.mdx +++ b/src/content/docs/spectrum/index.mdx @@ -92,7 +92,7 @@ Spectrum allows you to route MQTT, email, file transfer, version control, games, href="https://www.cloudflare.com/plans/" icon="document" > - Compare available Cloudflare plans + Compare available Cloudflare plans.