Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
When using Mediawiki example for ordered/unordered list, if the list is placed at the end of a content, there should be a newline after that list for Mediawiki filter work properly.
The first example (# one?) doesn't work as expected because the input only contains one line. As long as I've tried, the input only failed for the last item that placed at the end of the content (i.e. there is no "enter" after the last line). Since # one? is only one line, then that line is the last line too.
Oh, in my system it works well. If you don't mind, you can tell me Input Filters being used, full input, and a sample of generated HTML (not the snapshot).
Input filters being used for "Filtered HTML", by order:
1. URL filter
2. HTML filter
3. Line break converter
4. MediaWiki
5. unPHP
6. Working Units
7. PHP evaluator
which would break the structure (notice the closing </p>).
So, for these filters work properly, you should rearrange Line break converter down below Mediawiki filter. And make sure there is a newline at the end of that list.
Comments
Comment #1
arhip commentedWhen using Mediawiki example for ordered/unordered list, if the list is placed at the end of a content, there should be a newline after that list for Mediawiki filter work properly.
or
Comment #2
amitaibuSo, if user wants to enter something like this:
he should actually enter?
Comment #3
arhip commentedNo, for input like this
User should enter
The first example (
# one?) doesn't work as expected because the input only contains one line. As long as I've tried, the input only failed for the last item that placed at the end of the content (i.e. there is no "enter" after the last line). Since# one?is only one line, then that line is the last line too.Comment #4
amitaibuHi,
In my system it works differently
User enters:
(and after ''World'' no new line)
But gets:
Comment #5
arhip commentedOh, in my system it works well. If you don't mind, you can tell me Input Filters being used, full input, and a sample of generated HTML (not the snapshot).
Comment #6
amitaibuInput filters being used for "Filtered HTML", by order:
1. URL filter
2. HTML filter
3. Line break converter
4. MediaWiki
5. unPHP
6. Working Units
7. PHP evaluator
Full input by user:
Full HTML (View page source):
Comment #7
arhip commentedI think I know the problem. When user inputs:
Filter 3 (Line break converter) convert it into:
Since Mediawiki list get recognized only when the # sign placed leftmost, then Filter 4 converts again into:
which would break the structure (notice the closing
</p>).So, for these filters work properly, you should rearrange Line break converter down below Mediawiki filter. And make sure there is a newline at the end of that list.
Comment #8
amitaibuRe-ordering filters worked properly. thank you.
Comment #9
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.