Releases: metonym/svelte-highlight
Releases · metonym/svelte-highlight
v7.1.1
v7.0.1
v7.0.0
Breaking Changes
- rename langtag style props (4b84dac, #253)
--hljs-background
->--langtag-background
--hljs-foreground
->--langtag-color
--hljs-radius
->--langtag-border-radius
- mark
code
,language
as required props (86acf4c, #218)
Features
- include inferred
language
inon:highlight
event detail inHighlightAuto
(2c82ca3, #252) - add
LineNumbers
component to support rendering line numbers (82f9366, #248) - upgrade
highlight.js
to version 11.7.0 (d463d9b, #245)
Fixes
- use
HTMLAttributes
fromsvelte/elements
to correctly type$$restProps
(076b2b4)
v6.2.1
Fixes
Documentation
v6.2.0
v6.1.2
v6.1.1
v6.1.0
v6.0.1
v6.0.0
Breaking Changes
- use SvelteKit to package the library and auto-generate TypeScript definitions
- styles are moved from
src/styles
tostyles
- languages are moved from
src/languages
tolanguages
- styles are moved from
- import github from "svelte-highlight/src/styles/github";
+ import github from "svelte-highlight/styles/github";
- import typescript from "svelte-highlight/src/languages/typescript";
+ import typescript from "svelte-highlight/languages/typescript";