Equation Citator v1.3.7 Documentation
    Preparing search index...
    • Determines the auto-generated equation number tag at the current cursor position within a Markdown document.

      This function analyzes the content up to the cursor position, tracking heading levels, code blocks, and equation blocks, and returns the appropriate equation tag if the cursor is inside an equation (single-line or block).

      Parameters

      • content: string

        The full Markdown content to analyze.

      • cursorPos: EditorPosition

        The current cursor position, specified as an object with line and ch (character) properties.

      • configs: EquationAutoNumberConfigs

        The auto-numbering configuration object containing all settings.

      Returns string | null

      The equation tag string if the cursor is inside an equation, or null otherwise.

      process for quotes is handled inside parseMarkdownLine function