Diff for /loncom/interface/lonhtmlgateway.pm between versions 1.1 and 1.2

version 1.1, 2010/04/26 20:45:28 version 1.2, 2010/04/27 17:07:35
Line 709  sub parse_algebra_tag { Line 709  sub parse_algebra_tag {
     # the <algebra> parser does NOT handle entities,      # the <algebra> parser does NOT handle entities,
     # unlike the general <m> parser; thus we run      # unlike the general <m> parser; thus we run
     # the content of this tag through HTML::Entities,      # the content of this tag through HTML::Entities,
     # decoding it first      # decoding it first. we also just get the tex, and
       # feed it through as if it were an <mi> tag.
     $input = &HTML::Entities::decode($input);      $input = &HTML::Entities::decode($input);
     return &Apache::lontexconvert::algebra($input,$self->{target});      my $algebra = &Apache::lontexconvert::algebra($input, 'tex');
       return &parse_m_tag($self, $algebra);
 }  }
   
 sub parse_mi_tag {  sub parse_mi_tag {
     my $self = shift;      my $self = shift;
     my $input = shift;      my $input = shift;
     return &parse_m_tag($self, '$'.$input.'$');      return &parse_m_tag($self, '\ensuremath{'.$input.'}');
 }  }
   
 sub parse_md_tag {  sub parse_md_tag {

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>