added: setting to hide md header by default
This commit is contained in:
parent
3e74f3f747
commit
3240854915
9
main.js
9
main.js
|
@ -13,7 +13,8 @@ var defaultsettings =
|
|||
tagautocomplete: false,
|
||||
titleinaccentcolor: false,
|
||||
enablenetwork: false,
|
||||
titlebydefault: false
|
||||
titlebydefault: false,
|
||||
headerbydefault: false
|
||||
};
|
||||
|
||||
//builtin
|
||||
|
@ -2268,6 +2269,12 @@ function bindfile(note)
|
|||
{
|
||||
md.focus();
|
||||
}
|
||||
|
||||
currentheader = "";
|
||||
if (!settings.headerbydefault && md.value.startsWith("---"))
|
||||
{
|
||||
toggleheader();
|
||||
}
|
||||
}
|
||||
|
||||
function loadnote(name)
|
||||
|
|
Loading…
Reference in New Issue