neoclide / coc-python

Python extension for coc.nvim, fork of vscode-python
574 stars 51 forks source link

Extra escape character shown in floating window for documentation. #61

Open esn89 opened 5 years ago

esn89 commented 5 years ago

vim version: NVIM v0.4.0-dev
node version: v12.5.0
coc.nvim version: 0.0.73
term: xterm-kitty
platform: darwin

## Messages

Describe the bug

Too many escapes in the documentation parsing and rendering

Reproduce the bug

Just hover over a python function and see the documentation

Screenshots (optional)

https://imgur.com/a/fcgOvtg

It is supposed to be "acc_name". I think there is an extra '\' somewhere in the code.

chemzqm commented 5 years ago

Should be issue of https://github.com/neoclide/coc-python, consider help to figure out how to fix it.

esn89 commented 5 years ago

My educated guess is that it is this line over here:

https://github.com/neoclide/coc-python/blob/master/src/common/markdown/restTextConverter.ts#L39

Could be that it is because of the space?