math.html 599 B

123456789101112131415161718192021222324
  1. {{- if .Params.math }}
  2. <script>
  3. window.MathJax = {
  4. tex: {inlineMath: [['$', '$']]},
  5. options: {
  6. enableMenu: true, // set to false to disable the menu
  7. }
  8. };
  9. </script>
  10. <script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
  11. <style>
  12. mjx-container.MathJax[display="inline"] {
  13. font-size: 150%!important;
  14. }
  15. mjx-container.MathJax[display="true"] {
  16. text-align: left !important;
  17. }
  18. @media screen and (min-width: 600px) {
  19. mjx-container.MathJax[display="true"] {
  20. padding-left: 2rem;
  21. }
  22. }
  23. </style>
  24. {{- end }}