math-api
math-api copied to clipboard
Using SVG string of the end url in a JavaScript file
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.
What do you mean by "the end URL"? You can directly use MathJax npm module to generate SVG string by the way.
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?