themekit-js 1.47.3113 → 1.48.112
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-DX3UctH6.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-DX3UctH6.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-DX3UctH6.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -38287,7 +38287,14 @@ async function createMarkdownToVueRenderFn(srcDir, options = {}, pages, isBuild
|
|
|
38287
38287
|
const token = tokens[i2];
|
|
38288
38288
|
if (token.type == "image") {
|
|
38289
38289
|
const alt = token.children != null && token.children.length > 0 ? token.children[0]["content"] : "";
|
|
38290
|
-
|
|
38290
|
+
let src2 = token.attrGet("src") == null ? "" : token.attrGet("src");
|
|
38291
|
+
console.log("src1:" + src2);
|
|
38292
|
+
if (src2 != null) {
|
|
38293
|
+
src2 = src2.replace("../.themekit/dist", "..");
|
|
38294
|
+
src2 = src2.replace(".themekit/dist/", "/");
|
|
38295
|
+
}
|
|
38296
|
+
console.log("src2:" + src2);
|
|
38297
|
+
parent["children"].push({ "block_type": "img", "content": token.attrGet("content"), "alt": alt, "src": src2 });
|
|
38291
38298
|
continue;
|
|
38292
38299
|
}
|
|
38293
38300
|
if (token.tag == "code") {
|
|
@@ -46739,7 +46746,7 @@ function escapeHtml(string) {
|
|
|
46739
46746
|
|
|
46740
46747
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46741
46748
|
|
|
46742
|
-
var version = "1.
|
|
46749
|
+
var version = "1.48.0112";
|
|
46743
46750
|
|
|
46744
46751
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46745
46752
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|