From 83e7e08f4fe373a9f9fb0dd157ab4d091c9b8f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 7 Jan 2021 22:28:55 +0100 Subject: [PATCH] Format blueprint descriptions with markdown --- .../config/automation/blueprint-automation-editor.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/panels/config/automation/blueprint-automation-editor.ts b/src/panels/config/automation/blueprint-automation-editor.ts index 6755816afe31..eaa23936b5a4 100644 --- a/src/panels/config/automation/blueprint-automation-editor.ts +++ b/src/panels/config/automation/blueprint-automation-editor.ts @@ -28,6 +28,7 @@ import { } from "../../../data/blueprint"; import "../../../components/ha-blueprint-picker"; import "../../../components/ha-circular-progress"; +import "../../../components/ha-markdown"; import "../../../components/ha-selector/ha-selector"; import "../../../components/ha-settings-row"; @@ -148,9 +149,11 @@ export class HaBlueprintAutomationEditor extends LitElement { There is an error in this Blueprint: ${blueprint.error}

` : html`${blueprint?.metadata.description - ? html`

- ${blueprint.metadata.description} -

` + ? html`` : ""} ${blueprint?.metadata?.input && Object.keys(blueprint.metadata.input).length @@ -267,9 +270,6 @@ export class HaBlueprintAutomationEditor extends LitElement { .padding { padding: 16px; } - .pre-line { - white-space: pre-line; - } .blueprint-picker-container { padding: 16px; }