ale icon indicating copy to clipboard operation
ale copied to clipboard

Markdown hover text without language spec keep code fences

Open oliverralbertini opened this issue 1 year ago • 0 comments

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.

:ALEInfo

oliverralbertini avatar Dec 26 '23 01:12 oliverralbertini