metonym / svelte-highlight

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

Scoped styles #233

Open metonym opened 2 years ago

metonym commented 2 years ago

Currently, code styles are applied globally. It could be useful if styles code be scoped, which would allow the ability use different styles in the same page.

The docs site actually scopes styles for the purpose of showcasing individual styles on one page: https://github.com/metonym/svelte-highlight/blob/97c8e5c0c28bf5f458779e6196a2ec94e5dc7f52/demo/lib/ScopedStyle.svelte#L35

mhkeller commented 3 months ago

This would be a great feature. Any news on the progress?

metonym commented 3 months ago

I'll put this in my queue – seems like a table stakes feature TBH.