Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ <h2 id="nd-title">…</h2>
const chatMarkdownRenderer = (window.markdownit ? window.markdownit({
html: false,
linkify: true,
breaks: false,
breaks: true,
}) : null);

const CHAT_MD_ALLOWED_TAGS = [
Expand Down
5 changes: 5 additions & 0 deletions addons/thread-observability/app/tests/test_dashboard_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def test_dashboard_renders_assistant_markdown_safely() -> None:
assert "dompurify" in html.lower()
assert "renderAssistantMarkdown" in html
assert "DOMPurify.sanitize" in html
assert "breaks: true" in html
assert "'table'" in html
assert "'pre'" in html
assert "'code'" in html
assert "'ul'" in html


def test_dashboard_uses_home_assistant_theme_tokens() -> None:
Expand Down