File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change @@ -146,22 +146,22 @@ npm install @wooorm/starry-night
146146In 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
152152In 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
160160To 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!):
548548import {
549549 common ,
550550 createStarryNight
551- } from ' https://esm.sh/@wooorm/starry-night@2 ?bundle'
551+ } from ' https://esm.sh/@wooorm/starry-night@3 ?bundle'
552552import {toDom } from ' https://esm.sh/hast-util-to-dom@4?bundle'
553553
554554const 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 >
You can’t perform that action at this time.
0 commit comments