1
0

mathjax.js 690 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. var MathJax = {
  2. tex: {
  3. inlineMath: [
  4. ['$', '$'],
  5. ['\\(', '\\)'],
  6. ],
  7. displayMath: [
  8. ['$$', '$$'],
  9. ['\\[', '\\]'],
  10. ],
  11. processEscapes: true
  12. },
  13. showMathMenu: false,
  14. showProcessingMessages: false,
  15. messageStyle: 'none',
  16. skipStartupTypeset: true, // disable initial rendering
  17. positionToHash: false,
  18. options: {
  19. ignoreHtmlClass: 'tex2jax-ignore'
  20. },
  21. chtml: {
  22. fontURL: chrome.runtime.getURL('/vendor/mathjax/fonts')
  23. },
  24. startup: {
  25. typeset: false
  26. }
  27. }
  28. var mj = {
  29. loaded: false,
  30. render: () => {
  31. mj.loaded = false
  32. MathJax.typesetPromise().then(() => {
  33. setTimeout(() => mj.loaded = true, 20)
  34. })
  35. }
  36. }