Changed SphinxTransformer to inherit
from ActivatableTransformer
Added code to fix the math $ in the notebook so it
works with markdown2latex.