Skip to content

codeassign/markjax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.