Fix some Markdown leaking into note titles
This commit is contained in:
parent
41865a9a72
commit
cd476b3f6d
@ -220,7 +220,7 @@ class Note {
|
||||
title = "New note";
|
||||
} else {
|
||||
title = this.content.split('\n')[0];
|
||||
title = title.replace(/[\*#_`]/, "");
|
||||
title = title.replace(/[\*#_`]+/, "");
|
||||
title = title.replace(/^- \[[x ]\] /i, "");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user