Base.show() for displaying MathJax formulas in Jupyter / IJulia?

You’re right, this worked (using $$ display environment):

Base.show(io::IO, ::MIME"text/latex", x::MyObject) =
    print(io, "\$\$\\frac{1}{1+2+3+4}\$\$")