From aa213a5e9e684f9e975720b2b220f82daa72905a Mon Sep 17 00:00:00 2001 From: X Code Date: Sat, 18 Dec 2021 19:00:27 -0800 Subject: [PATCH] Checked list is already considered block --- lib/src/models/rules/insert.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/src/models/rules/insert.dart b/lib/src/models/rules/insert.dart index 487696c0..a8acb0e9 100644 --- a/lib/src/models/rules/insert.dart +++ b/lib/src/models/rules/insert.dart @@ -95,16 +95,6 @@ class PreserveBlockStyleOnInsertRule extends InsertRule { resetStyle.addAll(Attribute.header.toJson()); } - // Similarly for the checked style - if (lineStyle.attributes[Attribute.list.key] == Attribute.checked) { - resetStyle.addAll(Attribute.checked.toJson()); - } - - // Similarly for the unchecked style - if (lineStyle.attributes[Attribute.list.key] == Attribute.unchecked) { - resetStyle.addAll(Attribute.unchecked.toJson()); - } - // Go over each inserted line and ensure block style is applied. final lines = data.split('\n'); final delta = Delta()..retain(index + (len ?? 0));