czon 0.8.9 → 0.8.10

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.
@@ -48,7 +48,8 @@ const convertMarkdownToHtml = (article, path, lang, mdContent) => {
48
48
  const file = metadata_1.MetaData.files.find(f => f.path === resolvedPath);
49
49
  if (!file) {
50
50
  console.warn(`⚠️ Link target not found for path ${resolvedPath} in file ${path}`);
51
- return originalLinkRenderer.call(this, link);
51
+ // 链接目标不存在,使用斜体表示损坏的链接,不渲染为 <a> 标签
52
+ return `<em title="Link target not found: ${escapeHtml(link.href)}">${link.text}</em>`;
52
53
  }
53
54
  if (link.href.endsWith('.md')) {
54
55
  if (!file.metadata?.slug) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "czon",
3
- "version": "0.8.9",
3
+ "version": "0.8.10",
4
4
  "description": "CZON - AI enhanced Markdown content engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",