Skip to content

Commit

Permalink
版本 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xushengfeng committed Jun 21, 2023
1 parent b8937cb commit 0b7c51a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "tsc && vite build",
"preview": "vite preview"
},
"version": "0.24.1",
"version": "0.25.0",
"homepage": "https://github.com/xushengfeng/xlinkote/",
"license": "GPL-3.0",
"dependencies": {
Expand Down
19 changes: 19 additions & 0 deletions src/js/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2568,6 +2568,25 @@ function version_tr(obj): 集type {
}
obj.meta.version = "0.24.0";
case version_in(v, "0.24.0", "0.24.1"):
{
for (let i of obj.数据) {
w(i.data);
}
w(obj.中转站);
function w(data) {
for (let i of data) {
if (i.type == "X-MD") {
let o = JSON5.parse(i.value);
if (o.type == "math") o.type == "latex math";
i.value = JSON.stringify(o);
} else {
if (i.子元素) w(i.子元素);
}
}
}
}
obj.meta.version = "0.25.0";
case version_in(v, "0.25.0", "0.25.0"):
return obj;
default:
put_toast(`文件版本是 ${v},与当前软件版本 ${packagejson.version} 不兼容,请升级软件`);
Expand Down

0 comments on commit 0b7c51a

Please sign in to comment.