# Make sure GoPlsAdapter produces output that can be rendered as Markdown \(\#30911\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/206be2b3480a3b77dc3f87f57e832edeffda96a5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 206be2b3480a3b77dc3f87f57e832edeffda96a5

Requested commit: 206be2b3480a3b77dc3f87f57e832edeffda96a5

Commit: 206be2b3480a3b77dc3f87f57e832edeffda96a5

Tree: 9b78dccde443fdca2260703616eca4c18dbd9c52

Author: Mikal Sande

Committer: GitHub

## Message

```
Make sure GoPlsAdapter produces output that can be rendered as Markdown (#30911)

Closes [#30695](https://github.com/zed-industries/zed/issues/30695)

Adds `diagnostic_message_to_markdown()` to GoLspAdapter to ensure that
Go diagnostic messages are considered Markdown formatted and leading
whitespace is removed to get the Markdown to display properly.

Before:
<img width="805" alt="image"
src="https://github.com/user-attachments/assets/8a09276a-1f45-42de-9744-d7e620d5ebb6"
/>


After:
<img width="805" alt="image"
src="https://github.com/user-attachments/assets/bbe4aeaf-a3c6-4e85-bb10-89b3f4e27965"
/>

Release Notes:

- Fixed display of Go diagnostics, it should be displayed as Markdown
not as escaped string.
```

## Parents

- [51b25b5c223aebe6bb707121697612604565cbaf](https://git.cafe/gitcafe/zed/commit/51b25b5c223aebe6bb707121697612604565cbaf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/206be2b3480a3b77dc3f87f57e832edeffda96a5?format=markdown)
