fallback constant

NotusHeuristics const fallback

Default set of heuristic rules.

Implementation

static const NotusHeuristics fallback = NotusHeuristics(
  formatRules: [
    FormatEmbedsRule(),
    FormatLinkAtCaretPositionRule(),
    ResolveLineFormatRule(),
    ResolveInlineFormatRule(),
    // No need in catch-all rule here since the above rules cover all
    // attributes.
  ],
  insertRules: [
    PreserveBlockStyleOnPasteRule(),
    ForceNewlineForInsertsAroundEmbedRule(),
    PreserveLineStyleOnSplitRule(),
    AutoExitBlockRule(),
    ResetLineFormatOnNewLineRule(),
    AutoFormatLinksRule(),
    PreserveInlineStylesRule(),
    CatchAllInsertRule(),
  ],
  deleteRules: [
    EnsureEmbedLineRule(),
    PreserveLineStyleOnMergeRule(),
    CatchAllDeleteRule(),
  ],
);