Compare commits

..

2 Commits

Author SHA1 Message Date
Jim Liu 宝玉 60363fc2df chore: release v1.73.1 2026-03-18 22:00:27 -05:00
Jim Liu 宝玉 28ec1053f6 refactor(baoyu-danger-x-to-markdown): migrate tests from bun:test to node:test 2026-03-18 21:59:49 -05:00
5 changed files with 28 additions and 17 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
},
"metadata": {
"description": "Skills shared by Baoyu for improving daily work efficiency",
"version": "1.73.0"
"version": "1.73.1"
},
"plugins": [
{
+5
View File
@@ -2,6 +2,11 @@
English | [中文](./CHANGELOG.zh.md)
## 1.73.1 - 2026-03-18
### Refactor
- `baoyu-danger-x-to-markdown`: migrate tests from bun:test to node:test
## 1.73.0 - 2026-03-18
### Features
+5
View File
@@ -2,6 +2,11 @@
[English](./CHANGELOG.md) | 中文
## 1.73.1 - 2026-03-18
### 重构
- `baoyu-danger-x-to-markdown`:测试从 bun:test 迁移至 node:test
## 1.73.0 - 2026-03-18
### 新功能
+1 -1
View File
@@ -1,6 +1,6 @@
# CLAUDE.md
Claude Code marketplace plugin providing AI-powered content generation skills. Version: **1.73.0**.
Claude Code marketplace plugin providing AI-powered content generation skills. Version: **1.73.1**.
## Architecture
@@ -1,4 +1,5 @@
import { expect, test } from "bun:test";
import assert from "node:assert/strict";
import test from "node:test";
import { formatArticleMarkdown } from "./markdown.js";
@@ -40,10 +41,10 @@ test("formatArticleMarkdown renders MARKDOWN entities from atomic blocks", () =>
const { markdown } = formatArticleMarkdown(article);
expect(markdown).toContain("Before the snippet.");
expect(markdown).toContain("```python\nprint('hello from x article')\n```");
expect(markdown).toContain("After the snippet.");
expect(markdown).toBe(`# Atomic Markdown Example
assert.ok(markdown.includes("Before the snippet."));
assert.ok(markdown.includes("```python\nprint('hello from x article')\n```"));
assert.ok(markdown.includes("After the snippet."));
assert.strictEqual(markdown, `# Atomic Markdown Example
Before the snippet.
@@ -108,11 +109,11 @@ test("formatArticleMarkdown renders article video media as poster plus video lin
const { markdown } = formatArticleMarkdown(article);
expect(markdown).toContain("Intro text.");
expect(markdown).toContain(`![Demo reel](${posterUrl})`);
expect(markdown).toContain(`[video](${videoUrl})`);
expect(markdown).not.toContain(`![Demo reel](${videoUrl})`);
expect(markdown).not.toContain("## Media");
assert.ok(markdown.includes("Intro text."));
assert.ok(markdown.includes(`![Demo reel](${posterUrl})`));
assert.ok(markdown.includes(`[video](${videoUrl})`));
assert.ok(!markdown.includes(`![Demo reel](${videoUrl})`));
assert.ok(!markdown.includes("## Media"));
});
test("formatArticleMarkdown renders unused article videos in trailing media section", () => {
@@ -143,10 +144,10 @@ test("formatArticleMarkdown renders unused article videos in trailing media sect
const { markdown, coverUrl } = formatArticleMarkdown(article);
expect(coverUrl).toBeNull();
expect(markdown).toContain("## Media");
expect(markdown).toContain(`![video](${posterUrl})`);
expect(markdown).toContain(`[video](${videoUrl})`);
assert.strictEqual(coverUrl, null);
assert.ok(markdown.includes("## Media"));
assert.ok(markdown.includes(`![video](${posterUrl})`));
assert.ok(markdown.includes(`[video](${videoUrl})`));
});
test("formatArticleMarkdown keeps coverUrl as preview image for video cover media", () => {
@@ -174,5 +175,5 @@ test("formatArticleMarkdown keeps coverUrl as preview image for video cover medi
const { coverUrl } = formatArticleMarkdown(article);
expect(coverUrl).toBe(posterUrl);
assert.strictEqual(coverUrl, posterUrl);
});