NoteSerailizer: Detect h1 correctly

This commit is contained in:
Vishesh Handa
2021-06-29 10:24:34 +02:00
parent 3e91e7d734
commit fdbdabda13

View File

@ -172,7 +172,7 @@ class NoteSerializer implements NoteSerializerInterface {
if (line.trim().isEmpty) {
continue;
}
startsWithH1 = line.startsWith('#');
startsWithH1 = line.startsWith('#') && !line.startsWith('##');
break;
}