themekit-js 1.1.62 → 1.1.63
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-BbIwPqWt.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-BbIwPqWt.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-BbIwPqWt.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -38327,12 +38327,17 @@ async function createMarkdownToVueRenderFn(srcDir, options = {}, pages, isBuild
|
|
|
38327
38327
|
}
|
|
38328
38328
|
const blockTypeRegex = /(?<=<!--#).*?(?=-->)/g;
|
|
38329
38329
|
const blockType = blockTypeRegex.exec(block);
|
|
38330
|
-
|
|
38330
|
+
let blockContent = "";
|
|
38331
|
+
if (blockType == null) ; else if (blockType[0] == "Doc" || blockType[0] == "Github") {
|
|
38332
|
+
blockContent = md.render(block, env);
|
|
38333
|
+
} else if (blockType[0] == "HTML") {
|
|
38334
|
+
blockContent = block;
|
|
38335
|
+
}
|
|
38331
38336
|
const blockItem = Object.assign(
|
|
38332
38337
|
blockVars,
|
|
38333
38338
|
{ "children": [], "block_type": blockType === null ? "blank" : blockType[0], "content": blockContent }
|
|
38334
38339
|
);
|
|
38335
|
-
if (
|
|
38340
|
+
if (blockContent == "") {
|
|
38336
38341
|
Token2JSON2(MarkdownIt({
|
|
38337
38342
|
html: true,
|
|
38338
38343
|
linkify: true,
|
|
@@ -46735,7 +46740,7 @@ function escapeHtml(string) {
|
|
|
46735
46740
|
|
|
46736
46741
|
var escape$1 = /*@__PURE__*/getDefaultExportFromCjs(escapeHtml_1);
|
|
46737
46742
|
|
|
46738
|
-
var version = "1.1.
|
|
46743
|
+
var version = "1.1.63";
|
|
46739
46744
|
|
|
46740
46745
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46741
46746
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|