mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +08:00
NoteSerailizer: Detect h1 correctly
This commit is contained in:
@ -172,7 +172,7 @@ class NoteSerializer implements NoteSerializerInterface {
|
|||||||
if (line.trim().isEmpty) {
|
if (line.trim().isEmpty) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
startsWithH1 = line.startsWith('#');
|
startsWithH1 = line.startsWith('#') && !line.startsWith('##');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user