ale
ale copied to clipboard
Markdown hover text without language spec keep code fences
I have an LSP (pyre code-navigation) returning code-fenced hover contents without a language specified, e.g.
"response": {"contents": "```\nFoobar\n```"}
Other LSPs may respond like this:
"response": {"contents": "```python\nFoobar\n```"}
Currently that means the backticks/code fences are not removed, so I see in the message bar 3 backticks, and if I hover into a floating window, I get the code + code fences, e.g.
```
Foobar
```
Information
VIM version
:version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 09 2023 00:00:00)
Included patches: 1-2637
Operating System: CentOS9
What went wrong
See above description
Reproducing the bug
Requires an LSP that doesn't include a language hint in the code fence.