Skip to content

Insufficient filtering of code tags in Markdown docs #8378

Closed
@ModProg

Description

@ModProg

Summary

Some lsps (rust-analyzer) send docs containing not onle <code> but also <code ...>:

fn(&self) -> TypeParams<'_>

Returns an
<code  style="padding-right:0;">Iterator<Item = &<a
href="struct.TypeParam.html"><code
style="padding-left:0;padding-right:0;">TypeParam</a><code
style="padding-left:0;">>

For simple <code> tags, this was implemented here: #3425

Reproduction Steps

Trigger hover on element where LSP returns html tags

Helix log

No response

Platform

Linux

Terminal Emulator

wezterm

Helix Version

helix 23.05 (842687e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions