mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 10:48:44 +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) {
|
if (!this.innerHTML && this.cache) {
|
||||||
const key = this._computeCacheKey();
|
const key = this._computeCacheKey();
|
||||||
if (markdownCache.has(key)) {
|
if (markdownCache.has(key)) {
|
||||||
render(markdownCache.get(key)!, this.renderRoot);
|
render(h(unsafeHTML(markdownCache.get(key))), this.renderRoot);
|
||||||
this._resize();
|
this._resize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user