mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
Fix markdown sections and styling (#28333)
This commit is contained in:
committed by
Paul Bottein
parent
4b73713f2a
commit
cc96c707b9
@@ -99,10 +99,7 @@ class HaMarkdownElement extends ReactiveElement {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
render(
|
render(h(unsafeHTML(elements.join(""))), this.renderRoot);
|
||||||
elements.map((e) => h(unsafeHTML(e))),
|
|
||||||
this.renderRoot
|
|
||||||
);
|
|
||||||
|
|
||||||
this._resize();
|
this._resize();
|
||||||
|
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ export class HaMarkdown extends LitElement {
|
|||||||
|
|
||||||
@property({ type: Boolean }) public cache = false;
|
@property({ type: Boolean }) public cache = false;
|
||||||
|
|
||||||
@query("ha-markdown-element") private _markdownElement!: ReactiveElement;
|
@query("ha-markdown-element") private _markdownElement?: ReactiveElement;
|
||||||
|
|
||||||
protected async getUpdateComplete() {
|
protected async getUpdateComplete() {
|
||||||
const result = await super.getUpdateComplete();
|
const result = await super.getUpdateComplete();
|
||||||
await this._markdownElement.updateComplete;
|
await this._markdownElement?.updateComplete;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user