@@ -158,6 +158,10 @@ class PreserveInlineStylesRule extends InsertRule {
final attributes = previous.attributes;
final hasLink =
(attributes != null && attributes.containsKey(NotusAttribute.link.key));
+ final hasHighLight = (attributes != null && attributes.containsKey(NotusAttribute.highlight.key));
+ if (hasHighLight) {
+ attributes.remove(NotusAttribute.highlight.key);
+ }
if (!hasLink) {
return Delta()
..retain(index)