vue-mathjax
vue-mathjax copied to clipboard
Unclear where to put <src> pointer to MathJax
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.
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>