The parsed markdown line from parseMarkdownLine function
Current code block state
Current auto-numbering state (will be mutated to update counters)
Current heading index
Array of all headings in the document
Type of auto-numbering (Absolute or Relative)
Object containing: shouldContinue (skip to next line), updated inCodeBlock state, and updated currentHeadingIndex
Process code blocks and headings, also update numberingstate during auto-numbering.
This function handles the common logic for both equation and figure auto-numbering:
call it in every loop in auto-number functions after calling
parseMarkdownLinefunction