🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

svelte-highlight

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-highlight - npm Package Versions

1245
8

7.1.2

Diff
metonym
published 7.1.2 •

Changelog

Source

7.1.2 - 2023-01-01

Fixes

  • correctly set top/bottom padding in LineNumbers if code is updated
metonym
published 7.1.1 •

Changelog

Source

7.1.1 - 2022-12-31

Fixes

  • republish package
metonym
published 7.1.0 •

Changelog

Source

7.1.0 - 2022-12-31

Features

  • add startingLineNumber prop to LineNumbers
metonym
published 7.0.1 •

Changelog

Source

7.0.1 - 2022-12-30

Fixes

  • reset table styles in LineNumbers
metonym
published 7.0.0 •

Changelog

Source

7.0.0 - 2022-12-30

Breaking Changes

  • rename langtag style props
    • --hljs-background -> --langtag-background
    • --hljs-foreground -> --langtag-color
    • --hljs-radius -> --langtag-border-radius
  • mark code, language as required props

Features

  • include inferred language in on:highlight event detail in HighlightAuto
  • add LineNumbers component to support rendering line numbers
  • upgrade highlight.js to version 11.7.0

Fixes

  • use HTMLAttributes from svelte/elements to correctly type $$restProps
metonym
published 6.2.1 •

Changelog

Source

6.2.1 - 2022-08-07

Fixes

  • generate types for svelte-highlight/languages/*, svelte-highlight/styles/*

Documentation

  • add dynamic import example
  • document CDN styles usage
  • use TypeScript in all example set-ups
  • remove Snowpack example as it is no longer maintained
  • update set-up instructions for SvelteKit/Vite
metonym
published 6.2.0 •

Changelog

Source

6.2.0 - 2022-07-13

Features

  • upgrade highlight.js to version 11.6.0 (net +2 styles)
metonym
published 6.1.2 •
metonym
published 6.1.1 •

Changelog

Source

6.1.1 - 2022-07-02

Fixes

  • remove language prop type from HighlightAuto TypeScript definitions
metonym
published 6.1.0 •

Changelog

Source

6.1.0 - 2022-06-10

Features

  • port Svelte components to TypeScript

Documentation

  • fix prop table types and default values