Changeset 1fbadb2 in sasmodels for sasmodels/rst2html.py


Ignore:
Timestamp:
Apr 17, 2018 6:51:56 AM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
c11d09f, d533590
Parents:
7c3fb15
Message:

fix math rendering for rst2html: now need mathjax URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/rst2html.py

    r2d81cfe r1fbadb2  
    5656    # others don't work properly with math_output! 
    5757    if math_output == "mathjax": 
    58         settings = {"math_output": math_output} 
     58        # TODO: this is copied from docs/conf.py; there should be only one 
     59        mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML" 
     60        settings = {"math_output": math_output + " " + mathjax_path} 
    5961    else: 
    6062        settings = {"math-output": math_output} 
Note: See TracChangeset for help on using the changeset viewer.