Skip to content

Commit

Permalink
3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 13, 2023
1 parent 1d0ef1d commit fc3e7b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wooorm/starry-night",
"version": "2.2.0",
"version": "3.0.0",
"description": "Syntax highlighting, like GitHub",
"license": "MIT",
"keywords": [
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,22 @@ npm install @wooorm/starry-night
In Deno with [`esm.sh`][esmsh]:

```js
import {common, createStarryNight} from 'https://esm.sh/@wooorm/starry-night@2'
import {common, createStarryNight} from 'https://esm.sh/@wooorm/starry-night@3'
```

In browsers with [`esm.sh`][esmsh]:

```html
<script type="module">
import {common, createStarryNight} from 'https://esm.sh/@wooorm/starry-night@2?bundle'
import {common, createStarryNight} from 'https://esm.sh/@wooorm/starry-night@3?bundle'
</script>
```

To get the CSS in browsers, do (see [CSS][] for more info):

```html
<!-- This supports light and dark mode automatically. -->
<link rel="stylesheet" href="https://esm.sh/@wooorm/starry-night@2/style/both">
<link rel="stylesheet" href="https://esm.sh/@wooorm/starry-night@3/style/both">
```

## Use
Expand Down Expand Up @@ -548,7 +548,7 @@ Say we have this `example.js` on our browser (no bundling needed!):
import {
common,
createStarryNight
} from 'https://esm.sh/@wooorm/starry-night@2?bundle'
} from 'https://esm.sh/@wooorm/starry-night@3?bundle'
import {toDom} from 'https://esm.sh/hast-util-to-dom@4?bundle'

const starryNight = await createStarryNight(common)
Expand All @@ -574,7 +574,7 @@ for (const node of nodes) {
<!doctype html>
<meta charset=utf8>
<title>Hello</title>
<link rel=stylesheet href=https://esm.sh/@wooorm/starry-night@2/style/both>
<link rel=stylesheet href=https://esm.sh/@wooorm/starry-night@3/style/both>
<body>
<h1>Hello</h1>
<p>…world!</p>
Expand Down

0 comments on commit fc3e7b3

Please sign in to comment.