Code Monkey home page Code Monkey logo

Comments (10)

obgnail avatar obgnail commented on September 16, 2024

1.3.0 更新 🎉🎉🎉 完成了这个需求 。

因为注入的时候没有 node 环境,只能提前编译了,于是乎干脆一键更新也写进去了。
因为这个项目没啥人用,老哥能帮忙测试一下吗?

from typora_plugin.

obgnail avatar obgnail commented on September 16, 2024

暂时关闭,有问题麻烦另开 issue。

from typora_plugin.

yiyungent avatar yiyungent commented on September 16, 2024

1.3.0 更新 🎉🎉🎉 完成了这个需求 。

因为注入的时候没有 node 环境,只能提前编译了,于是乎干脆一键更新也写进去了。 因为这个项目没啥人用,老哥能帮忙测试一下吗?

不好意思,最近比较忙,试了下 1.3.20,可以的,不过本人 Windows 10 测试需要用管理员权限,复制 plugin 文件夹到 typora 目录都需要管理员权限,以及双击运行 updater.exe 的话会一闪而过的黑窗口,都看不到信息,应该在最后 ReadKey() 一下

image

再次用 超级管理员 才成功了

image

image

感谢 dalao,这下方便多了

from typora_plugin.

obgnail avatar obgnail commented on September 16, 2024

@yiyungent

你好,感谢反馈。

  1. 权限问题应该是放在了 program files 目录导致的,我这边测试和反馈的情况是不需要额外授权的。你这个 D 盘是系统盘么?
  2. readKey 问题,很奇怪,我明明加了呀。(有可能是低版本 updater.exe 没加导致的)
  3. 如果需要授权,那更新功能是不是也废了?更新也要读写目录呀……

from typora_plugin.

yiyungent avatar yiyungent commented on September 16, 2024

@yiyungent

你好,感谢反馈。

  1. 权限问题应该是放在了 program files 目录导致的,我这边测试和反馈的情况是不需要额外授权的。你这个 D 盘是系统盘么?
  2. readKey 问题,很奇怪,我明明加了呀。(有可能是低版本 updater.exe 没加导致的)
  3. 如果需要授权,那更新功能是不是也废了?更新也要读写目录呀……
  1. 我的 C 盘才是系统盘,D 盘我都装软件的,我也不清楚啥情况,按正常安装 Typora 进行的
  2. 反正下载的 1.3.20Release
  3. 不清楚,不过用管理员运行就运行吧,也够方便了,懒得手动搞,而且感觉本项目迭代好快,有个更新快捷方式好多了

感谢 dalao 的项目,确实很有用!!!

from typora_plugin.

yiyungent avatar yiyungent commented on September 16, 2024

话说能在插件层实现 粘贴图片为 base64 吗,

好像以前 Typora Issues 有人反馈过,不过官方驳回了,

我个人觉得这个倒不错,当然 base64 要进行局部隐藏,免得看起来太长了,影响正常阅读,

好像 vnote/Mark Text/Yank Note 有这个功能,并且会隐藏 部分 base64

from typora_plugin.

obgnail avatar obgnail commented on September 16, 2024

@yiyungent

你可能误解了 updater.exe 的使用方式。

updater.exe 同时有 install 和 update 两个功能。双击 updater.exe 运行的是 install 功能。

而 update 功能并不需要手动执行 updater.exe,而是集成在 Typora 里面的:

右键菜单 -> 启用插件 -> 自定义插件 -> 更新插件

接着他会自动调用命令:

cd D:\software\Typora\resources\plugin\updater && D:\software\Typora\resources\plugin\updater\updater.exe --action=update --proxy=http://127.0.0.1:7890

所以我担心的是由于权限问题,导致你无法正常的更新插件。

from typora_plugin.

obgnail avatar obgnail commented on September 16, 2024

@yiyungent

针对第二个 base64 问题,答案是:不能做。

因为 Typora 仅支持打开小于 2000000 byte(≈2M) 的文件。如果把图片塞入 md 文件,但凡多塞两张图片,就不能打开了。

不过有个平替方案,使用【export_enhance】插件,他的功能是:导出 html 时,将图片转为 base64(如果开启 DOWNLOAD_NETWORK_IMAGE 选项,还能自动下载网络图片并转为 base64)

from typora_plugin.

yiyungent avatar yiyungent commented on September 16, 2024

@yiyungent

你可能误解了 updater.exe 的使用方式。

updater.exe 同时有 install 和 update 两个功能。双击 updater.exe 运行的是 install 功能。

而 update 功能并不需要手动执行 updater.exe,而是集成在 Typora 里面的:

右键菜单 -> 启用插件 -> 自定义插件 -> 更新插件

接着他会自动调用命令:

cd D:\software\Typora\resources\plugin\updater && D:\software\Typora\resources\plugin\updater\updater.exe --action=update --proxy=http://127.0.0.1:7890

所以我担心的是由于权限问题,导致你无法正常的更新插件。

哦哦哦,谢谢,那我手动执行好了

@yiyungent

针对第二个 base64 问题,答案是:不能做。

因为 Typora 仅支持打开小于 2000000 byte(≈2M) 的文件。如果把图片塞入 md 文件,但凡多塞两张图片,就不能打开了。

不过有个平替方案,使用【export_enhance】插件,他的功能是:导出 html 时,将图片转为 base64(如果开启 DOWNLOAD_NETWORK_IMAGE 选项,还能自动下载网络图片并转为 base64)

看来还是不行,那算了,居然还有这种限制

from typora_plugin.

obgnail avatar obgnail commented on September 16, 2024

暂时关闭,如果有其他问题,麻烦另开 issue

from typora_plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.