markdown - Mathjax don't show up on Jekyll Github Pages but show up on localhost -


i using jekyll on github page. created blog post using mathjax display math equations.

i used script written in here in file mathjax_support.html put in _includesdirectory. in _includes/head.html added line

{% include mathjax_support.html %} 

just before </head>.

once that, running jekyll blog locally on localhost works fine commiting github page break mathjax code.

here blog post on github trying display correctly. using kramdown markdown parser.

i cannot understand why works on 1 side , not other.

if has idea, happy hear it. !

you don't need mathjax working on github page. can instead implement hack:

  • step 1) run blog locally , take screenshots of expressions
  • step 2) commit screenshots gh page or upload them image hosting service
  • step 3) replace expressions respective images, e.g replace $x+2=3$ $x+2=3$ rendered in mathjax. use direct links or browsers unable load images!

    btw, markdown syntax inline images: ![description of image, in case doesn't loaded](link-to-the-image "mouseover text (optional)")

  • step 4) that's it! can commit gh page , have work fine.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -