<story><title>Problems with math rendering on the web (2020)</title><url>https://danilafe.com/blog/math_rendering_is_wrong/</url></story><parent_chain><item><author>kisonecat</author><text>I implemented a TeX engine in WebAssembly so you really can run TeX in the browser.  You can see a demo of this at &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;tex.rossprogram.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;tex.rossprogram.org&amp;#x2F;&lt;/a&gt; and at &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;web2js&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;web2js&lt;/a&gt; you can find a Pascal compiler that targets WebAssembly which can compile Knuth&amp;#x27;s TeX.  Interesting primitives like \directjs are also implemented, so you can execute javascript from inside TeX.  The rendering is handled with &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;dvi2html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;dvi2html&lt;/a&gt; for which I finally fixed some font problems.&lt;p&gt;To make it relatively fast, the TeX engine gets snapshotted and shipped to the browser with much of TeXlive already loaded.  So even things like TikZ work reasonably well.  There is of course a lot more to do!  The plan is to convert ximera.osu.edu to this new backend by the fall.</text></item></parent_chain><comment><author>phkahler</author><text>&amp;gt;&amp;gt; I implemented a TeX engine in WebAssembly so you really can run TeX in the browser.&lt;p&gt;Kinda misses the point of the blog post. The idea is to do that server side, preferably only once.</text></comment>
<story><title>Problems with math rendering on the web (2020)</title><url>https://danilafe.com/blog/math_rendering_is_wrong/</url></story><parent_chain><item><author>kisonecat</author><text>I implemented a TeX engine in WebAssembly so you really can run TeX in the browser.  You can see a demo of this at &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;tex.rossprogram.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;tex.rossprogram.org&amp;#x2F;&lt;/a&gt; and at &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;web2js&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;web2js&lt;/a&gt; you can find a Pascal compiler that targets WebAssembly which can compile Knuth&amp;#x27;s TeX.  Interesting primitives like \directjs are also implemented, so you can execute javascript from inside TeX.  The rendering is handled with &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;dvi2html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;kisonecat&amp;#x2F;dvi2html&lt;/a&gt; for which I finally fixed some font problems.&lt;p&gt;To make it relatively fast, the TeX engine gets snapshotted and shipped to the browser with much of TeXlive already loaded.  So even things like TikZ work reasonably well.  There is of course a lot more to do!  The plan is to convert ximera.osu.edu to this new backend by the fall.</text></item></parent_chain><comment><author>mwcampbell</author><text>&amp;gt; The plan is to convert ximera.osu.edu to this new backend by the fall.&lt;p&gt;Have you verified that this will not be an accessibility regression for blind users?</text></comment>