MDL-78408 core: fix restoration of anchor to wantsurl during login
[moodle.git] / filter / algebra / algebra2tex.pl
blobbf9e880544b3737b4261d926d4b5f2e23201f310
1 #!/usr/bin/perl
3 use lib '.';
4 use AlgParser;
6 my $parser = new AlgParserWithImplicitExpand;
7 my $ret;
9 $ret = $parser -> parse($ARGV[0]);
10 if ( ref($ret) ) {
11 $parser -> tostring();
12 $parser -> normalize();
13 print $parser -> tolatex();
14 } else {
15 print $parser->{htmlerror};