Skip to content

fix: mathml % formulas#136

Closed
arzola wants to merge 1 commit intodevfrom
mathmml-fix
Closed

fix: mathml % formulas#136
arzola wants to merge 1 commit intodevfrom
mathmml-fix

Conversation

@arzola
Copy link
Copy Markdown
Contributor

@arzola arzola commented Jun 17, 2025

This pull request introduces several changes to the src/imageGenerator.js file, primarily aimed at improving code consistency and handling edge cases in MathML and SVG processing. The changes focus on standardizing string formatting, enhancing error handling, and improving the robustness of SVG and PNG generation.

Code Consistency Improvements:

MathML and LaTeX Handling:

  • Added support for handling MathML percent signs by introducing a temporary encoding (__MATHPERCENT__) during decoding and restoring it afterward.
  • Improved the logic for detecting inline and block math expressions by refining string checks and trimming operations.

@arzola arzola closed this Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant