code: def pelican_init(pelicanobj):
      
  
      # Process settings, and set global var
      mathjax_settings = process_settings(pelicanobj)
  
      # Generate mathjax script
      mathjax_script = process_mathjax_script(mathjax_settings)
  
      # Configure Typogrify
      configure_typogrify(pelicanobj, mathjax_settings)
  
      # Configure Mathjax For Markdown
      if PelicanMathJaxExtension:
          mathjax_for_markdown(pelicanobj, mathjax_script, mathjax_settings)
  
      # Configure Mathjax For RST
      mathjax_for_rst(pelicanobj, mathjax_script, mathjax_settings)
  
      # Set process_summary's mathjax_script variable
      process_summary.mathjax_script = None
      if mathjax_settings['process_summary']:
          process_summary.mathjax_script = mathjax_script
docs: Loads the mathjax script according to the settings.
      Instantiate the Python markdown extension, passing in the mathjax
      script as config parameter.