Finds every occurrence of text in the rendered document and highlights it,
replacing the previous search. Returns the number of matches, also given by
FindMatchCount. No match is current yet: FindNext() goes to the first one
and FindPrevious() to the last one. An empty text clears the search,
as ClearFind() does.
A match never spans two blocks (paragraphs, headings, code blocks, table cells...). Text inside collapsed alerts and details blocks is searched too; moving to a match there expands its block. The source of formulas and diagrams, and list markers, are not searched.
The search stays active until it is cleared: when the document is rendered again (e.g. Markdown or Source changes), it runs again on the new document, which keeps the current match index when the new document has that many matches (the last match otherwise), without scrolling to it.
public int Find(string text, MarkdownFindOptions options = MarkdownFindOptions.None)
The text to find.
Case sensitivity and whole-word matching; by default the search ignores case and matches inside words too.