svelte-highlight 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.3.1](https://github.com/metonym/svelte-highlight/releases/tag/v5.3.1) - 2022-03-16
9
+
10
+ - use default highlight.js library for `HighlightAuto`
11
+
8
12
  ## [5.3.0](https://github.com/metonym/svelte-highlight/releases/tag/v5.3.0) - 2022-03-12
9
13
 
10
14
  - upgrade `highlight.js` to version 11.5.0 (net +1 language, +3 styles)
package/README.md CHANGED
@@ -120,9 +120,7 @@ The `HighlightAuto` component invokes the `highlightAuto` API from `highlight.js
120
120
  import { HighlightAuto } from "svelte-highlight";
121
121
  import github from "svelte-highlight/src/styles/github";
122
122
 
123
- $: code = `<style>
124
- .body { margin: 0; padding: 0; }
125
- <\/style>`;
123
+ $: code = `body {\n padding: 0;\n color: red;\n}`;
126
124
  </script>
127
125
 
128
126
  <svelte:head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-highlight",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "license": "MIT",
5
5
  "description": "Syntax Highlighting for Svelte using highlight.js",
6
6
  "author": "Eric Liu (https://github.com/metonym)",
@@ -12,7 +12,7 @@
12
12
  */
13
13
  export let langtag = false;
14
14
 
15
- import hljs from "highlight.js/lib/core";
15
+ import hljs from "highlight.js";
16
16
  import { createEventDispatcher, afterUpdate } from "svelte";
17
17
 
18
18
  const dispatch = createEventDispatcher();