-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Remove escaping in floating windows #2308
Comments
This should be done in language server. |
It should be hidden, need some work for that. |
@Lythenas You can try |
@flw-cn This pretty much works. But I have to set the filetype of the floating window manually and turn off all the settings I use in normal markdown (e.g. folding): I think you also missed a few escapes. I spotted |
@Lythenas You're right, so it's still best to do some targeted customization of the floating box in the coc. I'm thinking of sending a PR like this to enhance coc's support for floating windows by adding something like Also, the support in the header I will add. But is I could add it to the list as well, but I don't know when that will end if I don't have a complete list. |
Honestly I'm not really sure what a valid markdown escape code is. I just know that clangd produces |
I've added |
Make it possible to diable markdown document of language server. Related #2308
Will rework highlights for markdown, please comment #2497 |
Is your feature request related to a problem? Please describe.
Remove useless escaping of chars is markdown.
Describe the solution you'd like
Some language servers return escaped characters in markdown. E.g. clangd escapes some characters in text:
Rendered as:
Especially for longer text this is really distracting.
It would be better to remove the uselsss escaping (but it might be hard to detect when the escaping is really useless). Maybe an option to specify a "processor" for the markdown text would be good. Then the user can do exactly what they want and (e.g. also remove links or whatever they want).
Describe alternatives you've considered
This could also be fixed in clangd by not escaping and they have improved this a little (https://reviews.llvm.org/D75687). But I haven't tested this and I think I also saw some other issues that were complaining about the same thing for other language servers.
The text was updated successfully, but these errors were encountered: