Don't break Markdown from external sources (#5713)

This commit is contained in:
Franck Nijhof
2020-05-02 15:19:26 +02:00
committed by GitHub
parent 79d1a2f458
commit c3832d56c3
8 changed files with 47 additions and 8 deletions

View File

@@ -50,7 +50,13 @@ export const showOptionsFlowDialog = (
);
return description
? html` <ha-markdown allowsvg .content=${description}></ha-markdown> `
? html`
<ha-markdown
breaks
allowsvg
.content=${description}
></ha-markdown>
`
: "";
},
@@ -69,7 +75,13 @@ export const showOptionsFlowDialog = (
step.description_placeholders
);
return description
? html` <ha-markdown allowsvg .content=${description}></ha-markdown> `
? html`
<ha-markdown
allowsvg
breaks
.content=${description}
></ha-markdown>
`
: "";
},