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,
|
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)
|
||||||
|
|
Loading…
Reference in New Issue