Skip to content

Deduplicate and clean up command tables for MathML parser #6

Description

@fibonatto

Problem

Within src/math.c, the LaTeX-to-MathML parser currently has duplicated entries in the command table (e.g., multiple "theta", "sigma", etc.), which leads to unnecessary scans, unnecessary binary size, and the potential for future maintenance errors or inconsistent mappings.

Proposed Solution

  • Audit the MathML command table for duplicates and redundant entries
  • Ensure each command appears exactly once with the correct MathML mapping
  • Add (or update) a test verifying the table contains only unique entries
  • Refactor table structure for maintainability if necessary

Acceptance Criteria

  • All command tables are deduplicated
  • Unique mapping for each supported LaTeX command
  • Tests (or linter) would fail on future accidental duplicates

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions