Skip to content

Local MathJax with mkdocs-jupyter #7134

Answered by dr-br
dr-br asked this question in Q&A
Apr 30, 2024 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

Dear @kamilkrzyskow ,
the following bit was missing:
In order to get inline code working, the file mathjax.js was missing. Single-file Mathjax is convenient, but not needed.

mkdocs+privacy+mkdocs-jupyter now works

Steps to reproduce

  1. Download MathJax:
wget https://github.com/mathjax/MathJax/archive/refs/tags/3.2.2.zip
unzip 3.2.2.zip "MathJax-3.2.2/es5/*" -d docs/assets/javascripts/
  1. Create mathjax.js:
window.MathJax = {
    tex: {
      inlineMath: [['$', '$'], ['\\(', '\\)']],
    //   displayMath: [ ['$$', '$$'], ['\[', '\]'] ],
      processEscapes: true,
      processEnvironments: true
    },
    options: {
    //   ignoreHtmlClass: ".*|",
    //   processHtmlClass: "arithmatex"
 …

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kamilkrzyskow
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants