Skip to content

Add Support for inline latex via MathJax - #77

Open
jbsooter wants to merge 1 commit into
pages-themes:masterfrom
jbsooter:master
Open

Add Support for inline latex via MathJax#77
jbsooter wants to merge 1 commit into
pages-themes:masterfrom
jbsooter:master

Conversation

@jbsooter

Copy link
Copy Markdown

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

welcome Bot commented Apr 10, 2023

Copy link
Copy Markdown

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.

1 participant