Fixed another of the same issue

This commit is contained in:
Tracker-Friendly 2024-04-26 16:54:57 +01:00
parent 0c316ceb10
commit c08e54d1e9
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ function updateFont() {
currentFontSize = localStorage.getItem("SETTING-fontsize")
noteBox.style.fontSize = 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>";
markdown.srcdoc = targethtml;
}