Skip to content

markdown: Fix rendering of inline HTML <code> tags#43513

Merged
bennetbo merged 2 commits intozed-industries:mainfrom
artschur:fix/html-code-tag-rendering-on-hover
Dec 3, 2025
Merged

markdown: Fix rendering of inline HTML <code> tags#43513
bennetbo merged 2 commits intozed-industries:mainfrom
artschur:fix/html-code-tag-rendering-on-hover

Conversation

@artschur
Copy link
Copy Markdown
Contributor

@artschur artschur commented Nov 26, 2025

Added support for rendering HTML <code> tags inside Markdown content. Previously, these tags were ignored by the renderer and displayed as raw text (inside LSP hover documentation).

Closes: #43166

Release Notes:

  • Fixed styling of <code> HTML tags in Markdown popovers.

Before:
image
After:
image

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Nov 26, 2025
@zed-industries-bot
Copy link
Copy Markdown
Contributor

zed-industries-bot commented Nov 26, 2025

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against d952e72

@maxdeviant maxdeviant changed the title fixed style rendering of <code> </code> html tags as markdown on pars… Fix rendering of HTML code tags in Markdown Nov 26, 2025
@artschur artschur changed the title Fix rendering of HTML code tags in Markdown markdown: Fix rendering of inline HTML <code> tags Nov 26, 2025
@artschur artschur changed the title markdown: Fix rendering of inline HTML <code> tags markdown: Fix rendering of inline HTML <code> tags Nov 26, 2025
@artschur artschur changed the title markdown: Fix rendering of inline HTML <code> tags markdown: Fix rendering of inline HTML <code> tags Nov 26, 2025
Copy link
Copy Markdown

@6639835 6639835 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job

Comment thread crates/markdown/src/markdown.rs
@Angelk90

This comment was marked as off-topic.

Copy link
Copy Markdown
Member

@bennetbo bennetbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bennetbo bennetbo merged commit c248a95 into zed-industries:main Dec 3, 2025
23 checks passed
@franciskafyi franciskafyi moved this from Community PRs to Done in Quality Week – December 2025 Dec 11, 2025
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
)

Added support for rendering HTML `<code> `tags inside Markdown content.
Previously, these tags were ignored by the renderer and displayed as raw
text (inside LSP hover documentation).

Closes: zed-industries#43166 

Release Notes:
- Fixed styling of `<code>` HTML tags in Markdown popovers.

Before:
<img width="445" height="145" alt="image"
src="https://github.com/user-attachments/assets/67c4f864-1fa7-46a9-bb25-8b07a335355d"
/>
After:
<img width="699" height="257" alt="image"
src="https://github.com/user-attachments/assets/8d784a75-28be-43cd-80b4-3aad8babb65b"
/>
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
)

Added support for rendering HTML `<code> `tags inside Markdown content.
Previously, these tags were ignored by the renderer and displayed as raw
text (inside LSP hover documentation).

Closes: zed-industries#43166 

Release Notes:
- Fixed styling of `<code>` HTML tags in Markdown popovers.

Before:
<img width="445" height="145" alt="image"
src="https://github.com/user-attachments/assets/67c4f864-1fa7-46a9-bb25-8b07a335355d"
/>
After:
<img width="699" height="257" alt="image"
src="https://github.com/user-attachments/assets/8d784a75-28be-43cd-80b4-3aad8babb65b"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

Development

Successfully merging this pull request may close these issues.

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

8 participants