mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-08 17:17:25 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user