Remplacer simpleMDE par un éditeur maison #110

Merged
Darks merged 34 commits from new_editor into dev 2022-12-18 00:08:52 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 371dee1f7a - Show all commits

View File

@ -107,9 +107,9 @@ function editor_set_title(event, level, diff)
if(count < line.length && line[count] == ' ') contents_index++;
let contents = line.slice(contents_index);
if(level > 0) {
if(level > 0 || count == 1 && diff == -1) {
/* Remove the title if the corresponding level is re-requested */
if(count == level)
if(count == level || count == 1 && diff == -1)
return contents;
/* Otherwise, add it */
else