Skip to content

Commit

Permalink
feat(deps): upgrade highlight.js to 11.10.0 (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Jul 15, 2024
1 parent af57186 commit 7f9e47d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SUPPORTED_LANGUAGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Supported Languages

> 192 languages exported from highlight.js@11.9.0
> 192 languages exported from highlight.js@11.10.0
## 1c (`_1c`)

Expand Down
24 changes: 23 additions & 1 deletion SUPPORTED_STYLES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Supported Styles

> 248 styles exported from highlight.js@11.9.0
> 249 styles exported from highlight.js@11.10.0
## 1c-light (`_1cLight`)

**Injected Styles**

```html
<script>
import _1cLight from "svelte-highlight/styles/_1cLight";
</script>

<svelte:head>
{@html _1cLight}
</svelte:head>
```

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/1c-light.css";
</script>
```

## 3024 (`_3024`)

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"playwright": "playwright"
},
"dependencies": {
"highlight.js": "11.9.0"
"highlight.js": "11.10.0"
},
"devDependencies": {
"@astrojs/svelte": "latest",
Expand Down
1 change: 1 addition & 0 deletions tests/__snapshots__/styles.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

exports[`Styles 1`] = `
[
"_1cLight",
"_3024",
"_default",
"a11yDark",
Expand Down
2 changes: 1 addition & 1 deletion tests/styles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ test("Styles", () => {

// @ts-expect-error
expect(styles.default).toBeUndefined();
expect(styleNames.length).toEqual(248);
expect(styleNames.length).toEqual(249);
expect(styleNames).toMatchSnapshot();
});

0 comments on commit 7f9e47d

Please sign in to comment.