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

Get unique id attribute for <path> element produced by converting to SVG process #2821

Closed
imaphatduc opened this issue Jan 15, 2022 · 1 comment

Comments

@imaphatduc
Copy link

imaphatduc commented Jan 15, 2022

Issue Summary

I am using tex to svg feature of MathJax, specifically through this repo. I kind of having a problem like this person has in his/her issue. I've read it and the solution there is not compatible to my issue, as I'm writing in JavaScript rather than the command line. So how can I get the unique ID (ie unique prefix in id attribute) for each of <path> element? I tried to set a string to the localID field in the options object but the result ids has no change.

(I think my issue related to the source code, so I won't include technical details here)

@dpvc
Copy link
Member

dpvc commented Jan 25, 2022

The localID property goes in the svg block, not the options block. See the documentation for that. I suspect that is what you need to use, but there is not enough information about what you actually are trying to do to tell. If you can give more precise details about what your goal is, and what you have tried, perhaps we can give you some better answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants