PicGo-Core
PicGo-Core copied to clipboard
希望允许Uploader返回的URL不被urlencode
如题,我开发了一个基于 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. 这无疑就很难受了...
虽然 OCR 并不是 PicGo 的官方用法,但倘若能增加一个这个选项允许用户返回一些别的文本无疑也是会很有用的,希望作者大大考虑下。