Skip to content

[Bug] - Message component does not render raw HTML (e.g. <br>) in markdown content #844

Description

@Homa

Description

The component renders raw HTML tags like , as literal text instead of actual HTML elements when they appear inside markdown content (e.g., within table cells).

image

As you can see half of second column is displayed under the title(first column)

Expected behavior

<br and other safe html tags in markdown content should render.

Current behavior

HTML tags appear as escaped text in the rendered output.

Steps to Reproduce

Render a component with markdown content that contains
inside a table cell:

Feature Details
GitOps ArgoCD and Flux.
• Enhanced network policies.
• AI-assisted troubleshooting.

or on /ask send this message:
What are the latest certification tracks are available now and what was changed since last announcement?

Data/JSON Context (if applicable)

No response

Environment

@patternfly/chatbot: 6.6.0

Screenshots or Logs

No response


Jira Issue: PF-4261

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

Status
Needs triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions