added: setting to hide md header by default

This commit is contained in:
quenousimporte 2023-05-05 16:36:02 +02:00
parent 3e74f3f747
commit 3240854915
1 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,8 @@ var defaultsettings =
tagautocomplete: false, tagautocomplete: false,
titleinaccentcolor: false, titleinaccentcolor: false,
enablenetwork: false, enablenetwork: false,
titlebydefault: false titlebydefault: false,
headerbydefault: false
}; };
//builtin //builtin
@ -2268,6 +2269,12 @@ function bindfile(note)
{ {
md.focus(); md.focus();
} }
currentheader = "";
if (!settings.headerbydefault && md.value.startsWith("---"))
{
toggleheader();
}
} }
function loadnote(name) function loadnote(name)