@qcplay/cli 1.0.14 → 1.0.16
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/README.md +200 -9
- package/bin/qcplay.js +552 -77
- package/lib/content-rules.js +910 -0
- package/lib/lark-article.js +1 -1
- package/lib/platform-publish.js +2414 -270
- package/lib/wechat-article.js +408 -25
- package/package.json +4 -1
- package/templates/skills/qcplay-publish-article/SKILL.md +38 -4
- package/templates/skills/qcplay-publish-article/article/article.md +3 -1
- package/templates/skills/qcplay-publish-article/article/west-article.md +22 -0
package/lib/lark-article.js
CHANGED
|
@@ -215,7 +215,7 @@ export function convertLarkDocumentXml(xml, sourceUrl = "") {
|
|
|
215
215
|
|
|
216
216
|
root.find("img").each((_, image) => {
|
|
217
217
|
const element = $(image);
|
|
218
|
-
const url = normalizeText(element.attr("url") || element.attr("src"));
|
|
218
|
+
const url = normalizeText(element.attr("url") || element.attr("href") || element.attr("src"));
|
|
219
219
|
if (!url) {
|
|
220
220
|
throw new Error(`飞书文档图片缺少可访问地址: ${normalizeText(element.attr("token")) || "未知图片"}`);
|
|
221
221
|
}
|