metonym / svelte-highlight

Syntax Highlighting for Svelte using highlight.js
https://svhe.onrender.com
MIT License
253 stars 13 forks source link

Document CDN styles usage #214

Closed metonym closed 2 years ago

metonym commented 2 years ago

It's sometimes useful to use the highlight.js styles standalone for prototyping or when I don't want to install this package.

Example:

<svelte:head>
  <link rel="stylesheet" href="https://unpkg.com/svelte-highlight@6.1.1/styles/github.css" />
</svelte:head>

This should be documented but be prefaced with a warning that it's only recommended for prototyping.