Skip to content

<code> html tags are not parced on LSP markdown hover responses #43166

@AlvaroParker

Description

@AlvaroParker

Summary

When LSP responds with a markdown that contains <code>foo</code>, Zed doesn't parse this and we see the literal <code>foo<code/> string instead of a foo

Description

Steps to reproduce:

  1. Generate some sample code with docs comments, in Rust:
/// This is a <code>foo</code> function
fn foo() {
    println!("Hello, World!");
}
  1. Hover over it
  2. See the literal "<code>foo</code>" being shown on the LSP popup

Expected Behavior: This should be parsed into a code styled string
Actual Behavior: This isn't styled

In zed:

Image

In VsCode:

Image

Zed Version and System Specs

Zed: v0.215.0 (Zed Nightly 66382ac)
OS: Linux Wayland arch unknown
Memory: 62.2 GiB
Architecture: x86_64
GPU: Intel(R) Arc(tm) Graphics (MTL) || Intel open-source Mesa driver || Mesa 25.2.7-arch1.1

If applicable, attach your Zed.log file to this issue.

Zed.log

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions