diff --git a/README.md b/README.md
index 3aed827e..a1b3b072 100644
--- a/README.md
+++ b/README.md
@@ -17,8 +17,8 @@ KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, Edg
You can [download KaTeX](https://github.com/khan/katex/releases) and host it on your server or include the `katex.min.js` and `katex.min.css` files on your page directly from a CDN:
```html
-
-
+
+
```
#### In-browser rendering
diff --git a/update-sri.js b/update-sri.js
index 3a2c8d6a..7277514f 100644
--- a/update-sri.js
+++ b/update-sri.js
@@ -26,7 +26,7 @@ Promise.all(process.argv.slice(3).map(file =>
// 5 - integrity opening quote: "
// 6 - old hash: sha384-…
// 7 - integrity hash algorithm: sha384
- const re = /((["'])https?:\/\/cdnjs.cloudflare.com\/ajax\/libs\/KaTeX\/)[^\/"']+(\/([^"']+)\2(?:\s+integrity=(["'])(([^-]+)-[^"']+)\5)?)/g;
+ const re = /((["'])https?:\/\/cdn\.jsdelivr\.net\/npm\/katex@)[^\/"']+(\/([^"']+)\2(?:\s+integrity=(["'])(([^-]+)-[^"']+)\5)?)/g;
const hashes = {};
body = body.replace(re, (m, pre, oq1, post, file, oq2, old, algo) => {
if (old) {
@@ -35,7 +35,7 @@ Promise.all(process.argv.slice(3).map(file =>
return pre + version + post;
});
return Promise.all(Object.keys(hashes).map(hash =>
- read(path.join("dist", hashes[hash].file), null)
+ read(hashes[hash].file, null)
.then(data => {
body = body.replace(hash, sriToolbox.generate({
algorithms: [hashes[hash].algo],