Bug #291
[Patch]Enhanced text filtering
| Status : | Closed | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | 2.5 | |||
| Resolution : | fixed |
Description
I added a few more text transform options:
- Added RubyPants support (auto-adds smart quotes and dashes). Uses filter string 'smartypants'.
- Changed HtmlEngine.transform to allow multiple transforms to be stacked ('markdown smartypants' will run the BlueCloth filter followed by the RubyPants filter).
- Added 'SmartyPants' and 'Markdown with Smartypants' options to Movable Type API and admin UI.
- Fixed filter_html in HtmlEngine.transform--before, it would only apply if you used the Textile filter, so Markdown and unfiltered users would be screwed if users post cross-site-scripting in comments.
- Added new config item: comment_text_filter. Uses existing text_filter_options list. If unset, then the comment renderer will fall back on configtext_filter.
I haven't added any tests to this for two reasons. First, I couldn't find a set of tests for the HtmlEngine code. Second, most of the DB tests fail horribly when running on PostgreSQL--the DB foreign keys in the schema file raise exceptions during a lot of delete operations.
Associated revisions
Revision e64ed1d38fa84bc9e4fda3a896d674f2b2f1ef95
Move observe_field for live search into partial, from atmos. (closes #291)
git-svn-id: http://svn.typosphere.org/typo/trunk@532 820eb932-12ee-0310-9ca8-eeb645f39767
History
07/09/2005 09:55 PM - tobi -
- Status changed from Assigned to Closed
- Resolution set to fixed
(In r287) Much improved text_filtering. You can now choose from Markdown, Textile and SmartyPants as well as Markdown + Smartypants both (scott@sigkill.org) fixes #137
