If I write $m<n$ in a question, the preview sees the less-than and interprets it as the begining of an XML tag. I have to write it as an HTML entity to get things going. Surely this is not intended?

share

1 Answer 1

Because TeX is parsed on the client side after Markdown is processed on the server side, and the current behavior is any unsupported HTML tags will be removed on the server side (even they are not closed), so this is indeed the intended behavior.

One simple workaround is to add a space between the < and n.

$m< n$

$m< n$

share
    
If this is indeed intended behaviour, then the intention should be changed: otherwise this is simply silly. Someone (client side javascript handling the editor/the server/...) should escape the <: expecting the user the use of HTML entities or magical spaces is broken. –  Mariano Suárez-Alvarez Sep 21 '10 at 16:30
3  
@Mariano: It has been proposed before, but the proposal is ignored because majority of the sites don't have the TeXification phase which makes the code-formatting solution invalid. You may want to bump it if this is important. –  KennyTM Sep 21 '10 at 17:42
1  
@Kaestur: Bugs that are a consequence of the incompatible design of two interacting subsystems should not be considered to be "by design" of the whole system. That should be reserved for behavior that is an explicit design decision of the whole system (not a fluke of subsystem interaction). If someone is designing a newer software platform they may wish to ignore "by-design" questions but probably do want to review problems like this when considering new designs. –  Bill Dubuque Sep 25 '10 at 20:43
    
@Bill: I suggested it for sake of consistency with this bug report on meta, which KennyTM marked status-bydesign with a similar explanation. I don't have a strong opinion myself on whether this classification is good, but to me, it makes sense to treat both of these bugs the same way. –  Larry Wang Sep 25 '10 at 21:03
1  
@Kaestur: That too is a similar problem and, as I argued, should not be considered to be "by design". If you wish to collect such bugs into the same class then then a new tag should be created that accurately reflects this category. Writing off bugs as "features" is never a good idea. Having worked heavily on a mathematical software system that evolved over a few decades (Macsyma), I know this from (sometimes painful!) experience. –  Bill Dubuque Sep 26 '10 at 17:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .