]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/teximg.pm
Add modified opengraph plugin.
[git.ikiwiki.info.git] / IkiWiki / Plugin / teximg.pm
index 3d6fa9942c11f3dd304026458655b22ab30e5e50..e0f97614b9bf29e7424857e45041ca668c7e449a 100644 (file)
@@ -146,8 +146,8 @@ sub gen_image ($$$$) {
        my $tex = $config{teximg_prefix};
        $tex .= '\['.$code.'\]';
        $tex .= $config{teximg_postfix};
-       $tex =~ s!\\documentclass{article}!\\documentclass[${height}pt]{article}!g;
-       $tex =~ s!\\documentclass{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g;
+       $tex =~ s!\\documentclass\{article}!\\documentclass[${height}pt]{article}!g;
+       $tex =~ s!\\documentclass\{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g;
 
        my $tmp = eval { create_tmp_dir($digest) };
        if (! $@ &&