Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Browser Rendering includes additional font packages for non-Latin scripts and em
If a required font is not pre-installed, you can inject it into the page at render time using `addStyleTag`. This allows you to load fonts from an external URL or embed them directly as a Base64 string.

<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
Example with puppeteer and a CDN source:
Example with [Puppeteer](/browser-rendering/platform/puppeteer/) and a CDN source:

```js
const browser = await puppeteer.launch(env.MYBROWSER);
Expand All @@ -92,7 +92,7 @@ await page.addStyleTag({
```

</TabItem> <TabItem label="TypeScript" icon="seti:typescript">
Example with puppeteer and a CDN source:
Example with [Puppeteer](/browser-rendering/platform/puppeteer/) and a CDN source:

```ts
const browser = await puppeteer.launch(env.MYBROWSER);
Expand All @@ -117,7 +117,7 @@ await page.addStyleTag({


<Tabs> <TabItem label="JavaScript" icon="seti:javascript">
Example with playwright and a Base64 encoded data source:
Example with [Playwright](/browser-rendering/platform/playwright/) and a Base64 encoded data source:

```js
const browser = await playwright.launch(env.MYBROWSER);
Expand All @@ -139,10 +139,10 @@ await page.addStyleTag({
```

</TabItem> <TabItem label="TypeScript" icon="seti:typescript">
Example with playwright and a Base64 encoded data source:
Example with [Playwright](/browser-rendering/platform/playwright/) and a Base64 encoded data source:

```ts
const browser = await puppeteer.launch(env.MYBROWSER);
const browser = await playwright.launch(env.MYBROWSER);
const page = await browser.newPage();
await page.addStyleTag({
content: `
Expand Down