fixed: avoid toggle header in preview mode
This commit is contained in:
parent
3240854915
commit
2f0d18822f
1 changed files with 21 additions and 18 deletions
3
main.js
3
main.js
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue