notus/src/heuristics/insert_rules library

Classes

AutoExitBlockRule
Heuristic rule to exit current block when user inserts two consecutive line-breaks.
AutoFormatLinksRule
Applies link format to text segment (which looks like a link) when user inserts space character after it.
CatchAllInsertRule
Fallback rule which simply inserts text as-is without any special handling.
ForceNewlineForInsertsAroundEmbedRule
Forces text inserted on the same line with an embed (before or after it) to be moved to a new line adjacent to the original line.
InsertRule
A heuristic rule for insert operations.
PreserveBlockStyleOnPasteRule
Preserves block style when user pastes text containing line-breaks. This rule may also be activated for changes triggered by auto-correct.
PreserveInlineStylesRule
Preserves inline styles when user inserts text inside formatted segment.
PreserveLineStyleOnSplitRule
Preserves line format when user splits the line into two.
ResetLineFormatOnNewLineRule
of a line (right before a line-break). Resets format for a newly inserted line when insert occurred at the end