mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +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;
|
||||
|
||||
if (this._scriptLoaded === 1) {
|
||||
this.innerHTML = window.filterXSS(window.marked(this._content, {
|
||||
this.innerHTML = window.filterXSS(window.marked(this.content, {
|
||||
gfm: true,
|
||||
tables: true,
|
||||
breaks: true
|
||||
@ -64,7 +64,7 @@ class HaMarkdown extends window.hassMixins.EventsMixin(Polymer.Element) {
|
||||
}
|
||||
}
|
||||
} else if (this._scriptLoaded === 2) {
|
||||
this.innerText = this._content;
|
||||
this.innerText = this.content;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user