mathpix-markdown-it icon indicating copy to clipboard operation
mathpix-markdown-it copied to clipboard

how i can use this mathpix marksdown in our html editor

Open ngcgolf11 opened this issue 5 years ago • 1 comments

We are using php and front is normal html how we can utlize this mathpix marksdown into our website please guide we don't have reactjs or angular js in frontend we are using normal html in view please guide us how to utlize this library

ngcgolf11 avatar Aug 27 '20 19:08 ngcgolf11

Using mathpix-markdown-it in web browsers

If you are loading mathpix-markdown-it from a CDN into a web page, there is no need to install anything. Simply use a script tag that loads mathpix-markdown-it from the CDN. E.g.,

  <script>
    let script = document.createElement('script');
    script.src = "https://cdn.jsdelivr.net/npm/[email protected]/es5/bundle.js";
    document.head.append(script);

    script.onload = function() {
      const isLoaded = window.loadMathJax();
      if (isLoaded) {
        console.log('Styles loaded!')
      }
    }
  </script>

Example of mathpix-markdown-it usage in the web browsers

README

OlgaRedozubova avatar Jan 15 '21 15:01 OlgaRedozubova