Skip to content

Commit 3cf09c8

Browse files
committed
update deps
1 parent 1952cce commit 3cf09c8

File tree

16 files changed

+57
-88
lines changed

16 files changed

+57
-88
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ labels: bug
66
assignees: ''
77
---
88

9-
- [ ] The Plugin is up to date
10-
- [ ] Obsidian is up to date
9+
- [ ] The Plugin is up to date
10+
- [ ] Obsidian is up to date
1111

1212
**Describe the bug**
1313
A clear and concise description of what the bug is.
@@ -28,11 +28,11 @@ If applicable, add screenshots to help explain your problem.
2828

2929
**Occurs on**
3030

31-
- [ ] Windows
32-
- [ ] macOS
33-
- [ ] Linux
34-
- [ ] Android
35-
- [ ] iOS
31+
- [ ] Windows
32+
- [ ] macOS
33+
- [ ] Linux
34+
- [ ] Android
35+
- [ ] iOS
3636

3737
**Plugin version**
3838
x.x.x

.prettierrc.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
{
2-
"plugins": ["prettier-plugin-svelte"],
3-
42
"printWidth": 160,
53
"useTabs": true,
64
"tabWidth": 4,
75
"semi": true,
86
"singleQuote": true,
9-
"arrowParens": "avoid",
10-
11-
"svelteAllowShorthand": false
7+
"arrowParens": "avoid"
128
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ This plugin uses [shiki](https://shiki.style/), [Expressive Code](https://expres
119119

120120
Special thanks to:
121121

122-
- Hippo (hippotastic) for their work and support with Expressive Code
123-
- sailKite for CSS help and testing the plugin
122+
- Hippo (hippotastic) for their work and support with Expressive Code
123+
- sailKite for CSS help and testing the plugin

automation/build/esbuild.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import builtins from 'builtin-modules';
22
import esbuild from 'esbuild';
3-
import esbuildSvelte from 'esbuild-svelte';
4-
import sveltePreprocess from 'svelte-preprocess';
53
import { getBuildBanner } from 'build/buildBanner';
64
import { nodeModulesPolyfillPlugin } from 'esbuild-plugins-node-modules-polyfill';
75

@@ -41,14 +39,6 @@ const build = await esbuild.build({
4139
MB_GLOBAL_CONFIG_DEV_BUILD: 'false',
4240
},
4341
plugins: [
44-
esbuildSvelte({
45-
compilerOptions: { css: 'injected', dev: false, sveltePath: 'svelte' },
46-
preprocess: sveltePreprocess(),
47-
filterWarnings: warning => {
48-
// we don't want warnings from node modules that we can do nothing about
49-
return !warning.filename?.includes('node_modules');
50-
},
51-
}),
5242
nodeModulesPolyfillPlugin({
5343
modules: {
5444
fs: true,

automation/build/esbuild.dev.config.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import esbuild from 'esbuild';
22
import copy from 'esbuild-plugin-copy-watch';
3-
import esbuildSvelte from 'esbuild-svelte';
4-
import sveltePreprocess from 'svelte-preprocess';
53
import manifest from '../../manifest.json' assert { type: 'json' };
64
import { getBuildBanner } from 'build/buildBanner';
75
import { nodeModulesPolyfillPlugin } from 'esbuild-plugins-node-modules-polyfill';
@@ -52,14 +50,6 @@ const context = await esbuild.context({
5250
},
5351
],
5452
}),
55-
esbuildSvelte({
56-
compilerOptions: { css: 'injected', dev: true, sveltePath: 'svelte' },
57-
preprocess: sveltePreprocess(),
58-
filterWarnings: warning => {
59-
// we don't want warnings from node modules that we can do nothing about
60-
return !warning.filename?.includes('node_modules');
61-
},
62-
}),
6353
nodeModulesPolyfillPlugin({
6454
modules: {
6555
fs: true,

bun.lockb

-18 KB
Binary file not shown.

exampleVault/customLanguages/odin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"comment": "Taken from https://github.com/DanielGavin/ols. Modification of https://github.com/fivemoreminix/odin-vscode",
33
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
4-
"name": "Odin",
4+
"name": "custom-odin",
55
"patterns": [
66
{ "include": "#file-tags" },
77
{ "include": "#package-name-declaration" },

exampleVault/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Inline code
104104
105105
`{jsx} <button role="button" />`
106106
107-
```Odin
107+
```custom-odin
108108
package main
109109
110110
import "core:fmt"

package.json

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,49 @@
99
"tsc": "tsc -noEmit -skipLibCheck",
1010
"test": "bun test",
1111
"test:log": "LOG_TESTS=true bun test",
12-
"format": "prettier --write --plugin prettier-plugin-svelte .",
13-
"format:check": "prettier --check --plugin prettier-plugin-svelte .",
12+
"format": "prettier --write .",
13+
"format:check": "prettier --check .",
1414
"lint": "eslint --max-warnings=0 src/**",
1515
"lint:fix": "eslint --max-warnings=0 --fix src/**",
16-
"svelte-check": "svelte-check --compiler-warnings \"unused-export-let:ignore\"",
17-
"check": "bun run format:check && bun run tsc && bun run svelte-check && bun run lint && bun run test",
18-
"check:fix": "bun run format && bun run tsc && bun run svelte-check && bun run lint:fix && bun run test",
16+
"check": "bun run format:check && bun run tsc && bun run lint && bun run test",
17+
"check:fix": "bun run format && bun run tsc && bun run lint:fix && bun run test",
1918
"release": "bun run automation/release.ts",
2019
"stats": "bun run automation/stats.ts"
2120
},
2221
"keywords": [],
2322
"author": "Moritz Jung",
2423
"license": "MIT",
2524
"devDependencies": {
26-
"@codemirror/language": "^6.10.2",
25+
"@codemirror/language": "^6.10.6",
2726
"@codemirror/state": "^6.4.1",
28-
"@codemirror/view": "^6.28.4",
29-
"@eslint/js": "^9.6.0",
30-
"@expressive-code/core": "^0.35.3",
31-
"@expressive-code/plugin-collapsible-sections": "^0.35.3",
32-
"@expressive-code/plugin-frames": "^0.35.3",
33-
"@expressive-code/plugin-line-numbers": "^0.35.3",
34-
"@expressive-code/plugin-shiki": "^0.35.3",
35-
"@expressive-code/plugin-text-markers": "^0.35.3",
27+
"@codemirror/view": "^6.35.0",
28+
"@eslint/js": "^9.16.0",
29+
"@expressive-code/core": "^0.38.3",
30+
"@expressive-code/plugin-collapsible-sections": "^0.38.3",
31+
"@expressive-code/plugin-frames": "^0.38.3",
32+
"@expressive-code/plugin-line-numbers": "^0.38.3",
33+
"@expressive-code/plugin-shiki": "^0.38.3",
34+
"@expressive-code/plugin-text-markers": "^0.38.3",
3635
"@happy-dom/global-registrator": "^14.12.3",
3736
"@lemons_dev/parsinom": "^0.0.12",
38-
"@lezer/common": "^1.2.1",
37+
"@lezer/common": "^1.2.3",
3938
"@tsconfig/svelte": "^5.0.4",
40-
"@types/bun": "^1.1.6",
39+
"@types/bun": "^1.1.14",
4140
"@types/eslint__js": "^8.42.3",
4241
"builtin-modules": "^4.0.0",
43-
"esbuild": "^0.23.0",
42+
"esbuild": "^0.24.0",
4443
"esbuild-plugin-copy-watch": "^2.3.1",
45-
"esbuild-plugins-node-modules-polyfill": "^1.6.4",
46-
"esbuild-svelte": "^0.8.1",
47-
"eslint": "^9.6.0",
44+
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
45+
"eslint": "^9.16.0",
4846
"eslint-plugin-no-relative-import-paths": "^1.5.5",
4947
"eslint-plugin-only-warn": "^1.1.0",
5048
"itertools-ts": "^1.27.1",
5149
"obsidian": "latest",
52-
"prettier": "^3.3.2",
53-
"prettier-plugin-svelte": "^3.2.5",
54-
"shiki": "^1.1.7",
50+
"prettier": "^3.4.2",
51+
"shiki": "^1.24.0",
5552
"string-argv": "^0.3.2",
56-
"svelte": "^4.2.18",
57-
"svelte-check": "^3.8.4",
58-
"svelte-preprocess": "^6.0.2",
59-
"tslib": "^2.6.3",
60-
"typescript": "^5.5.3",
61-
"typescript-eslint": "^7.16.0"
53+
"tslib": "^2.8.1",
54+
"typescript": "^5.7.2",
55+
"typescript-eslint": "^8.17.0"
6256
}
6357
}

src/Highlighter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export class CodeHighlighter {
199199
*/
200200
obsidianSafeLanguageNames(): string[] {
201201
return this.loadedLanguages.filter(lang => !languageNameBlacklist.has(lang) && !this.plugin.loadedSettings.disabledLanguages.includes(lang));
202+
// .concat(this.customLanguages.map(lang => lang.name));
202203
}
203204

204205
/**

0 commit comments

Comments
 (0)