1
0
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:
Petar Petrov
2025-12-04 11:15:11 +02:00
committed by Paul Bottein
parent 4b73713f2a
commit cc96c707b9
2 changed files with 3 additions and 6 deletions

View File

@@ -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();

View File

@@ -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;
} }