mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +00:00
Fix markdown rendering
This commit is contained in:
parent
06502cb93a
commit
d2688cab75
@ -41,7 +41,7 @@ class HaMarkdown extends window.hassMixins.EventsMixin(Polymer.Element) {
|
|||||||
this._renderScheduled = false;
|
this._renderScheduled = false;
|
||||||
|
|
||||||
if (this._scriptLoaded === 1) {
|
if (this._scriptLoaded === 1) {
|
||||||
this.innerHTML = window.filterXSS(window.marked(this._content, {
|
this.innerHTML = window.filterXSS(window.marked(this.content, {
|
||||||
gfm: true,
|
gfm: true,
|
||||||
tables: true,
|
tables: true,
|
||||||
breaks: true
|
breaks: true
|
||||||
@ -64,7 +64,7 @@ class HaMarkdown extends window.hassMixins.EventsMixin(Polymer.Element) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (this._scriptLoaded === 2) {
|
} else if (this._scriptLoaded === 2) {
|
||||||
this.innerText = this._content;
|
this.innerText = this.content;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user