Skip to content

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

@zhuozhiyongde

Description

@zhuozhiyongde

如题,我开发了一个基于 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.
这无疑就很难受了...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions