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...

CommentFileSizeAuthor
Snap1_16.png2.71 KBamitaibu

Comments

arhip’s picture

Thanks. 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.

arhip’s picture

I've found the problem. The Mediawiki/unordered list filter uses this regex:

  /^(\*+)(.*?)$/m

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.

test
* List 1
* List 2
** List 2.1   <-- "enter" here
  <-- so here will be a newline
avpaderno’s picture

Category: bug » support
Status: Active » Fixed

The sample filters are provided as bases to create custom filters. Users are free to modify them basing on their needs.

avpaderno’s picture

The sample filters are provided as base to create custom filters. Users are free to modify them basing on their needs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.