From 2b0f43f3346862aea6fd51f1f26ce3759424b307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Fri, 8 Jan 2021 12:22:12 +0100 Subject: [PATCH] Format blueprint descriptions with markdown (#8109) --- .../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 6755816afe..eaa23936b5 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; }