Skip to content

IPython KaTeX rendering of comparison operators for markdown

What does this MR do?

When rendering IPython notebook markdown cells the formulas are passed to Katex. Before that the raw string is passed to marked.js to handle HTML forbidden characters. Two of these characters are the less-than-operator < and the greater-than-operator >. These characters are often used in math formulas and the replacements &lt; and &gt; are not well received by Katex.

Fixes: #327450 (closed)

Screenshots (strongly suggested)

Screenshot of KaTeX formulas containing < and > rendering correctly

Screenshot_20210412_135959

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Merge request reports

Loading