Understand the MathLive source architecture
masterMathLive is organized into several specialized modules that handle different stages of the math rendering and editing lifecycle:
src/public: Contains the TypeScript declaration files defining the public API.src/core: The rendering engine responsible for parsing LaTeX and converting it into HTML markup.src/core-atoms: Low-level code used to render and generate LaTeX for specific mathematical layout objects (e.g., fractions, delimiters, arrays).src/core-definitions: Maps supported LaTeX commands to their arguments and corresponding atoms.src/editor: Utilities for editor-specific features like the virtual keyboard, localization, and keybindings.src/editor-mathfield: The interactive UI component that manages keyboard/pointer input and the visual interface for editing formulas.src/editor-model: Manages the state of the math expression, including the tree of atoms representing the content and the current selection, along with methods to modify that state.src/addons: Miscellaneous additional features.