Revision [16731]
This is an old revision of ImprovedFormatter made by Ma1Yhx on 2007-05-31 10:42:25.
Improved Formatter
Installed as a WikkaBetaFeatures beta feature on this server as of 2005-06-12.This is the development page for an improved version of "the Formatter", specifically, the code in ./formatters/wakka.php (as opposed to the AdvancedFormatter page which deals with "advanced" formatting in other ways as well, such as standardized code generation utilities).
Why?
While our current (version 1.1.6.0) Formatter is quite capable, it has some quirks and bugs, doesn't always generate valid XHTML (though it tries hard), and misses a few things that would be nice to have or that would enable things that would be nice to have (such as a TableofcontentsAction page TOCs). The improved version presented here tries to address some of these issues (with more likely to follow).
What?
Here is a short summary of what has changed (details below):
- using single quotes wherever possible making RegExes and generated HTML easier to read;
- better closing of open tags at end of document, including open indents and lists (a long-standing bug!) Now improved
- better handling of nested lists so change of list "type" is actually detected and coded correctly; also produces nicely-formatted HTML code for lists and indents now, especially more readable for nested lists. New!
- escaping single