Skip to content

Commit

Permalink
close #771: always send text/latex if it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Nov 8, 2018
1 parent 086ac0c commit 7311e51
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/execute_request.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ priority and exclusion of redundant data).
For example, since "text/plain" is specified as a first-child of the array,
IJulia will always try to include a "text/plain" representation of anything that
is displayed. Since markdown and latex are specified within a sub-vector, IJulia
is displayed. Since markdown and html are specified within a sub-vector, IJulia
will always try to render "text/markdown", and will only try to render
"text/latex" if markdown isn't possible.
"text/html" if markdown isn't possible.
"""
const ijulia_mime_types = Vector{Union{MIME, AbstractVector{MIME}}}([
MIME("text/plain"),
Expand All @@ -27,9 +27,8 @@ const ijulia_mime_types = Vector{Union{MIME, AbstractVector{MIME}}}([
[
MIME("text/markdown"),
MIME("text/html"),
MIME("text/latex"), # Jupyter expects this
MIME("application/x-latex"), # but this is more standard?
],
MIME("text/latex"),
])

"""
Expand Down

0 comments on commit 7311e51

Please sign in to comment.