Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear where to put <src> pointer to MathJax #17

Open
lazarillo opened this issue Aug 10, 2020 · 1 comment
Open

Unclear where to put <src> pointer to MathJax #17

lazarillo opened this issue Aug 10, 2020 · 1 comment

Comments

@lazarillo
Copy link

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.

@sergiofenoll
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants