themekit-js 1.47.3113 → 1.48.113
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/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-
|
|
1
|
+
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-D2UHHglD.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-D2UHHglD.js';
|
|
4
|
+
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-D2UHHglD.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -37152,6 +37152,9 @@ const imagePlugin = (md, { lazyLoading } = {}, base) => {
|
|
|
37152
37152
|
if (url && !EXTERNAL_URL_RE.test(url)) {
|
|
37153
37153
|
if (!/^\.?\//.test(url))
|
|
37154
37154
|
url = "./" + url;
|
|
37155
|
+
if (url.substring(0, 1) == "/" && base != null) {
|
|
37156
|
+
url = base + url.substring(1, url.length);
|
|
37157
|
+
}
|
|
37155
37158
|
}
|
|
37156
37159
|
if (url)
|
|
37157
37160
|
token.attrSet("src", decodeURIComponent(url));
|
|
@@ -38287,7 +38290,14 @@ async function createMarkdownToVueRenderFn(srcDir, options = {}, pages, isBuild
|
|
|
38287
38290
|
const token = tokens[i2];
|
|
38288
38291
|
if (token.type == "image") {
|
|
38289
38292
|
const alt = token.children != null && token.children.length > 0 ? token.children[0]["content"] : "";
|
|
38290
|
-
|
|
38293
|
+
let src2 = token.attrGet("src") == null ? "" : token.attrGet("src");
|
|
38294
|
+
console.log("src1:" + src2);
|
|
38295
|
+
if (src2 != null) {
|
|
38296
|
+
src2 = src2.replace("../.themekit/dist", "..");
|
|
38297
|
+
src2 = src2.replace(".themekit/dist/", "/");
|
|
38298
|
+
}
|
|
38299
|
+
console.log("src2:" + src2);
|
|
38300
|
+
parent["children"].push({ "block_type": "img", "content": token.attrGet("content"), "alt": alt, "src": src2 });
|
|
38291
38301
|
continue;
|
|
38292
38302
|
}
|
|
38293
38303
|
if (token.tag == "code") {
|
|
@@ -46739,7 +46749,7 @@ function escapeHtml(string) {
|
|
|
46739
46749
|
|
|
46740
46750
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46741
46751
|
|
|
46742
|
-
var version = "1.
|
|
46752
|
+
var version = "1.48.0113";
|
|
46743
46753
|
|
|
46744
46754
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46745
46755
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|