valaxy 0.23.4 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/utils/content.ts
CHANGED
|
@@ -4,7 +4,7 @@ import yargs from "yargs";
|
|
|
4
4
|
import { hideBin } from "yargs/helpers";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.23.
|
|
7
|
+
var version = "0.23.5";
|
|
8
8
|
|
|
9
9
|
// node/modules/fuse.ts
|
|
10
10
|
import path4 from "path";
|
|
@@ -2344,8 +2344,10 @@ function math_plugin(md3, options) {
|
|
|
2344
2344
|
try {
|
|
2345
2345
|
return katex.renderToString(latex, options);
|
|
2346
2346
|
} catch (error) {
|
|
2347
|
-
if (options.throwOnError)
|
|
2348
|
-
|
|
2347
|
+
if (options.throwOnError) {
|
|
2348
|
+
throw error;
|
|
2349
|
+
}
|
|
2350
|
+
console.warn(error);
|
|
2349
2351
|
return latex;
|
|
2350
2352
|
}
|
|
2351
2353
|
};
|
|
@@ -2357,8 +2359,10 @@ function math_plugin(md3, options) {
|
|
|
2357
2359
|
try {
|
|
2358
2360
|
return `<p>${katex.renderToString(latex, options)}</p>`;
|
|
2359
2361
|
} catch (error) {
|
|
2360
|
-
if (options.throwOnError)
|
|
2361
|
-
|
|
2362
|
+
if (options.throwOnError) {
|
|
2363
|
+
throw error;
|
|
2364
|
+
}
|
|
2365
|
+
console.warn(error);
|
|
2362
2366
|
return latex;
|
|
2363
2367
|
}
|
|
2364
2368
|
};
|
|
@@ -3408,8 +3412,8 @@ function transformHexoTags(code, id) {
|
|
|
3408
3412
|
`} Please ${colors10.red("remove")} ${colors10.cyan("{% %}")}, because it conflicts with ${colors10.yellow("markdown-it-attrs")}.`
|
|
3409
3413
|
);
|
|
3410
3414
|
}
|
|
3411
|
-
code.
|
|
3412
|
-
code.
|
|
3415
|
+
code = code.replaceAll("{%", "\\{\\%");
|
|
3416
|
+
code = code.replaceAll("%}", "\\%\\}");
|
|
3413
3417
|
return code;
|
|
3414
3418
|
}
|
|
3415
3419
|
|
package/dist/node/cli/index.js
CHANGED
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.23.
|
|
4
|
+
"version": "0.23.5",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"@clack/prompts": "^0.11.0",
|
|
58
58
|
"@iconify-json/ri": "^1.2.5",
|
|
59
59
|
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
|
60
|
-
"@shikijs/transformers": "^3.
|
|
60
|
+
"@shikijs/transformers": "^3.6.0",
|
|
61
61
|
"@types/katex": "^0.16.7",
|
|
62
62
|
"@unhead/addons": "^2.0.10",
|
|
63
63
|
"@unhead/schema-org": "^2.0.10",
|
|
64
64
|
"@unhead/vue": "^2.0.10",
|
|
65
65
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
66
66
|
"@vue/devtools-api": "7.7.2",
|
|
67
|
-
"@vueuse/core": "^13.
|
|
68
|
-
"@vueuse/integrations": "^13.
|
|
67
|
+
"@vueuse/core": "^13.3.0",
|
|
68
|
+
"@vueuse/integrations": "^13.3.0",
|
|
69
69
|
"beasties": "^0.3.4",
|
|
70
|
-
"birpc": "^2.
|
|
70
|
+
"birpc": "^2.4.0",
|
|
71
71
|
"consola": "^3.4.2",
|
|
72
72
|
"cross-spawn": "^7.0.6",
|
|
73
73
|
"css-i18n": "^0.0.5",
|
|
@@ -106,33 +106,33 @@
|
|
|
106
106
|
"ora": "^8.2.0",
|
|
107
107
|
"pascalcase": "^2.0.0",
|
|
108
108
|
"pathe": "^2.0.3",
|
|
109
|
-
"pinia": "^3.0.
|
|
109
|
+
"pinia": "^3.0.3",
|
|
110
110
|
"qrcode": "^1.5.4",
|
|
111
111
|
"resolve-global": "^2.0.0",
|
|
112
|
-
"sass": "^1.89.
|
|
113
|
-
"shiki": "^3.
|
|
112
|
+
"sass": "^1.89.2",
|
|
113
|
+
"shiki": "^3.6.0",
|
|
114
114
|
"star-markdown-css": "^0.5.3",
|
|
115
115
|
"table": "^6.9.0",
|
|
116
116
|
"unhead": "^2.0.10",
|
|
117
|
-
"unocss": "^66.
|
|
117
|
+
"unocss": "^66.2.0",
|
|
118
118
|
"unplugin-vue-components": "28.0.0",
|
|
119
119
|
"unplugin-vue-markdown": "^28.3.1",
|
|
120
120
|
"unplugin-vue-router": "^0.12.0",
|
|
121
121
|
"vanilla-lazyload": "^19.1.3",
|
|
122
122
|
"vite": "^6.3.5",
|
|
123
123
|
"vite-dev-rpc": "^1.0.7",
|
|
124
|
-
"vite-plugin-vue-devtools": "^7.7.
|
|
124
|
+
"vite-plugin-vue-devtools": "^7.7.7",
|
|
125
125
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
126
126
|
"vite-ssg": "^27.0.1",
|
|
127
127
|
"vite-ssg-sitemap": "^0.9.0",
|
|
128
|
-
"vitepress-plugin-group-icons": "^1.
|
|
129
|
-
"vue": "^3.5.
|
|
130
|
-
"vue-i18n": "^11.1.
|
|
128
|
+
"vitepress-plugin-group-icons": "^1.6.0",
|
|
129
|
+
"vue": "^3.5.16",
|
|
130
|
+
"vue-i18n": "^11.1.5",
|
|
131
131
|
"vue-router": "^4.5.1",
|
|
132
|
-
"yargs": "^
|
|
133
|
-
"zfeed": "^0.2.
|
|
134
|
-
"@valaxyjs/
|
|
135
|
-
"@valaxyjs/
|
|
132
|
+
"yargs": "^18.0.0",
|
|
133
|
+
"zfeed": "^0.2.3",
|
|
134
|
+
"@valaxyjs/devtools": "0.23.5",
|
|
135
|
+
"@valaxyjs/utils": "0.23.5"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@mdit-vue/plugin-component": "^2.1.4",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"diacritics": "^1.3.0",
|
|
158
158
|
"gh-pages": "^6.3.0",
|
|
159
159
|
"https-localhost": "^4.7.1",
|
|
160
|
-
"rollup-plugin-visualizer": "^6.0.
|
|
160
|
+
"rollup-plugin-visualizer": "^6.0.3"
|
|
161
161
|
},
|
|
162
162
|
"scripts": {
|
|
163
163
|
"clean": "rimraf dist",
|
package/types/data.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Header } from '@valaxyjs/utils'
|
|
2
2
|
import type { Post } from './posts'
|
|
3
3
|
|
|
4
|
-
export type CleanUrlsMode
|
|
5
|
-
| 'disabled'
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export type CleanUrlsMode
|
|
5
|
+
= | 'disabled'
|
|
6
|
+
| 'without-subfolders'
|
|
7
|
+
| 'with-subfolders'
|
|
8
8
|
|
|
9
9
|
export interface PageData {
|
|
10
10
|
relativePath: string
|
|
@@ -26,6 +26,6 @@ export interface PageDataPayload {
|
|
|
26
26
|
pageData: PageData
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export type HeadConfig
|
|
30
|
-
| [string, Record<string, string>]
|
|
31
|
-
|
|
29
|
+
export type HeadConfig
|
|
30
|
+
= | [string, Record<string, string>]
|
|
31
|
+
| [string, Record<string, string>, string]
|