Skip to content

Code blocks drop the language label (fence info string is parsed then discarded) #13

Description

@aasis21

Problem

Markdown.tsx matches the fence language (/^\``(\w+)?/`) but never uses the captured group — the language is discarded and the block renders as anonymous monospace.

Suggested fix

Surface the language as a small label in a code-block header (and use it to drive syntax highlighting).

Where

mobile/src/components/Markdown.tsx (fenced-code branch, lines ~62–77).


Filed from a UI research sweep of the Helm mobile app (landing + live demo session) using Playwright + full source review, cross-referenced against Claude, ChatGPT, GitHub Copilot Chat, and Codex/Claude Code UIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    markdownMarkdown / code renderinguiUser interface

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions