[ 
http://jira.xwiki.org/jira/browse/XWIKI-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergiu Dumitriu closed XWIKI-1207.
----------------------------------

    Fix Version/s: 1.3 M2
            Tests: [Unit]
       Resolution: Fixed
         Assignee: Sergiu Dumitriu

The syntax works as proposed, with the following remarks:
- Filtering out links and scripts is not implemented, as it increases the 
rendering time a lot in some usage scenarios. This should be fixed when 
switching to the new rendering engine.
- Works on a single line only.
- Regex should run in O(n*m) whatever the text, where n=<text length> and 
m=<number of -- occurrences>


> Strikethrough XWiki syntax
> --------------------------
>
>                 Key: XWIKI-1207
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1207
>             Project: XWiki Core
>          Issue Type: Task
>          Components: Wiki features
>            Reporter: Sergiu Dumitriu
>         Assigned To: Sergiu Dumitriu
>            Priority: Minor
>             Fix For: 1.3 M2
>
>         Attachments: StrikethroughSyntaxTest.java
>
>
> The strikethrough wiki markup is triggered by placing a piece of text inside 
> double-dashes, like: \-\-text\-\-. This filter only works in single line mode.
> It generates markup specifying that the delimited text is deleted; in XHTML 
> the <del> tag is used.
> Expected behavior:
> {noformat}
> This is not -- stroked --  => This is not -- stroked --
> This is not --stroked --  => This is not --stroked --
> This is not -- stroked--  => This is not -- stroked--
> This is --stroked-- => This is <del>stroked</del>
> This is --a-- stroke => This is <del>a</del> stroke
> This is --a-- short stroke-- => This is <del>a</del> short stroke--
> This is --all -- stroked-- => This is <del>all -- stroked</del>
> This is --all --stroked-- => This is <del>all --stroked</del>
> This is --one--stroked-- => This is <del>one</del>stroked--
> --a-- => <del>a</del>
> More --strokes-- on a --line-- => More <del>strokes</del> on a <del>line</del>
> The extra dashes are ----inside--- => The extra dashes are 
> <del>--inside-</del>
> This--is--stroked => This<del>is</del>stroked
> --Eeny--meeny--miny--moe-- => <del>Eeny</del>meeny<del>miny</del>moe--
> -- Eeny--meeny--miny--moe-- => 
> ...<li>Eeny<del>meeny</del>miny<del>moe</del></li>...
> this is a ------ line => this is a <hr/> line
> -- this is a list item-- => ...<li>this is a list item--</li>...
> HTML <!-- comments are ignored --> => HTML <!-- comments are ignored -->
> Multiple HTML <!-- comments --> are <!-- ignored --> => Multiple HTML <!-- 
> comments --> are <!-- ignored -->
> Ignore --things-- inside <script> n = --i; m = i--; </script> => Ignore 
> <del>things</del> inside <script> n = --i; m = i--; </script>
> Ignore <a href="/some--page--with--dashes">attributes</a> => Ignore <a 
> href="/some--page--with--dashes">attributes</a>
> Multiline examples:
> This is not --not
> stroked--
>  => 
> This is not --not
> stroked--
> <script>
> m = --i; n = i--;
> </script>
> m = --i; n = i--;
>  =>
> <script>
> m = --i; n = i--;
> </script>
> m = <del>i; n = i</del>;
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to