Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Flexifilter currently ships with a wiki format, but let's step through it so you can understand how it works.
- Go to the flexifilter administration area by clicking Administer -> Site Building -> Flexifilters, and click 'Add new flexifilter'.
- Set the label to 'Wiki'.
- Set the description to 'A flexifilter for a wiki'.
- Prepend with </nowiki>.
- Append with <nowiki>
- Do a chunk grab on </nowiki> and <nowiki>.
- Add several pattern-based text replace components:
- Replace ''' (three single dashes) with alternating <strong> and </strong>.
- Replace '' (two single dashes) with alternating <em> and </em>.
- Replace ==== (four equals signs) with alternating <h4> and </h4>
- Replace === (three equals signs) with alternating <h3> and </h3>
- Replace == (two equals signs) with alternating <h2> and </h2>
- Create a chunk grabber on [[ and ]].
- Add an IF component within the chunk grabber.
- Add the condition "text contains" with the parameter |.
- As subcomponents of this IF statement, prepend with <a href="/drupalwikipath/
- String replace | with ">.
- Append </a>.
- Now, outside the if statement, create an IF NOT statement with the same condition.
- String replace ~ with \~ (escape the character).
- Append ~~.
- Add an advanced append. Step 20 should be added to this component.
- String replace ~~ with </a>.
- Now, outside of the advanced append, prepend with <a href="/drupalwikipath/
- String replace ~~ with ">
- String replace \~ with ~.
Comments
Shouldn't section 6 be: "Do
Shouldn't section 6 be:
"Do a chunk grab on start = <nowiki> and end = </nowiki>."
(i.e. move the</nowiki>
to the start)?---
amitaibu.com
Doesn't do lists or tables.
Doesn't do lists or tables.
-=-=-=-
http://www.jdarx.info/
Lists
There is a set of problems here.
The first is for lists within lists. My guess is that you have to treat separately each level, and therefore test "***", then "**", then "* " if you want to treat up to three levels. The same for "###", "##" and "#". Or - worse - combinations of them : #* and the like, if they are supposed to be allowed.
A second one is that these stars (or "#", for ordered lists) are meaningful to make lists only if they appear at the start of a line, optionally preceded by one or more ":" (tab), which have to be interpreted too.
A third is that while it is probably easy enough to spot the first < li > to generate and to precede it with < ul > or < ol >, spotting the place where < eul > shoud be inserted is a bit more tricky.
Just my two cents, at the time :-(
text replace components
I'm still fairly new to Drupal, so this might seem a silly question: for Step 8 (and similar steps) -- "Replace ''' (three single dashes) with alternating and ." -- do I need to add a text replace component for and one for or do I add the opening and closing tag in one text replace field? Thanks.
Solution for mediawiki list
Please follow the following discussion: http://drupal.org/node/212417