Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 760 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 760 Bytes

MarkJax

Markdown with LaTeX parser in Javascript

Usage

Load MarkJax into a web page by including its main JavaScript file into the page. Place the following line in the <head> section of your document:

<script type="text/javascript" src="https://codeassign.github.io/markjax/dist/markjax.min.js"></script>

Now you can write simple HTML which uses markjax:

<html>
  <head>
    <script type="text/javascript" src="https://codeassign.github.io/markjax/dist/markjax.min.js"></script>
  </head>

  <body>
    <div id="output"></div>

    <script>
      markjax("# Hello\n$\LaTeX$", document.getElementById("output"));
    </script>
  </body>
</html>

Same HTML is available here.