Skip to content

Commit

Permalink
chore(docs) add unpkg CDN instructions. (#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscobot committed Oct 22, 2020
1 parent 215eb88 commit 608f684
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Expand Up @@ -237,8 +237,15 @@ A prebuilt version of highlight.js bundled with many common languages is hosted
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@10.1.2/build/highlight.min.js"></script>
```

**unpkg** ([link](https://unpkg.com/browse/@highlightjs/cdn-assets/))

```html
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@10.3.1/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@10.3.1/highlight.min.js"></script>
```

**Note:** *The CDN-hosted `highlight.min.js` package doesn't bundle every language.* It would be
very large. You can find our list "common" languages that we bundle by default on our [download page][5].
very large. You can find our list "common" languages that we bundle by default on our [download page][5].

### Self Hosting

Expand Down

0 comments on commit 608f684

Please sign in to comment.