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

Improve handling of embedded HTML #320

Open
NSoiffer opened this issue Dec 10, 2024 · 2 comments
Open

Improve handling of embedded HTML #320

NSoiffer opened this issue Dec 10, 2024 · 2 comments

Comments

@NSoiffer
Copy link
Owner

NSoiffer commented Dec 10, 2024

Based on what TeX is going to generate, MathCAT should handle the following HTML inside of leaf elements:

  • span (just a wrapper and can be ignored)?
  • em
  • strong, b
  • a (links)

For everything else, just use the contents.

@davidcarlisle
Copy link

seems reasonable place. The other thing to consider is, especially if mathml structure elements are used, what happens if there is a /Link structure element under mtext. In theory latex could generate an html namespace <a> link (as it does in the associated file version) but currently, it doesn't eg this pdf

nested-1-se.pdf

@NSoiffer
Copy link
Owner Author

That is a problem for all the tags within the structure. I don't think I have access to the HTML mappings (although I could add them). I'll ask Roman to see what he thinks about using the HTML mappings when delivering content. It sounded like Mathew H thought that HTML in MathML was appropriate. Maybe you can ask at the meeting on Thursday.

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

No branches or pull requests

2 participants