History: UserPageardavis
Preview of version: 44
|
Links
- Forums
- Downloading TikiWiki: Includes CVS download directions
- ReleaseProcess19
- ReleaseProcess191
- ReleaseProcess192
- ReleaseProcess110
- Files at Sourceforge
- TikiCVSHowTo
- ReleaseProcess19
- MigrateToTiki scripts
- ConversionFromPostnuke
- ConversionFromTWiki
- InstallTiki guide index
- InstallTikiDoc Standard installation instructions
- InstallTikiTroubleShootingDoc
- WikiPlugins
- PluginModule
- PluginFormula to include a LaTeX rendered formula in a wiki page.
- ModsTikiWiki
- TikiMods
- Modfiles at Sourceforge
- Customizing Tiki
- Other useful Documentation
PluginFormula rendering problem
I've noticed that when I enable PluginFormula and render some equations (specifically ones including exponentiation [^]), the image comes out OK, but often there will be some additional html garbage tagged on to the end of it... which doesn't look very nice. I was able to figure out that this is probably happening because the wiki renderer is interpreting the text inside of the IMG ALT field. A simple patch to include wiki "no process" tags in there seems to fix it up. The patch follows:
--- wikiplugin_formula.php @@ -102,7 +102,7 @@ } $file = $tmpf . ".png"; $html = "<img src=\"temp/" .$file. - "\" alt=\"" .$data. "\" ". + "\" alt=\"" .$data. "\" ". "align=\"middle\">"; } return $html;