Opened 12 years ago

Closed 12 years ago

#1809 closed task (fixed)

Allow JavaScript in OMEdit html viewer

Reported by: sjoelund.se Owned by: sjoelund.se
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 Changed 12 years ago by sjoelund.se

  • Owner changed from somebody to sjoelund.se
  • Status changed from new to accepted

comment:2 Changed 12 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from accepted to closed

This was fixed in r12452

Note: See TracTickets for help on using tickets.