function mathjax_init() {
  global $base_path;
  
  $active = mathjax_active() && variable_get('mathjax_enabled', TRUE);
  drupal_alter('mathjax_active', $active);

  // Load Mathjax only on specified nodes
  if ($active) {...}
}
CommentFileSizeAuthor
#1 2012-6-24 6-40-41.png37.37 KBkolier

Comments

kolier’s picture

StatusFileSize
new37.37 KB

I've add a input filter to detect whether or not to load the MathJax.
Sandbox Project: mathjax_trigger
mathjax_trigger configuration

cilefen’s picture

Status: Active » Postponed (maintainer needs more info)

I think basing it on an input format makes more sense. See https://drupal.org/node/1526034

What are your thoughts? I am unclear about what the sandbox module is trying to accomplish. Can you explain further?

cilefen’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
cilefen’s picture

Issue summary: View changes

minor edit.