Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #6 from satra/fix/displaymath
Browse files Browse the repository at this point in the history
Fix/displaymath - closes #5
  • Loading branch information
satra authored Nov 4, 2016
2 parents 1624333 + 0c8957c commit c40d58d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _episodes/03-coffee.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ This seems to work:

$$ \frac{kram}{down} \sum_0^\infty $$

but not this:
or

$$ P( F(y) < t) ) = P( F^{-1}F(y) < F^{-1}(t) ) $$

The second is display math because it occurs alone in a block.

The last two are display math because it occurs alone in a block.
4 changes: 4 additions & 0 deletions _includes/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
var script = scripts[i];
if (script.type.match(/^math\/tex/)) {
var text = script.text === "" ? script.innerHTML : script.text;
if (text.substring(5, 10) == "CDATA"){
text = text.substring(11, text.length - 4);
}
console.log(text);
var options = script.type.match(/mode\s*=\s*display/) ?
{displayMode: true} : {};
script.insertAdjacentHTML("beforebegin",
Expand Down

0 comments on commit c40d58d

Please sign in to comment.