svelte-highlight 6.1.2 → 6.2.0
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,12 @@ 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
|
+
## [6.2.0](https://github.com/metonym/svelte-highlight/releases/tag/v6.2.0) - 2022-07-13
|
|
9
|
+
|
|
10
|
+
**Features**
|
|
11
|
+
|
|
12
|
+
- upgrade `highlight.js` to version [11.6.0](https://github.com/highlightjs/highlight.js/releases/tag/11.6.0) (net +2 styles)
|
|
13
|
+
|
|
8
14
|
## [6.1.1](https://github.com/metonym/svelte-highlight/releases/tag/v6.1.1) - 2022-07-02
|
|
9
15
|
|
|
10
16
|
**Fixes**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-highlight",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Syntax Highlighting for Svelte using highlight.js",
|
|
6
6
|
"author": "Eric Liu (https://github.com/metonym)",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
],
|
|
10
10
|
"type": "module",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"highlight.js": "11.
|
|
12
|
+
"highlight.js": "11.6.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@sveltejs/adapter-static": "1.0.0-next.
|
|
16
|
-
"@sveltejs/kit": "1.0.0-next.
|
|
15
|
+
"@sveltejs/adapter-static": "1.0.0-next.35",
|
|
16
|
+
"@sveltejs/kit": "1.0.0-next.370",
|
|
17
17
|
"@testing-library/svelte": "^3.1.3",
|
|
18
18
|
"@testing-library/user-event": "^14.2.1",
|
|
19
19
|
"@types/prettier": "^2.6.3",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"jsdom": "^20.0.0",
|
|
24
24
|
"prettier": "^2.7.1",
|
|
25
25
|
"prettier-plugin-svelte": "^2.7.0",
|
|
26
|
-
"svelte": "^3.
|
|
26
|
+
"svelte": "^3.49.0",
|
|
27
27
|
"svelte-check": "^2.8.0",
|
|
28
28
|
"svelte-focus-key": "^0.3.2",
|
|
29
29
|
"svelte-preprocess": "^4.10.7",
|
|
30
30
|
"svelte2tsx": "^0.5.11",
|
|
31
31
|
"totalist": "^3.0.0",
|
|
32
32
|
"typescript": "^4.7.4",
|
|
33
|
-
"vitest": "^0.
|
|
33
|
+
"vitest": "^0.18.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
@@ -597,6 +597,10 @@
|
|
|
597
597
|
"./styles/onedark": "./styles/onedark.js",
|
|
598
598
|
"./styles/outrun-dark.css": "./styles/outrun-dark.css",
|
|
599
599
|
"./styles/outrun-dark": "./styles/outrun-dark.js",
|
|
600
|
+
"./styles/panda-syntax-dark.css": "./styles/panda-syntax-dark.css",
|
|
601
|
+
"./styles/panda-syntax-dark": "./styles/panda-syntax-dark.js",
|
|
602
|
+
"./styles/panda-syntax-light.css": "./styles/panda-syntax-light.css",
|
|
603
|
+
"./styles/panda-syntax-light": "./styles/panda-syntax-light.js",
|
|
600
604
|
"./styles/papercolor-dark.css": "./styles/papercolor-dark.css",
|
|
601
605
|
"./styles/papercolor-dark": "./styles/papercolor-dark.js",
|
|
602
606
|
"./styles/papercolor-light.css": "./styles/papercolor-light.css",
|
package/styles/index.js
CHANGED
|
@@ -172,6 +172,8 @@ export { default as oceanicnext } from "./oceanicnext";
|
|
|
172
172
|
export { default as oneLight } from "./one-light";
|
|
173
173
|
export { default as onedark } from "./onedark";
|
|
174
174
|
export { default as outrunDark } from "./outrun-dark";
|
|
175
|
+
export { default as pandaSyntaxDark } from "./panda-syntax-dark";
|
|
176
|
+
export { default as pandaSyntaxLight } from "./panda-syntax-light";
|
|
175
177
|
export { default as papercolorDark } from "./papercolor-dark";
|
|
176
178
|
export { default as papercolorLight } from "./papercolor-light";
|
|
177
179
|
export { default as paraiso } from "./paraiso";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
pre code.hljs {
|
|
2
|
+
display: block;
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
padding: 1em;
|
|
5
|
+
}
|
|
6
|
+
code.hljs {
|
|
7
|
+
padding: 3px 5px;
|
|
8
|
+
}
|
|
9
|
+
.hljs {
|
|
10
|
+
color: #e6e6e6;
|
|
11
|
+
background: #2a2c2d;
|
|
12
|
+
}
|
|
13
|
+
.hljs-emphasis {
|
|
14
|
+
font-style: italic;
|
|
15
|
+
}
|
|
16
|
+
.hljs-strong {
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
}
|
|
19
|
+
.hljs-link {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
22
|
+
.hljs-comment,
|
|
23
|
+
.hljs-quote {
|
|
24
|
+
color: #bbb;
|
|
25
|
+
font-style: italic;
|
|
26
|
+
}
|
|
27
|
+
.hljs-params {
|
|
28
|
+
color: #bbb;
|
|
29
|
+
}
|
|
30
|
+
.hljs-attr,
|
|
31
|
+
.hljs-punctuation {
|
|
32
|
+
color: #e6e6e6;
|
|
33
|
+
}
|
|
34
|
+
.hljs-meta,
|
|
35
|
+
.hljs-name,
|
|
36
|
+
.hljs-selector-tag {
|
|
37
|
+
color: #ff4b82;
|
|
38
|
+
}
|
|
39
|
+
.hljs-char.escape_,
|
|
40
|
+
.hljs-operator {
|
|
41
|
+
color: #b084eb;
|
|
42
|
+
}
|
|
43
|
+
.hljs-deletion,
|
|
44
|
+
.hljs-keyword {
|
|
45
|
+
color: #ff75b5;
|
|
46
|
+
}
|
|
47
|
+
.hljs-regexp,
|
|
48
|
+
.hljs-selector-attr,
|
|
49
|
+
.hljs-selector-pseudo,
|
|
50
|
+
.hljs-variable.language_ {
|
|
51
|
+
color: #ff9ac1;
|
|
52
|
+
}
|
|
53
|
+
.hljs-code,
|
|
54
|
+
.hljs-formula,
|
|
55
|
+
.hljs-property,
|
|
56
|
+
.hljs-section,
|
|
57
|
+
.hljs-subst,
|
|
58
|
+
.hljs-title.function_ {
|
|
59
|
+
color: #45a9f9;
|
|
60
|
+
}
|
|
61
|
+
.hljs-addition,
|
|
62
|
+
.hljs-bullet,
|
|
63
|
+
.hljs-meta .hljs-string,
|
|
64
|
+
.hljs-selector-class,
|
|
65
|
+
.hljs-string,
|
|
66
|
+
.hljs-symbol,
|
|
67
|
+
.hljs-title.class_,
|
|
68
|
+
.hljs-title.class_.inherited__ {
|
|
69
|
+
color: #19f9d8;
|
|
70
|
+
}
|
|
71
|
+
.hljs-attribute,
|
|
72
|
+
.hljs-built_in,
|
|
73
|
+
.hljs-doctag,
|
|
74
|
+
.hljs-link,
|
|
75
|
+
.hljs-literal,
|
|
76
|
+
.hljs-meta .hljs-keyword,
|
|
77
|
+
.hljs-number,
|
|
78
|
+
.hljs-punctuation,
|
|
79
|
+
.hljs-selector-id,
|
|
80
|
+
.hljs-tag,
|
|
81
|
+
.hljs-template-tag,
|
|
82
|
+
.hljs-template-variable,
|
|
83
|
+
.hljs-title,
|
|
84
|
+
.hljs-type,
|
|
85
|
+
.hljs-variable {
|
|
86
|
+
color: #ffb86c;
|
|
87
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const pandaSyntaxDark = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#e6e6e6;background:#2a2c2d}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.hljs-comment,.hljs-quote{color:#bbb;font-style:italic}.hljs-params{color:#bbb}.hljs-attr,.hljs-punctuation{color:#e6e6e6}.hljs-meta,.hljs-name,.hljs-selector-tag{color:#ff4b82}.hljs-char.escape_,.hljs-operator{color:#b084eb}.hljs-deletion,.hljs-keyword{color:#ff75b5}.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-variable.language_{color:#ff9ac1}.hljs-code,.hljs-formula,.hljs-property,.hljs-section,.hljs-subst,.hljs-title.function_{color:#45a9f9}.hljs-addition,.hljs-bullet,.hljs-meta .hljs-string,.hljs-selector-class,.hljs-string,.hljs-symbol,.hljs-title.class_,.hljs-title.class_.inherited__{color:#19f9d8}.hljs-attribute,.hljs-built_in,.hljs-doctag,.hljs-link,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-number,.hljs-punctuation,.hljs-selector-id,.hljs-tag,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type,.hljs-variable{color:#ffb86c}</style>`;
|
|
2
|
+
|
|
3
|
+
export default pandaSyntaxDark;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
pre code.hljs {
|
|
2
|
+
display: block;
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
padding: 1em;
|
|
5
|
+
}
|
|
6
|
+
code.hljs {
|
|
7
|
+
padding: 3px 5px;
|
|
8
|
+
}
|
|
9
|
+
.hljs {
|
|
10
|
+
color: #2a2c2d;
|
|
11
|
+
background: #e6e6e6;
|
|
12
|
+
}
|
|
13
|
+
.hljs-emphasis {
|
|
14
|
+
font-style: italic;
|
|
15
|
+
}
|
|
16
|
+
.hljs-strong {
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
}
|
|
19
|
+
.hljs-link {
|
|
20
|
+
text-decoration: underline;
|
|
21
|
+
}
|
|
22
|
+
.hljs-comment,
|
|
23
|
+
.hljs-quote {
|
|
24
|
+
color: #676b79;
|
|
25
|
+
font-style: italic;
|
|
26
|
+
}
|
|
27
|
+
.hljs-params {
|
|
28
|
+
color: #676b79;
|
|
29
|
+
}
|
|
30
|
+
.hljs-attr,
|
|
31
|
+
.hljs-punctuation {
|
|
32
|
+
color: #2a2c2d;
|
|
33
|
+
}
|
|
34
|
+
.hljs-char.escape_,
|
|
35
|
+
.hljs-meta,
|
|
36
|
+
.hljs-name,
|
|
37
|
+
.hljs-operator,
|
|
38
|
+
.hljs-selector-tag {
|
|
39
|
+
color: #c56200;
|
|
40
|
+
}
|
|
41
|
+
.hljs-deletion,
|
|
42
|
+
.hljs-keyword {
|
|
43
|
+
color: #d92792;
|
|
44
|
+
}
|
|
45
|
+
.hljs-regexp,
|
|
46
|
+
.hljs-selector-attr,
|
|
47
|
+
.hljs-selector-pseudo,
|
|
48
|
+
.hljs-variable.language_ {
|
|
49
|
+
color: #cc5e91;
|
|
50
|
+
}
|
|
51
|
+
.hljs-code,
|
|
52
|
+
.hljs-formula,
|
|
53
|
+
.hljs-property,
|
|
54
|
+
.hljs-section,
|
|
55
|
+
.hljs-subst,
|
|
56
|
+
.hljs-title.function_ {
|
|
57
|
+
color: #3787c7;
|
|
58
|
+
}
|
|
59
|
+
.hljs-addition,
|
|
60
|
+
.hljs-bullet,
|
|
61
|
+
.hljs-meta .hljs-string,
|
|
62
|
+
.hljs-selector-class,
|
|
63
|
+
.hljs-string,
|
|
64
|
+
.hljs-symbol,
|
|
65
|
+
.hljs-title.class_,
|
|
66
|
+
.hljs-title.class_.inherited__ {
|
|
67
|
+
color: #0d7d6c;
|
|
68
|
+
}
|
|
69
|
+
.hljs-attribute,
|
|
70
|
+
.hljs-built_in,
|
|
71
|
+
.hljs-doctag,
|
|
72
|
+
.hljs-link,
|
|
73
|
+
.hljs-literal,
|
|
74
|
+
.hljs-meta .hljs-keyword,
|
|
75
|
+
.hljs-number,
|
|
76
|
+
.hljs-selector-id,
|
|
77
|
+
.hljs-tag,
|
|
78
|
+
.hljs-template-tag,
|
|
79
|
+
.hljs-template-variable,
|
|
80
|
+
.hljs-title,
|
|
81
|
+
.hljs-type,
|
|
82
|
+
.hljs-variable {
|
|
83
|
+
color: #7641bb;
|
|
84
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const pandaSyntaxLight = `<style>pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#2a2c2d;background:#e6e6e6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.hljs-comment,.hljs-quote{color:#676b79;font-style:italic}.hljs-params{color:#676b79}.hljs-attr,.hljs-punctuation{color:#2a2c2d}.hljs-char.escape_,.hljs-meta,.hljs-name,.hljs-operator,.hljs-selector-tag{color:#c56200}.hljs-deletion,.hljs-keyword{color:#d92792}.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-variable.language_{color:#cc5e91}.hljs-code,.hljs-formula,.hljs-property,.hljs-section,.hljs-subst,.hljs-title.function_{color:#3787c7}.hljs-addition,.hljs-bullet,.hljs-meta .hljs-string,.hljs-selector-class,.hljs-string,.hljs-symbol,.hljs-title.class_,.hljs-title.class_.inherited__{color:#0d7d6c}.hljs-attribute,.hljs-built_in,.hljs-doctag,.hljs-link,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-number,.hljs-selector-id,.hljs-tag,.hljs-template-tag,.hljs-template-variable,.hljs-title,.hljs-type,.hljs-variable{color:#7641bb}</style>`;
|
|
2
|
+
|
|
3
|
+
export default pandaSyntaxLight;
|