From 7b723d345dfa414f5954017cb9e456eeee802b51 Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Sun, 27 May 2018 17:18:25 -0300 Subject: [PATCH] Fix unpkg URL --- docs/browser.md | 12 ++++++------ website/blog/2018-05-27-1.13.0.md | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/browser.md b/docs/browser.md index e33a74eb..4e7f6a86 100644 --- a/docs/browser.md +++ b/docs/browser.md @@ -17,8 +17,8 @@ See [Usage](#usage) below for examples. ```html - - + + @@ -28,8 +28,8 @@ prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins }); ```js define([ - "https://unpkg.me/prettier@1.13.0/standalone.js", - "https://unpkg.me/prettier@1.13.0/parser-graphql.js" + "https://unpkg.com/prettier@1.13.0/standalone.js", + "https://unpkg.com/prettier@1.13.0/parser-graphql.js" ], (prettier, ...plugins) => { prettier.format("query { }", { parser: "graphql", plugins }); }); @@ -48,7 +48,7 @@ This syntax doesn't necessarily work in the browser, but it can be used when bun ### Worker ```js -importScripts("https://unpkg.me/prettier@1.13.0/standalone.js"); -importScripts("https://unpkg.me/prettier@1.13.0/parser-graphql.js"); +importScripts("https://unpkg.com/prettier@1.13.0/standalone.js"); +importScripts("https://unpkg.com/prettier@1.13.0/parser-graphql.js"); prettier.format("query { }", { parser: "graphql", plugins: prettierPlugins }); ``` diff --git a/website/blog/2018-05-27-1.13.0.md b/website/blog/2018-05-27-1.13.0.md index d0997bb0..411f25cf 100644 --- a/website/blog/2018-05-27-1.13.0.md +++ b/website/blog/2018-05-27-1.13.0.md @@ -18,9 +18,9 @@ This has been long wanted by the team and our users and we're finally announcing ```html - - - + + + ``` -Read more about it in the [docs](https://prettier.io/docs/en/browser.html). +Read more about it in the [docs](https://prettier.io/docs/en/browser.html) or try it on this [JS Bin](https://jsbin.com/vabiyomoso/edit?html,output). #### Don't default to the JavaScript parser ([#4528] by [@duailibe])