diff --git a/docs/browser.md b/docs/browser.md
index cab603285..b0f540362 100644
--- a/docs/browser.md
+++ b/docs/browser.md
@@ -20,8 +20,8 @@ Required options:
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files named
- - `parser-*.js` in and
- - `parser-*.mjs` in
+ - `parser-*.js` in and
+ - `parser-*.mjs` in
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.
diff --git a/scripts/release/steps/update-version.js b/scripts/release/steps/update-version.js
index b97cbe7da..56ab17054 100644
--- a/scripts/release/steps/update-version.js
+++ b/scripts/release/steps/update-version.js
@@ -24,7 +24,10 @@ async function bump({ version }) {
// Update unpkg link in docs
processFile("docs/browser.md", (content) =>
- content.replace(/(\/\/unpkg\.com\/prettier@).*?\//g, `$1${version}/`)
+ content.replace(
+ /(\/\/unpkg\.com\/(?:browse\/)?prettier@).*?\//g,
+ `$1${version}/`
+ )
);
await runYarn(["update-stable-docs"], {
diff --git a/website/versioned_docs/version-stable/browser.md b/website/versioned_docs/version-stable/browser.md
index 969e51d63..6bd05b7e7 100644
--- a/website/versioned_docs/version-stable/browser.md
+++ b/website/versioned_docs/version-stable/browser.md
@@ -21,8 +21,8 @@ Required options:
- **`plugins`**: Unlike the `format` function from the [Node.js-based API](api.md#prettierformatsource--options), this function doesn’t load plugins automatically. The `plugins` option is required because all the parsers included in the Prettier package come as plugins (for reasons of file size). These plugins are files named
- - `parser-*.js` in and
- - `parser-*.mjs` in
+ - `parser-*.js` in and
+ - `parser-*.mjs` in
You need to load the ones that you’re going to use and pass them to `prettier.format` using the `plugins` option.