Jelajahi Sumber

:art: https://github.com/siyuan-note/siyuan/issues/2892

Vanessa 3 tahun lalu
induk
melakukan
e2705bc2ac
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/src/protyle/toolbar/util.ts

+ 1 - 1
app/src/protyle/toolbar/util.ts

@@ -2,6 +2,6 @@ import {fetchPost} from "../../util/fetch";
 
 export const previewTemplate = (pathString: string, element: Element) => {
     fetchPost("/api/file/getFile", {path: pathString.replace(window.siyuan.config.system.dataDir.substring(0, window.siyuan.config.system.dataDir.length - 4), "")}, (response) => {
-        element.innerHTML = response.data;
+        element.innerHTML = `<div class="b3-typography">${response.data}</div>`;
     })
 }