mozilla/kuma — pull request #162 by lmorchard (2012-04-16 17:59:43+00:00)
Title: Bug 730707: First batch of bug fixes

* Switch back to out-of-box <% %> EJS escape sequences instead of {% %},
since the ACE editor interferes with that less and the EJS docs make
more sense that way.

* TODO: Maybe need a schematic migration to convert existing templates
in dev boxes at least:

update wiki_document
set html=replace(replace(html, '{%', '<%'), '%}', '%>')
where slug like '%Template:%';

update wiki_revision
set content=replace(replace(content, '{%', '<%'), '%}', '%>')
where slug like '%Template:%';

* Don't process views of Template:* pages through KumaScript

* Don't apply Bleach to Template:* source

* Reduce required length of page title to 2, so "en" and "CSS" can be
edited.

* Whitelist a few more elements used in pages for Bleach.

* Add more elements with style attribute allowed by Bleach, whitelist a
bunch of inline styles used in existing pages.

* Improvements to kumascript error display, broken out into an include.
Includes edit / new links for Template documents behind scripts.

* Enable plain-text syntax highlighter brush

* KumaScript update