Closed (fixed)
Project:
Custom filter
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2007 at 16:33 UTC
Updated:
15 Jul 2009 at 18:00 UTC
User enters:
test
* List 1
* List 2
** List 2.1
and gets snap1.png
btw, why does the module add 'Table of contents'? I think it's redundant...
| Comment | File | Size | Author |
|---|---|---|---|
| Snap1_16.png | 2.71 KB | amitaibu |
Comments
Comment #1
arhip commentedThanks. I've tried the input provided, and I get the same result too. And I get the same error message you post before: http://drupal.org/node/185333 The error is not in the module, but in the sample filter MediaWiki. I'm working on it, and I will fix soon.
The table of contents only used for demonstration purpose only. You can delete this filter.
Comment #2
arhip commentedI've found the problem. The Mediawiki/unordered list filter uses this regex:
When modifier m used, $ will match newline character. I try your input and get an unexpected result, because the last line "** List 2.1" doesn't followed by a newline character. You need to give an "enter" after the last line, for the filter work correctly.
Comment #3
avpadernoThe sample filters are provided as bases to create custom filters. Users are free to modify them basing on their needs.
Comment #4
avpadernoThe sample filters are provided as base to create custom filters. Users are free to modify them basing on their needs.