Page MenuHomePhabricator

Add "\sim" to ~ conversion for HTML rendering
Closed, ResolvedPublic

Description

Author: dr.burnett

Description:
Currently, if I enter <math>x \sim N(\mu, \sigma^2)</math> then it is forced to
render as PNG because \sim won't convert to a tilde for HTML rendering.


Version: unspecified
Severity: minor

Details

Reference
bz2015

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:27 PM
bzimport added a project: Math.
bzimport set Reference to bz2015.
bzimport added a subscriber: Unknown Object (MLST).

According to http://www.w3.org/TR/REC-html40/sgml/entities.html

There is a sim entity:

<!ENTITY sim CDATA "&#8764;"

  • tilde operator = varies with = similar to, U+223C ISOtech -->

but in firefox it looks really different. I used &tilde; instead
and commited that in trunk as r14314