From fdbdabda13f946919de089128609308b86d296f3 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 29 Jun 2021 10:24:34 +0200 Subject: [PATCH] NoteSerailizer: Detect h1 correctly --- lib/core/note_serializer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/note_serializer.dart b/lib/core/note_serializer.dart index 8ad94c34..6d623584 100644 --- a/lib/core/note_serializer.dart +++ b/lib/core/note_serializer.dart @@ -172,7 +172,7 @@ class NoteSerializer implements NoteSerializerInterface { if (line.trim().isEmpty) { continue; } - startsWithH1 = line.startsWith('#'); + startsWithH1 = line.startsWith('#') && !line.startsWith('##'); break; }