metonym / svelte-highlight

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

Extract language tag into separate component #261

Closed metonym closed 1 year ago

metonym commented 1 year ago

Similar to how LineNumbers is offered as its own component, the language tag logic could also be extracted. It currently exists in three places.

Beyond duplication, the goal is to modularize the library so that code unused by the consumer isn't tied to the basic Highlight components.