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

Using SVG string of the end url in a JavaScript file #283

Open
imaphatduc opened this issue Jun 29, 2022 · 2 comments
Open

Using SVG string of the end url in a JavaScript file #283

imaphatduc opened this issue Jun 29, 2022 · 2 comments

Comments

@imaphatduc
Copy link

Is there any way to parse the html of the end url to a string? I'm trying to use the raw svg string in my library and find no api to achieve this.

I tried to call ajax() method of jQuery, but it seems like the website do not include the Access-Control-Allow-Origin header.

@uetchy
Copy link
Owner

uetchy commented Jul 15, 2022

What do you mean by "the end URL"?
You can directly use MathJax npm module to generate SVG string by the way.

@imaphatduc
Copy link
Author

By end url I mean something like this: https://math.vercel.app/?from=any-tex-string.

Yeah I can directly use MathJax npm module but the imported package size is just massive to achieve such a small goal. Can you build some kind of an API to grab the generated SVG string?

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