From 527b3bc8e186c466ca0780f91cdea9683aab0546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Grubi=C5=A1i=C4=87?= Date: Fri, 26 Apr 2024 22:43:24 +0200 Subject: [PATCH] Add the declaration and the UTF-8 encoding attribute (#55) * Add the declaration and the UTF-8 encoding attribute * Modify the HTML charset tag for better compatibility See https://github.com/mvdkwast/obsidian-copy-as-html/pull/55#discussion_r1561960414 --- main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 395c3a9..5fd3df0 100644 --- a/main.ts +++ b/main.ts @@ -222,8 +222,10 @@ const MERMAID_STYLESHEET = ` } `; -const htmlTemplate = (stylesheet: string, body: string, title: string) => ` +const htmlTemplate = (stylesheet: string, body: string, title: string) => ` + + ${title}