Skip to content

Commit aa25e1d

Browse files
authored
feat: upgrade highlight.js to v11.6.0 (#222)
* chore(deps): upgrade highlight.js to v11.6.0 * Run "yarn build:lib" * Run "yarn test -u"
1 parent f6905d7 commit aa25e1d

File tree

6 files changed

+62
-8
lines changed

6 files changed

+62
-8
lines changed

SUPPORTED_LANGUAGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Supported Languages
22

3-
> 192 languages exported from highlight.js@11.5.0
3+
> 192 languages exported from highlight.js@11.6.0
44
55
## 1c (`_1c`)
66

SUPPORTED_STYLES.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Supported Styles
22

3-
> 246 styles exported from highlight.js@11.5.0
3+
> 248 styles exported from highlight.js@11.6.0
44
55
## 3024 (`_3024`)
66

@@ -3830,6 +3830,50 @@
38303830
</script>
38313831
```
38323832

3833+
## panda-syntax-dark (`pandaSyntaxDark`)
3834+
3835+
**Injected Styles**
3836+
3837+
```html
3838+
<script>
3839+
import pandaSyntaxDark from "svelte-highlight/styles/pandaSyntaxDark";
3840+
</script>
3841+
3842+
<svelte:head>
3843+
{@html pandaSyntaxDark}
3844+
</svelte:head>
3845+
```
3846+
3847+
**CSS StyleSheet**
3848+
3849+
```html
3850+
<script>
3851+
import "svelte-highlight/languages/panda-syntax-dark.css";
3852+
</script>
3853+
```
3854+
3855+
## panda-syntax-light (`pandaSyntaxLight`)
3856+
3857+
**Injected Styles**
3858+
3859+
```html
3860+
<script>
3861+
import pandaSyntaxLight from "svelte-highlight/styles/pandaSyntaxLight";
3862+
</script>
3863+
3864+
<svelte:head>
3865+
{@html pandaSyntaxLight}
3866+
</svelte:head>
3867+
```
3868+
3869+
**CSS StyleSheet**
3870+
3871+
```html
3872+
<script>
3873+
import "svelte-highlight/languages/panda-syntax-light.css";
3874+
</script>
3875+
```
3876+
38333877
## papercolor-dark (`papercolorDark`)
38343878

38353879
**Injected Styles**

demo/lib/styles.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,14 @@
695695
"name": "outrun-dark",
696696
"moduleName": "outrunDark"
697697
},
698+
{
699+
"name": "panda-syntax-dark",
700+
"moduleName": "pandaSyntaxDark"
701+
},
702+
{
703+
"name": "panda-syntax-light",
704+
"moduleName": "pandaSyntaxLight"
705+
},
698706
{
699707
"name": "papercolor-dark",
700708
"moduleName": "papercolorDark"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"format": "prettier --ignore-path .gitignore --write ."
1919
},
2020
"dependencies": {
21-
"highlight.js": "11.5.0"
21+
"highlight.js": "11.6.0"
2222
},
2323
"devDependencies": {
2424
"@sveltejs/adapter-static": "1.0.0-next.35",

tests/styles.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test("Styles", () => {
55
const styleNames = Object.keys(styles);
66

77
expect(styles.default).toBeUndefined();
8-
expect(styleNames.length).toMatchInlineSnapshot("246");
8+
expect(styleNames.length).toMatchInlineSnapshot('248');
99
expect(styleNames).toMatchInlineSnapshot(`
1010
[
1111
"_3024",
@@ -182,6 +182,8 @@ test("Styles", () => {
182182
"oneLight",
183183
"onedark",
184184
"outrunDark",
185+
"pandaSyntaxDark",
186+
"pandaSyntaxLight",
185187
"papercolorDark",
186188
"papercolorLight",
187189
"paraiso",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -789,10 +789,10 @@ has@^1.0.3:
789789
dependencies:
790790
function-bind "^1.1.1"
791791

792-
highlight.js@11.5.0:
793-
version "11.5.0"
794-
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.5.0.tgz#00abb7ed926491adbdabc93a4f3fd2b88b451b4a"
795-
integrity sha512-SM6WDj5/C+VfIY8pZ6yW6Xa0Fm1tniYVYWYW1Q/DcMnISZFrC3aQAZZZFAAZtybKNrGId3p/DNbFTtcTXXgYBw==
792+
highlight.js@11.6.0:
793+
version "11.6.0"
794+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-11.6.0.tgz#a50e9da05763f1bb0c1322c8f4f755242cff3f5a"
795+
integrity sha512-ig1eqDzJaB0pqEvlPVIpSSyMaO92bH1N2rJpLMN/nX396wTpDA4Eq0uK+7I/2XG17pFaaKE0kjV/XPeGt7Evjw==
796796

797797
html-encoding-sniffer@^3.0.0:
798798
version "3.0.0"

0 commit comments

Comments
 (0)