gerby-project / plastex

Python package to convert LaTeX markup to DOM
Other
14 stars 12 forks source link

Update the environments `Math.jinja2s` #8

Closed pbelmans closed 7 years ago

pbelmans commented 7 years ago

In trying to fix #6 it became clear that we probably don't want to add block level mathematics in a <span> environment. Not wanting to go off track in fixing this right away I'm recording it here. This fix is nearly trivial once we've decided which output we want.

pbelmans commented 7 years ago

Things to be done:

pbelmans commented 7 years ago

Actually, to add the \tag we might have to alter the source code of an equation, as we just dump {{ obj.source }} when outputting an equation.

pbelmans commented 7 years ago

There's not much reason to do this in a \tag, as compared to doing this as a <span>. It will also make pbelmans/gerby-website#4 easier.

pbelmans commented 7 years ago

One special case where it might be useful to do this inside the actual equation is for the align environment.