fix: 无法读取undefined的'split'属性错误

This commit is contained in:
afoim
2025-05-31 16:55:50 +08:00
parent c49d195e5f
commit 590d8580dc
2 changed files with 12 additions and 6 deletions

View File

@@ -14,7 +14,8 @@ import remarkMath from "remark-math";
import remarkSectionize from "remark-sectionize";
import { AdmonitionComponent } from "./src/plugins/rehype-component-admonition.mjs";
import { GithubCardComponent } from "./src/plugins/rehype-component-github-card.mjs";
import { rehypeImageFallback } from "./src/plugins/rehype-image-fallback.mjs";
import rehypeImageFallback from "./src/plugins/rehype-image-fallback.mjs";
import { siteConfig, imageFallbackConfig } from './src/config.ts';
import { parseDirectiveNode } from "./src/plugins/remark-directive-rehype.js";
import { remarkExcerpt } from "./src/plugins/remark-excerpt.js";
import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
@@ -66,7 +67,7 @@ export default defineConfig({
rehypePlugins: [
rehypeKatex,
rehypeSlug,
rehypeImageFallback,
[rehypeImageFallback, imageFallbackConfig],
[
rehypeComponents,
{