Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle <math> tags with attributes #2321

Closed
BoboTiG opened this issue Mar 5, 2025 · 0 comments
Closed

Handle <math> tags with attributes #2321

BoboTiG opened this issue Mar 5, 2025 · 0 comments
Assignees
Labels

Comments

@BoboTiG
Copy link
Owner

BoboTiG commented Mar 5, 2025

Required by #2319.

As of now, our regexp won't match this code:

text = sub(r"<math>([^<]+)</math>", partial(convert_math, word=word), text)

I think we could do a first pass in clean() to remove all attributes: <math style="vertical-align:+0%;">...</math> -> <math>...</math>

@BoboTiG BoboTiG self-assigned this Mar 5, 2025
@BoboTiG BoboTiG closed this as completed in 20add13 Mar 5, 2025
BoboTiG added a commit that referenced this issue Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant