Skip to content

Commit fc3e7b3

Browse files
committed
3.0.0
1 parent 1d0ef1d commit fc3e7b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wooorm/starry-night",
3-
"version": "2.2.0",
3+
"version": "3.0.0",
44
"description": "Syntax highlighting, like GitHub",
55
"license": "MIT",
66
"keywords": [

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,22 @@ npm install @wooorm/starry-night
146146
In Deno with [`esm.sh`][esmsh]:
147147

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)