filter_mathjaxloader/loader

Description:
  • Mathjax JS Loader.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Mathjax JS Loader.

Members

(static, constant) configure

Description:
  • Called by the filter when it is active on any page. This does not load MathJAX yet - it addes the configuration to the head incase it gets loaded later. It also subscribes to the filter-content-updated event so MathJax can respond to content loaded by Ajax.

Source:

Called by the filter when it is active on any page. This does not load MathJAX yet - it addes the configuration to the head incase it gets loaded later. It also subscribes to the filter-content-updated event so MathJax can respond to content loaded by Ajax.

(static, constant) contentUpdated

Description:
  • Handle content updated events - typeset the new content.

Source:

Handle content updated events - typeset the new content.

(static, constant) typeset

Description:
  • Called by the filter when an equation is found while rendering the page.

Source:

Called by the filter when an equation is found while rendering the page.

Methods

(inner) loadMathJax(url, callback)

Description:
  • Load the MathJax script.

Source:
Parameters:
Name Type Description
url String

The URL of the MathJax script to load.

callback function

The function to call when the script has loaded.