/itexToMML

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/itexToMML/

« back to all changes in this revision

Viewing changes to plugin/itex2MML/TextileMarkdownMML.pl

  • Committer: Jacques Distler
  • Date: 2007-01-17 22:08:35 UTC
  • Revision ID: distler@golem.ph.utexas.edu-20070117220835-r79zqyio7joq1xip
Fixed smal bug in this plugin.

Show diffs side-by-side

added added

removed removed

28
28
 
29
29
use MT;
30
30
use MT::Template::Context;
31
 
use MT::Plugin::itex2MML;
32
31
 
33
32
eval{ require MT::Plugin;};
34
33
unless ($@) {
43
42
 
44
43
my $filters = MT->all_text_filters();
45
44
 
46
 
if (exists($filters->{'textile_1'})) {
 
45
if (exists($filters->{'textile_1'}) && exists($filters->{'itexToMML'})) {
47
46
        MT->add_text_filter('textile_1MML' => {
48
47
                                     label => 'Textile with itex to MathML',
49
48
                                     on_format => sub { &textileMML; },
50
49
                                    });
51
50
}
52
 
if (exists($filters->{'markdown'})) {
 
51
if (exists($filters->{'markdown'}) && exists($filters->{'itexToMML'})) {
53
52
        MT->add_text_filter('markdownMML' => {
54
53
                                     label => 'Markdown with itex to MathML',
55
54
                                     on_format => sub { &markdownMML; },