@wenyan-md/core 3.0.11 → 3.0.12
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/core.js
CHANGED
|
@@ -213,7 +213,8 @@ async function handleFrontMatter(markdown) {
|
|
|
213
213
|
need_open_comment,
|
|
214
214
|
only_fans_can_comment,
|
|
215
215
|
image_list,
|
|
216
|
-
type
|
|
216
|
+
type,
|
|
217
|
+
digest
|
|
217
218
|
} = attributes;
|
|
218
219
|
if (title) {
|
|
219
220
|
result.title = title;
|
|
@@ -249,6 +250,9 @@ async function handleFrontMatter(markdown) {
|
|
|
249
250
|
if (type) {
|
|
250
251
|
result.type = type;
|
|
251
252
|
}
|
|
253
|
+
if (digest) {
|
|
254
|
+
result.digest = digest;
|
|
255
|
+
}
|
|
252
256
|
if (head) {
|
|
253
257
|
result.content = head + result.content;
|
|
254
258
|
}
|
package/dist/types/publish.d.ts
CHANGED
package/dist/types/wechat.d.ts
CHANGED
package/dist/wrapper.js
CHANGED
|
@@ -487,7 +487,8 @@ async function publishToWechatDraft(articleOptions, publishOptions = {}) {
|
|
|
487
487
|
pic_crop_235_1,
|
|
488
488
|
pic_crop_1_1,
|
|
489
489
|
need_open_comment,
|
|
490
|
-
only_fans_can_comment
|
|
490
|
+
only_fans_can_comment,
|
|
491
|
+
digest
|
|
491
492
|
} = articleOptions;
|
|
492
493
|
const { appId, appSecret, relativePath } = publishOptions;
|
|
493
494
|
const { appId: appIdFinal, appSecret: appSecretFinal } = await getAppIdAndSecret(appId, appSecret);
|
|
@@ -527,7 +528,8 @@ async function publishToWechatDraft(articleOptions, publishOptions = {}) {
|
|
|
527
528
|
pic_crop_235_1,
|
|
528
529
|
pic_crop_1_1,
|
|
529
530
|
need_open_comment: need_open_comment ? 1 : 0,
|
|
530
|
-
only_fans_can_comment: only_fans_can_comment ? 1 : 0
|
|
531
|
+
only_fans_can_comment: only_fans_can_comment ? 1 : 0,
|
|
532
|
+
digest
|
|
531
533
|
});
|
|
532
534
|
if (data.media_id) {
|
|
533
535
|
return data;
|
package/package.json
CHANGED