Skip to content

Releases: metonym/svelte-highlight

v7.1.1

01 Jan 02:52
Compare
Choose a tag to compare

Features

v7.0.1

30 Dec 21:27
Compare
Choose a tag to compare

Fixes

v7.0.0

30 Dec 21:27
Compare
Choose a tag to compare

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 in on:highlight event detail in HighlightAuto (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 from svelte/elements to correctly type $$restProps (076b2b4)

v6.2.1

07 Aug 17:01
Compare
Choose a tag to compare

Fixes

  • generate types for svelte-highlight/languages/*, svelte-highlight/styles/* (5ea7dbd, #231)

Documentation

v6.2.0

13 Jul 15:35
Compare
Choose a tag to compare

Features

v6.1.2

02 Jul 15:54
Compare
Choose a tag to compare

Fixes

  • remove language prop type from HighlightAuto TypeScript definitions (f66e5ed, #217)

v6.1.1

27 Jun 12:22
Compare
Choose a tag to compare

Refactor

  • remove unnecessary language null check when setting data-language attribute (1a6ba47, #213)
  • reduce .langtag CSS specificity (64a7596, #211)

v6.1.0

10 Jun 14:44
Compare
Choose a tag to compare

Features

Documentation

  • fix prop table types and default values (63bdb01)

v6.0.1

26 Mar 17:23
Compare
Choose a tag to compare
  • update generated SUPPORTED_LANGUAGES.md and SUPPORTED_STYLES.md

v6.0.0

26 Mar 17:23
Compare
Choose a tag to compare

Breaking Changes

  • use SvelteKit to package the library and auto-generate TypeScript definitions
    • styles are moved from src/styles to styles
    • languages are moved from src/languages to languages
- 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";