From a83b68ffa3153c60c5c592368b6f7fa7fe36f87b Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Tue, 20 Jun 2023 00:02:35 +0800 Subject: [PATCH] fix: preview template xml bug --- src/modules/template/preview.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/template/preview.ts b/src/modules/template/preview.ts index 0d752dc..50644d0 100644 --- a/src/modules/template/preview.ts +++ b/src/modules/template/preview.ts @@ -118,5 +118,7 @@ async function renderTemplatePreview( } else { html = `

Preview not available for template ${templateName}

`; } + // complete
and
tags + html = html.replace(/
/g, "
").replace(/
/g, "
"); return html; }