Skip to content

Commit

Permalink
feat(deps): upgrade highlight.js to 11.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 15, 2024
1 parent 8486bef commit 4303aef
Show file tree
Hide file tree
Showing 6 changed files with 165 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.10.0
> 192 languages exported from highlight.js@11.11.0
## 1c (`_1c`)

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

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

Expand Down Expand Up @@ -1520,6 +1520,94 @@
</script>
```

## cybertopia-cherry (`cybertopiaCherry`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/cybertopia-cherry.css";
</script>
```

## cybertopia-dimmer (`cybertopiaDimmer`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/cybertopia-dimmer.css";
</script>
```

## cybertopia-icecap (`cybertopiaIcecap`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/cybertopia-icecap.css";
</script>
```

## cybertopia-saturated (`cybertopiaSaturated`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/cybertopia-saturated.css";
</script>
```

## danqing (`danqing`)

**Injected Styles**
Expand Down Expand Up @@ -4358,6 +4446,72 @@
</script>
```

## rose-pine (`rosePine`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/rose-pine.css";
</script>
```

## rose-pine-dawn (`rosePineDawn`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/rose-pine-dawn.css";
</script>
```

## rose-pine-moon (`rosePineMoon`)

**Injected Styles**

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

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

**CSS StyleSheet**

```html
<script>
import "svelte-highlight/styles/rose-pine-moon.css";
</script>
```

## routeros (`routeros`)

**Injected Styles**
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 @@ -19,7 +19,7 @@
"playwright": "playwright"
},
"dependencies": {
"highlight.js": "11.10.0"
"highlight.js": "11.11.0"
},
"devDependencies": {
"@astrojs/svelte": "latest",
Expand Down
7 changes: 7 additions & 0 deletions tests/__snapshots__/styles.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ exports[`Styles 1`] = `
"colors",
"cupcake",
"cupertino",
"cybertopiaCherry",
"cybertopiaDimmer",
"cybertopiaIcecap",
"cybertopiaSaturated",
"danqing",
"darcula",
"dark",
Expand Down Expand Up @@ -200,6 +204,9 @@ exports[`Styles 1`] = `
"rosPine",
"rosPineDawn",
"rosPineMoon",
"rosePine",
"rosePineDawn",
"rosePineMoon",
"routeros",
"sagelight",
"sandcastle",
Expand Down
2 changes: 1 addition & 1 deletion tests/styles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ test("Styles", () => {

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

0 comments on commit 4303aef

Please sign in to comment.