Skip to content

notebook: '%html $x<y$' doesn't work right #4316

@jhpalmieri

Description

@jhpalmieri

If I type

%html some math: $x<y$.

in the notebook, then the "<y" gets swallowed. (If I "Edit" the worksheet, I see

<html><font color='black'>some math: <span class="math">x<y</span>.</font></html>

but in the worksheet view I see "some math: x.")

Putting a space between "<" and "y" fixes the problem. Also,

%html some math: $x<6y$.

works just fine, and the same with $x&lt;-y$ and similar things; the problem seems to just be with "<" followed by a letter. The greater than sign seems to present no problems.

Is this related to (or the same problem as) #4245?

Component: notebook

Keywords: notebook, %html

Issue created by migration from https://trac.sagemath.org/ticket/4316

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions