C
C
C-42019-03-28 17:15:44
JavaScript
C-4, 2019-03-28 17:15:44

AspNet + NuGet + MathJax - how to integrate?

I am developing a website in AspNet Core. It was necessary to integrate mathematical formulas into the pages of the site. For these purposes, the MathJax package was chosen . After installing via NuGet, the corresponding dependency 'MathJax (2.7.0)' appeared in the 'Dependencies' section, and the corresponding package appeared in the local nuget folder on the PC: '.nuget\packages\mathjax\' (installation completed successfully).
However, further questions arose, because. it's not clear how to reference the main MathJax.js file? The library was not copied to wwwroot\lib\MathJax\ - probably it should be, but then how to call it from html? Of course, you can go the simple route and just copy the contents of c:\Users\User\.nuget\packages\mathjax\2.7.0\content\Scripts\MathJax\ to wwwroot\lib\MathJax\ but then how do you update this library via NuGet?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question