diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-04-25 12:33:50 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-04-25 20:30:27 -0700 |
commit | c243e5b67b0a3be6a713c6120da24e5e65cb0357 (patch) | |
tree | 9b1df6396034408f8d9fddaee974e3aec58bd87f /tests/writer.html | |
parent | b3669e139cf354d74579b87b07b41f6d63126c84 (diff) | |
download | pandoc-c243e5b67b0a3be6a713c6120da24e5e65cb0357.tar.gz |
Use texmath's parser in TexMath module.
* This replaces a lot of custom parser code, and expands
the tex -> unicode conversion.
* The behavior has also changed: if the whole formula can't
be converted, the whole formula is left in raw TeX.
Previously, pandoc converted parts of the formula to unicode
and left other parts in raw TeX.
* Added (but not yet exported) readTeXMath', which returns a Maybe.
* Updated tests
Diffstat (limited to 'tests/writer.html')
-rw-r--r-- | tests/writer.html | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/tests/writer.html b/tests/writer.html index f41a8e60a..b8296a536 100644 --- a/tests/writer.html +++ b/tests/writer.html @@ -830,19 +830,19 @@ Blah ></li ><li ><span class="math" - >2+2=4</span + >2 + 2 = 4</span ></li ><li ><span class="math" ><em >x</em - > ∈ <em + > ∈ <em >y</em ></span ></li ><li ><span class="math" - >α ∧ ω</span + >α ∧ ω</span ></li ><li ><span class="math" @@ -856,35 +856,11 @@ Blah >-Tree</li ><li >Here’s some display math: <span class="math" - >\frac{<em - >d</em - >}{<em - >dx</em - >}<em - >f</em - >(<em - >x</em - >)=\lim<sub - ><em - >h</em - > → 0</sub - >\frac{<em - >f</em - >(<em - >x</em - >+<em - >h</em - >)-<em - >f</em - >(<em - >x</em - >)}{<em - >h</em - >}</span + >$\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</span ></li ><li >Here’s one that has a line break in it: <span class="math" - >α+ω × <em + >α + ω × <em >x</em ><sup >2</sup |