fixed: avoid toggle header in preview mode

This commit is contained in:
quenousimporte 2023-05-09 12:01:57 +02:00
parent 3240854915
commit 2f0d18822f
1 changed files with 21 additions and 18 deletions

View File

@ -1935,6 +1935,8 @@ function restore()
function toggleheader()
{
if (preview.hidden)
{
if (md.value.startsWith("---"))
{
var idx = md.value.indexOf("---", 3);
@ -1955,6 +1957,7 @@ function toggleheader()
}
resize();
}
}
function splitshortcut(s)