I wanna know how it works!

20 views
Skip to first unread message

Heath Kim

unread,
May 11, 2021, 2:05:58 AM5/11/21
to MathJax Development
Is there any documents for developer?

I wanna know especially execution order and its source code level.

My thought is(didn't view source yet, and not a professional, retired one, know very little about web tech)

1. get document(inside body tag?) when it loaded on my browser. 
2. parse document to convert. 
3. processing. 
4. replace processed data to document. 
5. boom.

I need some hints about mathjax!
I don't have much time to dig into it alone.

Thanks a lot in advance! 

Davide Cervone

unread,
May 11, 2021, 12:02:53 PM5/11/21
to mathj...@googlegroups.com
Is there any documents for developer?

It depends on what level you want to work at.  There are some 300 pages of documentation for web-page authors, including the calls for using MathJax in dynamically created pages.  See


If you are trying to incorporate MathJax into a larger work-flow, such as a node-based toolchain, that is certainly possible, but less well documented.  You can look in


for examples of how to load and use MathJax in node applications in a variety of ways (e.g., using MathJax components, or using direct calls to the MathJax modules).  There are also examples of using MathJax in web pages at


including how to make a MathJax extension, and how to bundle a custom version of MathJax that includes the components you want.

I wanna know especially execution order and its source code level.

The examples listed above should help with that, particularly the "direct" calls in the node demos repository.

My thought is(didn't view source yet, and not a professional, retired one, know very little about web tech)

1. get document(inside body tag?) when it loaded on my browser. 
2. parse document to convert. 
3. processing. 
4. replace processed data to document. 
5. boom.

That is basically how it works, though you don't have to drop all the calls separately (though you can).  Indeed, loading MathJax into the page will cause those actions to occur automatically on the page.  If you change the page content after that, you will have to tell MathJax to typeset the page again, but that is easily done.  See


There is a "renderAction" list that does the steps you outline for you, and into which you can insert your own actions, if needed.  See


for some information on this.

I don't have much time to dig into it alone.

I have listed a number of the resources available to you.  We all have time commitments.  It seems as though you are asking others to do your work for you, for free, but I doubt you will find much support for that.  We are happy to answer specific questions you may have, but if you are not willing to do even the basic research to get started, it is unlikely that you will get much response, I'm afraid.

Davide



Reply all
Reply to author
Forward
0 new messages