Skip to content

Commit bc6652c

Browse files
committed
refactor: use PluginSettings instead of js object
1 parent 8c87dfa commit bc6652c

File tree

7 files changed

+111
-164
lines changed

7 files changed

+111
-164
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
English | [简体中文](https://github.com/typora-community-plugin/typora-plugin-codeblock-highlight-mapper/blob/main/README.zh-CN.md)
44

5-
This a plugin example based on [typora-community-plugin](https://github.com/typora-community-plugin/typora-community-plugin) for [Typora](https://typora.io).
5+
This a plugin based on [typora-community-plugin](https://github.com/typora-community-plugin/typora-community-plugin) for [Typora](https://typora.io).
66

77
Map language A to language B for highlighting it. It will be recovered before saved.
88

99
## Preview
1010

11-
![](https://fastly.jsdelivr.net/gh/typora-community-plugin/typora-plugin-codeblock-highlight-mapper@main/docs/assets/base.jpg)
11+
![](./docs/assets/base.jpg)

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
## Preview
1010

11-
![](https://fastly.jsdelivr.net/gh/typora-community-plugin/typora-plugin-codeblock-highlight-mapper@main/docs/assets/base.jpg)
11+
![](./docs/assets/base.jpg)

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@
1414
"author": "",
1515
"license": "MIT",
1616
"devDependencies": {
17-
"@types/extract-zip": "1.6.2",
18-
"@types/glob": "7.2.0",
1917
"@types/jquery": "3.3.1",
20-
"@types/lodash": "~4.14.196",
18+
"@types/lodash": "~4.14.197",
2119
"@types/node": "16.18.0",
22-
"@types/yauzl": "2.10.0",
23-
"@typora-community-plugin/core": "^2.0.0-beta.4",
24-
"archiver": "^5.3.1",
25-
"esbuild": "^0.18.17",
26-
"esbuild-plugin-typora": "npm:@typora-community-plugin/esbuild-plugin-typora@^1.0.2",
27-
"iconv-lite": "0.6.3"
20+
"@typora-community-plugin/core": "^2.0.0-beta.21",
21+
"archiver": "^5.3.2",
22+
"esbuild": "^0.18.20",
23+
"esbuild-plugin-typora": "npm:@typora-community-plugin/esbuild-plugin-typora@^1.0.5"
2824
}
2925
}

0 commit comments

Comments
 (0)