markjax

1.1.3 • Public • Published

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.

Package Sidebar

Install

npm i markjax

Weekly Downloads

1

Version

1.1.3

License

Apache-2.0

Last publish

Collaborators

  • codeassign