Checks whether the caret at the end of textBefore sits inside Markdown
code, an open ``` fence or an unclosed span on the current line. The
mention and emoji autocompletes stay closed there, since `@bob` and `:smile`
are literal text in code.
Parameters
textBefore: string
Return Type
boolean
Usage
import { insideCode } from "src/utils/editor/text.ts";