• Run the script: check-math-delimiters.py
  • Provide file or directory paths to scan.
  • The script ignores fenced code blocks and inline code spans.
  • Output lists files with unmatched $ or $$ delimiters.