diff --git a/app/index.html b/app/index.html
index 9aff395..637a962 100644
--- a/app/index.html
+++ b/app/index.html
@@ -82,7 +82,7 @@
-
+
diff --git a/markdown/index.html b/markdown/index.html
new file mode 100644
index 0000000..2c87462
--- /dev/null
+++ b/markdown/index.html
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/static/css/style.css b/static/css/style.css
index c9c26dd..3947ec5 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -353,6 +353,7 @@ body {
color: var(--text-color);
border: none;
width: 100%;
+ font-family: "Inter", sans-serif;
}
iframe#markdown {
diff --git a/static/iframe.html b/static/iframe.html
new file mode 100644
index 0000000..5ff566b
--- /dev/null
+++ b/static/iframe.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+iFrame Container
+
+
+
+
+
+
+
diff --git a/static/js/main.js b/static/js/main.js
index c43d1e0..a368d65 100644
--- a/static/js/main.js
+++ b/static/js/main.js
@@ -185,8 +185,8 @@ function updateFont() {
currentFontSize = localStorage.getItem("SETTING-fontsize")
noteBox.style.fontSize = currentFontSize + "px"
textSizeBox.innerText = currentFontSize + "px"
- var style = "";
- markdown.contentWindow.document.head.innerHTML = style;
+ var targethtml = "" + marked.parse(noteBox.value) + "";
+ markdown.srcdoc = targethtml;
}
async function waitforedit() {
@@ -399,7 +399,8 @@ function updateWordCount() {
}
function renderMarkDown() {
- markdown.contentWindow.document.body.innerHTML = marked.parse(noteBox.value)
+ var targethtml = "" + marked.parse(noteBox.value) + "";
+ markdown.srcdoc = targethtml
}
function selectNote(nameithink) {
@@ -674,8 +675,8 @@ removeBox.addEventListener("click", (event) => {
});
document.addEventListener("DOMContentLoaded", function() {
- var style = "";
- markdown.contentWindow.document.head.innerHTML = style;
+ var targethtml = "" + marked.parse(noteBox.value) + "";
+ markdown.srcdoc = targethtml
});
if (isFirstTimeVisitor() && /Android|iPhone|iPod/i.test(navigator.userAgent)) {