barrysteyn / pelican_plugin-render_math

A plugin for the pelican blog to allow it render mathematics in Latex.
67 stars 25 forks source link

Allow change source for MathJax #28

Open loggerhead opened 8 years ago

loggerhead commented 8 years ago

The original MathJax source is not fast in China, maybe provide an option to replace it wound be help, like the following code:

if key == 'source':
    try:
        typeVal = isinstance(value, basestring)
    except NameError:
        typeVal = isinstance(value, str)

    if not typeVal:
        continue

    mathjax_settings[key] = "'".join(["", value.strip('\'"'), ""])
barrysteyn commented 8 years ago

Hi

Apologies for taking so long to reply to this. I have been away. I will look into this over the weekend and provide more feedback.

Thank you very much for doing this.