Fixed another of the same issue
This commit is contained in:
parent
0c316ceb10
commit
c08e54d1e9
|
@ -186,7 +186,7 @@ function updateFont() {
|
||||||
currentFontSize = localStorage.getItem("SETTING-fontsize")
|
currentFontSize = localStorage.getItem("SETTING-fontsize")
|
||||||
noteBox.style.fontSize = currentFontSize + "px"
|
noteBox.style.fontSize = currentFontSize + "px"
|
||||||
textSizeBox.innerText = currentFontSize + "px"
|
textSizeBox.innerText = currentFontSize + "px"
|
||||||
if markdowntoggle {
|
if (markdowntoggle) {
|
||||||
var targethtml = "<!DOCTYPE html><html><style>html { height: 100% } body { font-family: 'Inter', sans-serif; height: 100%; color: " + getComputedStyle(document.documentElement).getPropertyValue('--text-color') + "; font-size: " + currentFontSize + "px; }</style>" + marked.parse(noteBox.value) + "</html>";
|
var targethtml = "<!DOCTYPE html><html><style>html { height: 100% } body { font-family: 'Inter', sans-serif; height: 100%; color: " + getComputedStyle(document.documentElement).getPropertyValue('--text-color') + "; font-size: " + currentFontSize + "px; }</style>" + marked.parse(noteBox.value) + "</html>";
|
||||||
markdown.srcdoc = targethtml;
|
markdown.srcdoc = targethtml;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue