Opened 12 years ago

Closed 12 years ago

#1809 closed task (fixed)

Allow JavaScript in OMEdit html viewer

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: blocker Milestone: 1.9.0
Component: OMEdit Version:
Keywords: Cc:

Description

The following code now works in OMEdit, which means you can easily write equations also in documentation.

<html>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are:
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</html>

Change History (2)

comment:1 by Martin Sjölund, 12 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 12 years ago

Resolution: fixed
Status: acceptedclosed

This was fixed in r12452

Note: See TracTickets for help on using tickets.