Skip to content

Commit

Permalink
Merge pull request BSVino#10 from Overv/master
Browse files Browse the repository at this point in the history
Fix MathML not displaying
  • Loading branch information
BSVino committed Oct 5, 2014
2 parents 3c8024a + d3a52a0 commit 257767b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ def replace_alias(matchobj):

command_html = command_html.replace("{$examples}", examples_html)

# Strip 'mml' namespace from MathML tags so that MathJax can find them
command_html = re.sub(r'<(/?)mml:(.*?)>', r'<\1\2>', command_html)

output_html = header_for_command + command_html + footer_for_command

output = open(output_dir + version_dir + "/" + command, "w")
Expand Down
2 changes: 2 additions & 0 deletions html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<link href="../jquery-bonsai/jquery.bonsai.css" rel="stylesheet" type="text/css" />
<script src="../jquery-cookie/jquery.cookie.js"></script>

<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML"></script>

<link href="../style.css" rel="stylesheet" type="text/css" />
<link id="pagestyle" href="../style_light.css" rel="stylesheet" type="text/css" />

Expand Down

0 comments on commit 257767b

Please sign in to comment.