DavidSichau / meteor-mathjax

Handlebars helper for rendering math formulas with mathjax.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notes for Meteor 0.9.x

The correct name of this package is currently mrt:mathjax, but it will probably change in the future.

meteor-mathjax

The package provides a handlebars helper that enables rendering mathematical formulas with mathjax. Currently, the mathjax source code is loaded from cloud as soon as the first formula is being rendered.

An example use of mathjax in a template may look like this:

{{#mathjax}}
<p>Let $(a_n)$, $(b_n)$ and $(c_n)$ be series
   of real numbers with $a_n\leq b_n\leq c_n$
   for each $n$. Supposing that $(a_n)$ and $(c_n)$
   are convergent to the same limit, $(b_n)$
   is also convergent, and moreover</p>
<p>
  <!-- this equation will be displayed -->
  $$
  \lim a_n=\lim b_n=\lim c_n.
  $$
</p>
{{/mathjax}}

Remember to use single dollars $...$ for inline math, and double $$...$$ for displaying equations.

About

Handlebars helper for rendering math formulas with mathjax.


Languages

Language:JavaScript 88.9%Language:HTML 10.1%Language:CSS 1.0%