diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index e6cbfc09a3..05f48449f7 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -103,6 +103,7 @@ class HaAuthFlow extends litLocalizeLiteMixin(LitElement) { ${this.localize("ui.panel.page-authorize.abort_intro")}: ` diff --git a/src/components/ha-markdown.ts b/src/components/ha-markdown.ts index ebc367122f..ee96a2b219 100644 --- a/src/components/ha-markdown.ts +++ b/src/components/ha-markdown.ts @@ -12,6 +12,8 @@ class HaMarkdown extends UpdatingElement { @property({ type: Boolean }) public allowSvg = false; + @property({ type: Boolean }) public breaks = false; + protected update(changedProps) { super.update(changedProps); @@ -26,7 +28,7 @@ class HaMarkdown extends UpdatingElement { this.innerHTML = await worker.renderMarkdown( this.content, { - breaks: true, + breaks: this.breaks, gfm: true, tables: true, }, diff --git a/src/dialogs/config-flow/show-dialog-config-flow.ts b/src/dialogs/config-flow/show-dialog-config-flow.ts index 9287a7958f..1ac015ecde 100644 --- a/src/dialogs/config-flow/show-dialog-config-flow.ts +++ b/src/dialogs/config-flow/show-dialog-config-flow.ts @@ -59,7 +59,9 @@ export const showConfigFlowDialog = ( ); return description - ? html` ` + ? html` + + ` : ""; }, @@ -78,7 +80,9 @@ export const showConfigFlowDialog = ( step.description_placeholders ); return description - ? html` ` + ? html` + + ` : ""; }, @@ -112,7 +116,13 @@ export const showConfigFlowDialog = ( )}

${description - ? html` ` + ? html` + + ` : ""} `; }, @@ -128,7 +138,13 @@ export const showConfigFlowDialog = ( return html` ${description - ? html` ` + ? html` + + ` : ""}

${hass.localize( diff --git a/src/dialogs/config-flow/show-dialog-options-flow.ts b/src/dialogs/config-flow/show-dialog-options-flow.ts index 3df7e19f2d..c3f228e568 100644 --- a/src/dialogs/config-flow/show-dialog-options-flow.ts +++ b/src/dialogs/config-flow/show-dialog-options-flow.ts @@ -50,7 +50,13 @@ export const showOptionsFlowDialog = ( ); return description - ? html` ` + ? html` + + ` : ""; }, @@ -69,7 +75,13 @@ export const showOptionsFlowDialog = ( step.description_placeholders ); return description - ? html` ` + ? html` + + ` : ""; }, diff --git a/src/dialogs/more-info/controls/more-info-configurator.js b/src/dialogs/more-info/controls/more-info-configurator.js index 8d09e02953..4e6d7cdbd5 100644 --- a/src/dialogs/more-info/controls/more-info-configurator.js +++ b/src/dialogs/more-info/controls/more-info-configurator.js @@ -52,6 +52,7 @@ class MoreInfoConfigurator extends PolymerElement {

@@ -95,6 +96,7 @@ class HaMfaModuleSetupFlow extends LocalizeMixin(EventsMixin(PolymerElement)) { >