wooorm / starry-night

Syntax highlighting, like GitHub
MIT License
1.45k stars 30 forks source link

Update readme.md #36

Closed Hocdoc closed 10 months ago

Hocdoc commented 10 months ago

Add file extension to CSS link.

The link https://esm.sh/@wooorm/starry-night@3.0.0/style/both doesn't work for me (Module not found), but https://esm.sh/@wooorm/starry-night@3.0.0/style/both.css works.

wooorm commented 10 months ago

It should work. Otherwise it's a bug in esmsh

Hocdoc commented 10 months ago

Hm does the link https://esm.sh/@wooorm/starry-night@3.0.0/style/both really work for you? But maybe I just don't understand how esm.sh should work here.

wooorm commented 10 months ago

It should work according to the export map in the package.json. I haven’t tested whether it works with esmsh, clicking that link 404s for me right now. esmsh should work with export maps, it does otherwise, so it should for css too