Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mathics_django/web/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ def eval_boxes(result, fn, obj, **options):
form_expr = Expression("StandardForm", expr)
result = form_expr.format(obj, "System`StandardForm")
return eval_boxes(result, result.boxes_to_svg, obj)
elif head in ("System`Symbol", "System`Integer"):
# What obviously doesn't need MathML? Note: System`Real is kept in MathML
# because we might have exponents, e.g. 3 * 10^8.
result = Expression("StandardForm", expr).format(obj, "System`OutputForm")
else:
result = Expression("StandardForm", expr).format(obj, "System`MathMLForm")
else:
Expand Down