emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Fix documentation styling when using webkit #645

Closed zeronone closed 2 years ago

zeronone commented 2 years ago

Some language servers like (haskel-language-server, rust-analyzer) returns MarkupContent { kind: "markdown", value: "..." } for documentation. However when rendering it in Webkit it was wrapped in ```markdown <contents> ``` one more time, confusing the JS library showdown.

This PR

Results

Before

Haskell

Screen Shot 2021-07-25 at 0 55 41

Rust

Screen Shot 2021-07-25 at 0 58 29

After

Haskell

Screen Shot 2021-07-25 at 1 01 58

Rust

Screen Shot 2021-07-25 at 1 02 28
zeronone commented 2 years ago

Can this get merged?