Fix markdown rendering for cached html (#28229)

* Render markdown table in wrapper.

* Fix markdown styles

* Fix formatting

* fix rendering for cache
This commit is contained in:
Silas Krause
2025-11-30 14:21:39 +01:00
committed by GitHub
parent 0e4cf9f62d
commit a8910bcbe4

View File

@@ -71,7 +71,7 @@ class HaMarkdownElement extends ReactiveElement {
if (!this.innerHTML && this.cache) {
const key = this._computeCacheKey();
if (markdownCache.has(key)) {
render(markdownCache.get(key)!, this.renderRoot);
render(h(unsafeHTML(markdownCache.get(key))), this.renderRoot);
this._resize();
}
}