Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望允许Uploader返回的URL不被urlencode #159

Open
zhuozhiyongde opened this issue Sep 21, 2023 · 1 comment
Open

希望允许Uploader返回的URL不被urlencode #159

zhuozhiyongde opened this issue Sep 21, 2023 · 1 comment

Comments

@zhuozhiyongde
Copy link

如题,我开发了一个基于 picgo 的 OCR 插件,其可以调用 SimpleTex 的识别功能,但我遇到了一个问题

2023-09-21 17:56:36 [PicGo INFO] Uploading... Current uploader is [simpletex] 
2023-09-21 17:56:37 [PicGo INFO] {
  "status": true,
  "res": {
    "conf": 0.9375448822975159,
    "latex": "I=\\int_L\\left(y-z+\\sin^2x\\right)\\mathrm{d}x+\\left(z-x+\\sin^2y\\right)\\mathrm{d}y+\\left(x-y+\\sin^2z\\right)\\mathrm{d}z."
  },
  "request_id": "tr_16952901968848789629150617796"
} 

这段代码中正常的Latex返回值被我放到了返回的url后,因为urlencode变成了:
I=%5Cint_L%5Cleft(y-z+%5Csin%5E2x%5Cright)%5Cmathrm%7Bd%7Dx+%5Cleft(z-x+%5Csin%5E2y%5Cright)%5Cmathrm%7Bd%7Dy+%5Cleft(x-y+%5Csin%5E2z%5Cright)%5Cmathrm%7Bd%7Dz.
这无疑就很难受了...

@zhuozhiyongde
Copy link
Author

虽然 OCR 并不是 PicGo 的官方用法,但倘若能增加一个这个选项允许用户返回一些别的文本无疑也是会很有用的,希望作者大大考虑下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant