Skip to content

Commit

Permalink
Merge pull request #18 from terwer/dev
Browse files Browse the repository at this point in the history
fix: #17 部分场景下,顶部 svg 显示异常
  • Loading branch information
terwer authored May 18, 2023
2 parents e0b93eb + 1086d8b commit 0e8b716
Show file tree
Hide file tree
Showing 11 changed files with 219 additions and 95 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ Import epub, docx, html, etc. into Siyuan notes. Currently supported formats: .e

## Changelog

**v1.4.0 major update**

In short, this version is strongly recommended for all users to upgrade, to prevent resource files from being unable to cross-platform due to previous path problems, and to have a better user experience in other aspects.

- Fix the problem that Windows path replacement does not take effect
For example, the converted path: C:\Users\terwer\Documents\mydocs\SiyuanWorkspace\public\data/assets/import/cover.jpeg
Now, on the Windows platform, it can be displayed normally as: /assets/import/cover.jpeg

- A new hash is added to the path to prevent the image from being overwritten when multiple files have the same image, for example: /assets/import/1nMELS/cover.jpeg

- The directory link generated by pandoc is not clickable, temporarily removed

- The pandoc footnote cannot be jumped, temporarily remove it to keep the title clean

- Fix the abnormal display problem of the top svg in some scenes

**v1.3.0 major update**

- Support image import
Expand Down
16 changes: 16 additions & 0 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@

## 更新历史

**v1.4.0 主要更新**

总之,这个版本强烈建议所有用户升级,防止之前的路径问题导致资源文件无法跨平台,同时在其他方面也有更好的用户体验。

- 修复 Windows 路径替换未生效问题
例如,转换后的路径:C:\Users\terwer\Documents\mydocs\SiyuanWorkspace\public\data/assets/import/cover.jpeg
现在,在Windows平台,可正常显示为:/assets/import/cover.jpeg

- 路径新增hash,防止多个文件有相同图片时候,图片被覆盖,例如:/assets/import/1nMELS/cover.jpeg

- pandoc生成的目录链接不可点击,暂时去掉

- pandoc脚注不能跳转,暂时去掉保持标题清爽

- 修复部分场景下,顶部 svg 显示异常问题

**v1.3.0 主要更新**

- 支持图片导入
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"@terwer/eslint-config-custom": "^1.2.0",
"@terwer/vite-config-custom": "^0.6.0",
"@tsconfig/svelte": "^4.0.1",
"@types/node": "16",
"fast-glob": "^3.2.12",
"glob": "^7.2.3",
"minimist": "^1.2.8",
"rollup-plugin-livereload": "^2.0.5",
Expand All @@ -31,6 +33,10 @@
"svelte": "^3.57.0",
"ts-node": "^10.9.1",
"vite": "^4.3.7",
"vite-plugin-static-copy": "^0.15.0"
"vite-plugin-static-copy": "^0.15.0",
"vitest": "^0.31.1"
},
"dependencies": {
"shorthash2": "^1.0.3"
}
}
Loading

0 comments on commit 0e8b716

Please sign in to comment.