vue-mathjax icon indicating copy to clipboard operation
vue-mathjax copied to clipboard

Unclear where to put <src> pointer to MathJax

Open lazarillo opened this issue 4 years ago • 1 comments

The README.md says:

Don't forget to include <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS_HTML"></script>.

It is not clear where I should put this. In a simple web page, that would be clear, but Vue changes the structure significantly. I have tried to put it in vue components where it is being used, or in the index.js page, or in the App.vue page, without any luck.

The only way I can get this to work, ever, is on the Codepen page, because it has an area where I can include external dependencies.

An example on the readme would be hugely helpful.

lazarillo avatar Aug 10 '20 21:08 lazarillo

Vue projects (at least the ones generated with Vue CLI, but I believe this is the case for all Vue projects) have a public/index.html file in the root of the project. That html file is the entry point for your actual site, i.e. what's sent to the user when they request your site.

You can add the <script></script> tag there inside <head></head>

sergiofenoll avatar Oct 26 '20 14:10 sergiofenoll