Home » Text » Text_Wiki_Mediawiki » Bug #8503
Comment parser
Details
| Request #8503 | Comment parser |
|---|---|
| Submitted | 2006-08-18 14:17 UTC |
| From | bjs5075 at rit dot edu |
| Assigned | ritzmo |
| Status | Closed |
| Package | Text_Wiki_Mediawiki |
| PHP Version | 5.1.4 |
| OS | Debian etch |
| Roadmaps | (Not assigned) |
Comments
[2006-08-18 14:17 UTC] bjs5075 at rit dot edu
Description:
------------
I have added a simple comment parser that just takes them
out. The comment should be the first elements parsed
(after 'Delimiter', before 'Preformatted').
Simply match:
'/<\!--(.*)-->/Us'
or the '.*?' if you prefer, and return empty string.
I called the parse element 'Comment'.
Test script:
---------------
Mediawiki source:
Invisible comments to editors ( <!-- here --> )
only appear while editing the page.
Expected result:
----------------
Invisible comments to editors ( ) only appear while
editing the page.
Actual result:
--------------
Invisible comments to editors ( <!-- here --> ) only
appear while editing the page.