Skip to content

Commit

Permalink
fix: 兼容平台图片上传-解决Notion图片解析错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 14, 2023
1 parent 24d2c8a commit 6c99367
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@ Publish articles from Siyuan Notes to platforms such as Yuque, Notion, Cnblogs,

Support features such as fast publishing, image bed management, platform expansion, smart labels, etc.

> **Front Announcement 1: Publish Tool's first platform-wide version `1.8.0` using the forward agent of Siyuan Note!**
> **Front Announcement 1: Release Tool's first platform-wide version `1.8.0` using the forward agent of Siyuan Note!**
>
> **Front Announcement 2: The first version of the release tool that fully supports image upload `1.8.0` is released!**
> **Front Announcement 2: The first version of the Publish Tool that fully supports image upload [Zhihu and Notion are adapting, Yuque and Hyo need Picgo plug-in support, and Metaweblog series platforms come with image upload] version `1.8.0` released!**
Tips: Zhihu uses the image upload of the Zhihu platform, Yuque, Notion, and Hexo need Picgo plugin support, and the Metaweblog series platform supports both Picgo plugin and self-contained image upload (install Picgo plugin to use Picgo plugin, otherwise use their own platform)

We recommend that you use the `uninstall->install` method to update. If the configuration is abnormal, please back up `[workspace]/data/storage/syp/sy-p-plus-cfg.json` , and then delete it, this configuration file will be automatically initialized the first time it is used.

In later releases, the release configuration will only be backward compatible to `1.6.0+`.

## Recent critical updates and bug fixes

- Yuque, Notion, and Hexo support image links, and automatic upload requires Picgo plugin support
- Zhihu platform supports automatic image upload
- When the Picgo plugin is not installed, some platforms can use the built-in image upload, such as Cnblogs, Typecho, WordPress
- Platforms that do not support image link replacement use the platform's own image upload, such as Zhihu, Notion, adapting...
- All platforms migrated to official forward proxy
- Support replacing picture bed image links with Picgo plugin
- Fixed the issue that the release preview of the authorization code mode was invalidated
- Support publishing to Zhihu
Expand Down
7 changes: 6 additions & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@
>
> **前排公告2:发布工具首个完整支持图片上传的版本 `1.8.0` 发布!**
温馨提示:知乎使用知乎平台的图片上传,Notion使用Notion的图片上传(适配中),语雀、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带)
温馨提示:知乎使用知乎平台的图片上传,语雀、Notion、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带)

我们建议您使用 `卸载->安装` 方法进行更新。如果配置异常,请备份 `[workspace]/data/storage/syp/sy-p-plus-cfg.json` ,然后删除,这个配置文件会在第一次使用时自动初始化。

在更高版本中,发布配置将仅向后兼容到 `1.6.0+`

## 最近的关键更新与 Bug 修复

- 语雀、Notion、Hexo支持图片链接,自动上传需要Picgo插件支持
- 知乎平台支持图片自动上传
- 未安装Picgo插件时,部分平台可使用自带的图片上传,例如博客园、Typecho、WordPress
- 提供不支持图片链接替换的平台使用平台自带的图片上传接口
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"zhi-fetch-middleware": "^0.2.21",
"zhi-github-middleware": "^0.2.2",
"zhi-lib-base": "^0.4.4",
"zhi-notion-markdown": "^0.1.2",
"zhi-notion-markdown": "^0.1.3",
"zhi-siyuan-api": "^2.0.27",
"zhi-xmlrpc-middleware": "^0.4.15"
}
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export const MUST_USE_OWN_PLATFORM = ["custom_Zhihu"]
/**
* 必须使用图床的平台
*/
export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Hexo"]
export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Notion", "common_Hexo"]

0 comments on commit 6c99367

Please sign in to comment.