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

Add Support for inline latex via MathJax #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbsooter
Copy link

Would there be any interest in configuring Mathjax for this template by default? I am currently using jbsooter/primer to support this functionality for inline latex on GitHub pages. With GitHub supporting inline latex on all markdown documents, it would be nice if this came enabled out of the box for GitHub pages Jekyll templates as well.

What was changed in this fork:

Addition of Mathjax script and configuration of inline escape characters. See this thread.

   <script type="text/javascript" id="MathJax-script" async
         src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
 </script>

 <script>
   MathJax = {
     tex: {
       inlineMath: [['$', '$']]
     }
   };
 </script>

@welcome
Copy link

welcome bot commented Apr 10, 2023

Welcome! Congrats on your first pull request to the Primer theme. If you haven't already, please be sure to check out the contributing guidelines.

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

Successfully merging this pull request may close these issues.

None yet

1 participant