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 +4 -0
- package/README.md +1 -3
- package/package.json +1 -1
- package/src/HighlightAuto.svelte +1 -1
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 =
|
|
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
package/src/HighlightAuto.svelte
CHANGED