Skip to content

feat(chat): render fenced code blocks in user message bubbles #1325

@Zixim

Description

@Zixim

Problem

When a user pastes a fenced code block like:

test:
  - pseudo_yaml=true

Hermes WebUI sends it correctly, but the user message bubble displays it as plain escaped text, not a rendered code block.

Expected

User-authored fenced code blocks should render as proper code blocks in the transcript, similar to assistant messages.

Current behavior

Image

User messages are rendered as plain escaped text with line breaks, while assistant messages go through the Markdown renderer.

Why this helps

Hermes WebUI is often used for code, configs, logs, and snippets. Rendering user code blocks would make pasted examples much easier to read and review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrendererIssues related to the markdown/content rendereruxUser experience / visual polish

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions